⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 osd.h

📁 可配三星17寸屏的2523源程序+MTV512
💻 H
📖 第 1 页 / 共 4 页
字号:
//----------------------------------------------------------------------------------------------------
// ID Code      : Osd.h No.0000
// Update Note  : 
//
//----------------------------------------------------------------------------------------------------


//--------------------------------------------------
// Definitions of Vivid Color
//--------------------------------------------------
#define _MZ_H_POSITION_MAX              Panel[ucPanelSelect].DHWidth - stOsdUserData.MZHWidth
#define _MZ_H_POSITION_MIN              0
#define _MZ_V_POSITION_MAX              Panel[ucPanelSelect].DVHeight - stOsdUserData.MZVHeight
#define _MZ_V_POSITION_MIN              0
#define _MZ_H_WIDTH_MAX                 Panel[ucPanelSelect].DHWidth - stOsdUserData.MZHPos
#define _MZ_H_WIDTH_MIN                 1
#define _MZ_V_HEIGHT_MAX                Panel[ucPanelSelect].DVHeight - stOsdUserData.MZVPos
#define _MZ_V_HEIGHT_MIN                1

#define _MZ_ICM_RED_HUE_MAX             16
#define _MZ_ICM_RED_HUE_MIN             0
#define _MZ_ICM_RED_SAT_MAX             16
#define _MZ_ICM_RED_SAT_MIN             0
#define _MZ_ICM_GREEN_HUE_MAX           16
#define _MZ_ICM_GREEN_HUE_MIN           0
#define _MZ_ICM_GREEN_SAT_MAX           16
#define _MZ_ICM_GREEN_SAT_MIN           0
#define _MZ_ICM_BLUE_HUE_MAX            16
#define _MZ_ICM_BLUE_HUE_MIN            0
#define _MZ_ICM_BLUE_SAT_MAX            16
#define _MZ_ICM_BLUE_SAT_MIN            0

#define _MZ_COLOR_BRIGHTNESS_MAX        255
#define _MZ_COLOR_BRIGHTNESS_MIN        0
#define _MZ_COLOR_CONTRAST_MAX          255
#define _MZ_COLOR_CONTRAST_MIN          0
#define _MZ_COLOR_PEAKING_MAX          	126
#define _MZ_COLOR_PEAKING_MIN          	0

#define _MZ_DCC_MOVIE                   0
#define _MZ_DCC_TEXT                    1
#define _MZ_DCC_PHOTO                   2
#define _MZ_DCC_NORMAL                  3

#define _MZ_WINDOW_CFG_DISABLE          0
#define _MZ_WINDOW_CFG_FULL             1
#define _MZ_WINDOW_CFG_DEMO             2
#define _MZ_WINDOW_CFG_WINDOW           3


//--------------------------------------------------
// Definitions of Font Start Position
//--------------------------------------------------
#define _OSD_FONT_START_POSITION        745


//--------------------------------------------------
// Definitions of Clock Settings Used by COsdFxGetAdcClockRange()
//--------------------------------------------------
#define _CLOCK_BIAS                     50
#define _GET_CLOCKRANGE_MAX             0
#define _GET_CLOCKRANGE_MIN             1


//--------------------------------------------------
// Definitions of Hor. Position Settings Used by COsdFxGetHPositionRange()
//--------------------------------------------------
#define _HPOSITION_BIAS                 (ucHStartBias  - abs(stModeInfo.IHStartPos - stModeUserCenterData.CenterHPos))
#define _GET_HPOSITIONRANGE_MAX         0
#define _GET_HPOSITIONRANGE_MIN         1


//--------------------------------------------------
// Definitions of Ver. Position Settings Used by COsdFxGetVPositionRange()
//--------------------------------------------------
#define _VPOSITION_BIAS                 (ucVStartBias - abs(stModeInfo.IVStartPos - stModeUserCenterData.CenterVPos))
#define _GET_VPOSITIONRANGE_MAX         0
#define _GET_VPOSITIONRANGE_MIN         1


//--------------------------------------------------
// Definitions of Contrast Range (Real Value)
//--------------------------------------------------
#define _CONTRAST_MAX                   178
#define _CONTRAST_MIN                   78


//--------------------------------------------------
// Definitions of Backlight Range
//--------------------------------------------------
#define _BACKLIGHT_MAX                  255
#define _BACKLIGHT_MIN                  0


