?? osd.h
字號:
/* Copyright 1996, ESS Technology, Inc. *//* SCCSID @(#)osd.h 1.9 6/4/98 */ /* * $Log$ */#include "common.h"/************************************************************************ * OSD's font definitions * ************************************************************************/#define OSD_CHAR_WIDTH 24 /* Horizontal char size (pels) */#define OSD_PIXEL 2 /* 2 bits/pixel */#define OSD_CHAR_HEIGHT 32 /* Vertical char size (pels) */#define OSD_DRAM_DX 3 /* 3 DWORDs */#define OSD_DRAM_DY OSD_CHAR_HEIGHT /* Each char is 24x32 *//* Dword offset of position i with respect to VCD30_OSD_DRAM_START */#define OSD_OFFSET(i) ((((i) << 1) + (i)) >> 1) /* 1.5*i *//************************************************************************ * Local typedefs's * ************************************************************************//* PV FSOSD * * Example Full Screen OSD Configuration: * * AREA 1______________________________ * | | | | * | REGION 1 | REGION 2 | REGION 3 | LINE 1 (AREA 1) * ----------------------------------- * | REGION 4 | REGION 5 | REGION 6 | LINE 2 * ----------------------------------- * | REGION 7 | REGION 8 | REGION 9 | LINE 3 * ------------------------------------- * . . . * . . . * . . . * AREA 2______________________________ * | | | | * | REGION 10 | REGION 11 | REGION 12 | LINE 1 (AREA 2) * ----------------------------------- * | REGION 13 | REGION 14 | REGION 15 | LINE 2 * ------------------------------------- * * * NOTE: When reconfiguring OSD Areas, verify that the following defines are * correct for your intended layout. * 1. VCD30_OSD_TOTAL_AREAS * 2. OSD_LINES_IN_AREA_1 and OSD_LINES_IN_AREA_2 * 3. OSD_TIME_REGION & OSD_TIME_REGION_MASK * 4. OSD_TRACK_REGION & OSD_TRACK_REGION_MASK */ #define OSD_BLACK 0x9000 #define OSD_CLEAR 0x7000#define OSD_BLUE 0xb7f0#define OSD_GREEN 0x1ba0#define OSD_PINK 0x1f40#define OSD_RED 0xde70#define OSD_WHITE 0x7000#define OSD_PURPLE 0xd620#define OSD_MAGENTA 0xf560#define OSD_YELLOW 0x5910#define OSD_BROWN 0xbf40#define OSD_GRAY 0x1000#define OSD_CYAN 0x3290#define OSD_ORANGE 0x0c50#ifdef MAINint osd_palette[]={OSD_BLACK,OSD_CLEAR,OSD_BLUE,OSD_GREEN,OSD_PINK,OSD_RED,OSD_WHITE, OSD_PURPLE,OSD_MAGENTA,OSD_YELLOW,OSD_BROWN,OSD_GRAY,OSD_CYAN,OSD_ORANGE};#elseextern int osd_palette[];#endif#ifdef DRIVERGBLDEF_0(int OSD_hstart1, 0);GBLDEF_0(int OSD_vstart1, 0);GBLDEF_0(int OSD_hend1, 0);GBLDEF_0(int OSD_vend1, 0);GBLDEF_0(int OSD_hstart2, 0);GBLDEF_0(int OSD_vstart2, 0);GBLDEF_0(int OSD_hend2, 0);GBLDEF_0(int OSD_vend2, 0);GBLDEF_0(int VCD30_OSD_DRAM_START, 0);GBLDEF_0(volatile int OSD_on, 0);GBLDEF_0(volatile int OSD1, 0);GBLDEF(int VCD30_OSD_TOTAL_AREAS, 2); /*for low res it is 2, for high res it should be 1*/#endif#define OSD_size 0x800 /*Dword*//* Used in initOsd() to set colors */#define NO_OSD 2#define CHINESE_OSD 1#define ENGLISH_OSD 0void ClrOsd(void);void ClrOsd2(void);#ifdef BILINGUAL_OSDvoid OutputOsd(int, int, char *, char *);#define OSDKEY(m1, m2) OutputOsd(1, 1, m1, m2)#define OSDKEY2(m1, m2)#elsevoid OutputOsd(int, int, char *);#define OSDKEY(m1, m2) OutputOsd(1, 1, m1)#define OSDKEY2(m1, m2)#endifvoid OSD2(int,int,int,int);void OSD2_rect(int,int,int,int);int OSD2_comm(int,int,int,int);void ClrOSD_comm(int,int);void Close_OSD2(void);void Close_OSD1(void);
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -