OSD_DRV.H
上传用户:super_houu
上传日期:2008-09-21
资源大小:4099k
文件大小:3k
源码类别:

DVD

开发平台:

Others

  1. /* **************************************************************************************
  2.  *  Copyright (c) 2002 ZORAN Corporation, All Rights Reserved
  3.  *  THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF ZORAN CORPORATION
  4.  *
  5.  *  File: $Workfile: OSD_DRV.H $             
  6.  *
  7.  * Description:
  8.  * ============
  9.  * OSD low level definitions
  10.  * 
  11.  * Log:
  12.  * ====
  13.  * $Revision: 13 $
  14.  * Last Modified by $Author: Rogerl $ at $Modtime: 03-01-16 15:16 $ 
  15.  ****************************************************************************************
  16.  * Updates:
  17.  ****************************************************************************************
  18.  * $Log: /SourceCode/I64_Common/I64_Reference/UI/Menu_sys/OSD_DRV.H $
  19.  * 
  20.  * 13    03-01-17 11:56 Rogerl
  21.  * Add OSD_3DFrameRect
  22.  * 
  23.  * 12    03-01-09 4:43 Leslie
  24.  * Unicode support
  25.  * 
  26.  * 11    11/22/02 9:31a Leslie
  27.  * 
  28.  * 10    10/30/02 18:03 Rond
  29.  * 
  30.  * 7     23/04/02 9:39 Nirm
  31.  * - Added dependency in "Config.h".
  32.  * 
  33.  * 6     4/22/02 14:50 Rinata
  34.  * under USE_BMP_BUTTON setup menu with bitmap buttons
  35.  * 
  36.  * 5     17/03/02 20:06 Nirm
  37.  * Added OSD_CorneredFrame().
  38.  * 
  39.  * 4     13/01/02 16:41 Atai
  40.  * Remove old Defines
  41.  * 
  42.  * 3     8/01/02 16:25 Nirm
  43.  * Corrected Include-Paths.
  44.  * 
  45.  * 2     25/12/01 12:07 Atai
  46.  * Code cleaning
  47.  * 
  48.  * 
  49.  **************************************************************************************** */
  50. #include "Config.h" // Global Configuration - do not remove!
  51. #ifndef OSD_DRV_H
  52. #define OSD_DRV_H
  53. #include "UIMenu_Sysms_wdgt.h"
  54. typedef struct
  55. {
  56. char escsq;
  57. char Char;
  58. }FONT_N_CHAR;
  59. void OSD_CorneredFrame(int x, int y, int w, int h, int h_length, int v_length,
  60.    unsigned char color, unsigned char thickness);
  61. void OSD_AimedFrame(int x, int y, int w, int h, int h_length, int v_length,
  62.    unsigned char color, unsigned char thickness);
  63. void OSD_PutRect(int x,int y,int w,int h,unsigned char color);
  64. void OSD_PutText(int x,int y,int w,int h,
  65.  unsigned char forward_color,unsigned char backward_color,
  66.  void *text,char alignment, char ascii);
  67. void OSD_SetOrigin(MS_WIDGET *widget);
  68. int  OSD_GetFontHeight(void);
  69. void OSD_TurnOff(void);
  70. void OSD_TurnOn(void);
  71. #ifdef USE_BMP_BUTTON
  72. void OSD_DrawBitmap(WORD wXPos , WORD wYPos , CONST BYTE *pcBm,  BYTE FocusIndex, BYTE newBGindex );
  73. #endif
  74. // Standard frame inset
  75. #define C_INSET   4
  76. // Standard frame thickness
  77. #define C_THICKNESS   4
  78. void OSD_FrameRect(int x,int y,int w,int h,unsigned char color,unsigned char thickness);
  79. void OSD_3DFrameRect(int x,int y,int w,int h,unsigned char colorLT, unsigned char colorRB, unsigned char thickness);
  80. void OSD_CalcFramedPos( MS_POS *pmspos );
  81. #endif