//--------------------------------------------------
// Definitions of OSD Position
//--------------------------------------------------
#define _OSD_HPOSITION_RANGE            200
#define _OSD_VPOSITION_RANGE            200
#define _OSD_HPOSITION_OFFSET           8
#define _OSD_VPOSITION_OFFSET           5


//--------------------------------------------------
// Definitions of OSD Show Number Function Used by COsdFxShowNumber()
//--------------------------------------------------
#define _ALIGN_LEFT                     0
#define _ALIGN_RIGHT                    1

#define _FORCE_SHOW_NUMBER_OFF          (0 << 1)
#define _FORCE_SHOW_NUMBER_ON           (1 << 1)

#define _SHOW_1                         (0 << 4)
#define _SHOW_2                         (1 << 4)
#define _SHOW_3                         (2 << 4)
#define _SHOW_4                         (3 << 4)
#define _SHOW_5                         (4 << 4)


//--------------------------------------------------
// Definitions of OSD Slider Function Used by COsdFxSlider()
//--------------------------------------------------
#define _SLIDER_RESOLUTION              (7)
#define _SLIDER_START_ADDRESS           (0x54)
#define _L_BAR                          (0x0f)
#define _0_BAR                          (0x00 + _SLIDER_START_ADDRESS)      // Empty Icon
#define _1_BAR                          (0x01 + _SLIDER_START_ADDRESS)
#define _2_BAR                          (0x02 + _SLIDER_START_ADDRESS)
#define _3_BAR                          (0x03 + _SLIDER_START_ADDRESS)
#define _4_BAR                          (0x04 + _SLIDER_START_ADDRESS)
#define _5_BAR                          (0x05 + _SLIDER_START_ADDRESS)
#define _6_BAR                          (0x06 + _SLIDER_START_ADDRESS)      // Full Icon
#define _R_BAR                          (0x27)


//--------------------------------------------------
// Definitions of Checking Max or Min Value Used by COsdFxDetOverRange()
//--------------------------------------------------
#define _DET_OVERRANGE_MAX              0
#define _DET_OVERRANGE_MIN              1


//----------------------------------------------------------------------------------------------------

//--------------------------------------------------
// Definitions of OSD Event Message
//--------------------------------------------------
#define _NONE_MSG                       0
#define _SHOW_NOSIGNAL_MSG              1
#define _SHOW_NOCABLE_MSG               2
#define _SHOW_NOSUPPORT_MSG             3
#define _SAVE_EE_MODEUSERDATA_MSG       4
#define _SAVE_EE_SYSTEMDATA_MSG         5
#define _SAVE_EE_OSDUSERDATA_MSG        6
#define _SAVE_EE_ADCDATA_MSG            7
#define _SAVE_EE_COLORPROC0_MSG         8
#define _SAVE_EE_COLORPROC1_MSG         9
#define _ENTER_FACTORY_MODE_MSG         10
#define _CHANGE_SOURCE_MSG              11
#define _DO_AUTO_CONFIG                 12


//--------------------------------------------------
// Definitions of Different OSD Map Type
//--------------------------------------------------
#define _OSD_MAP0                       0
#define _OSD_MAP1                       1
#define _OSD_MAP2                       2
#define _OSD_MAP3                       3
#define _OSD_MAP4                       4
#define _OSD_MAP5                       5
#define _OSD_MAP6                       6


//--------------------------------------------------
// Definations of Write Byte
//--------------------------------------------------
#define _WRITE_BYTE0                    0
#define _WRITE_BYTE1                    1
#define _WRITE_BYTE2                    2
#define _WRITE_BYTEALL                  3


//--------------------------------------------------
// Definations of OSD Function
//--------------------------------------------------
#define _EXT_                           0xfc
#define _REPEAT_                        0xfd
#define _NEXT_                          0xfe
#define _END_                           0xff


//--------------------------------------------------
// Definitions of Language
//--------------------------------------------------
#define _ENGLISH                        0
#define _FRENCH                         1
#define _GERMAN                         2
#define _SPANISH                        3
#define _CHINESE_T                      4
#define _CHINESE_S                      5
#define _JAPAN                          6
#define _LANGUAGE_AMOUNT                7


//--------------------------------------------------
// Definitions of Color Temperature
//--------------------------------------------------
#define _CT_9300                        0
#define _CT_6500                        1
#define _CT_5800                        2
#define _CT_SRGB                        3
#define _CT_USER                        4


//--------------------------------------------------
// Definitions of Color Palette
//--------------------------------------------------
#define _CP_BLACK                       0
#define _CP_WHITE                       1
#define _CP_RED                         2
#define _CP_GREEN                       3
#define _CP_BLUE                        4
#define _CP_YELLOW                      5
#define _CP_GRAY                        6
#define _CP_DARKBLUE                    7
#define _CP_LIGHTBLUE                   8
#define _CP_SELECTBOTTOM                9
#define _CP_PINK	                    10
#define _CP_COLOR11                     11
#define _CP_COLOR12                     12
#define _CP_COLOR13                     13
#define _CP_COLOR14                     14
#define _CP_COLOR15                     15


//--------------------------------------------------
// Char Alias
//--------------------------------------------------
#define ___                             0x00

#define _0_                             0x01
#define _1_                             0x02
#define _2_                             0x03
#define _3_                             0x04
#define _4_                             0x05
#define _5_                             0x06
#define _6_                             0x07
#define _7_                             0x08
#define _8_                             0x09
#define _9_                             0x0a

#define _A_                             0x10
#define _B_                             0x11
#define _C_                             0x12
#define _D_                             0x13
#define _E_                             0x14
#define _F_                             0x15
#define _G_                             0x16
#define _H_                             0x17
#define _I_                             0x18
#define _J_                             0x19
#define _K_                             0x1a
#define _L_                             0x1b
#define _M_                             0x1c
#define _N_                             0x1d
#define _O_                             0x1e
#define _P_                             0x1f
#define _Q_                             0x20
#define _R_                             0x21
#define _S_                             0x22
#define _T_                             0x23
#define _U_                             0x24
#define _V_                             0x25
#define _W_                             0x26
#define _X_                             0x27
#define _Y_                             0x28
#define _Z_                             0x29

#define _a_                             0x30
#define _b_                             0x31
#define _c_                             0x32
#define _d_                             0x33
#define _e_                             0x34
#define _f_                             0x35
#define _g_                             0x36
#define _h_                             0x37
#define _i_                             0x38
#define _j_                             0x39
#define _k_                             0x3a
#define _l_                             0x3b
#define _m_                             0x3c
#define _n_                             0x3d
#define _o_                             0x3e
#define _p_                             0x3f
#define _q_                             0x40
#define _r_                             0x41
#define _s_                             0x42
#define _t_                             0x43
#define _u_                             0x44
#define _v_                             0x45
#define _w_                             0x46
#define _x_                             0x47
#define _y_                             0x48
#define _z_                             0x49




//----------------------------------------------------------------------------------------------------

#ifdef __OSD__

//--------------------------------------------------
// Global Variables
//--------------------------------------------------
BYTE idata ucOsdState = 0;
BYTE idata ucOsdEventMsg = 0;
BYTE idata ucOsdMap = 0;


#else

//--------------------------------------------------
// Extern Global Variables
//--------------------------------------------------
extern BYTE idata ucOsdState;
extern BYTE idata ucOsdEventMsg;
extern BYTE idata ucOsdMap;


#endif


//--------------------------------------------------
// Macro of OSD
//--------------------------------------------------
#define FONTBYTE0(x)                    HIBYTE(0x1000|x),LOBYTE(0x1000|x)
#define FONTBYTE1(x)                    HIBYTE(0x5000|x),LOBYTE(0x5000|x)
#define FONTBYTE2(x)                    HIBYTE(0x9000|x),LOBYTE(0x9000|x)
#define FONTALLBYTE(x)                  HIBYTE(0xD000|x),LOBYTE(0xD000|x)
#define WINDOWBYTE0(x)                  HIBYTE(0x0000|x),LOBYTE(0x0000|x)
#define WINDOWBYTE1(x)                  HIBYTE(0x4000|x),LOBYTE(0x4000|x)
#define WINDOWBYTE2(x)                  HIBYTE(0x8000|x),LOBYTE(0x8000|x)
#define WINDOWALLBYTE(x)                HIBYTE(0xC000|x),LOBYTE(0xC000|x)
#define FRAMEBYTE0(x)                   WINDOWBYTE0(x)
#define FRAMEBYTE1(x)                   WINDOWBYTE1(x)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -