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

📄 osd.h

📁 Realtek 公司的RTD2523A芯片原厂source code,没有被修改过的。
💻 H
📖 第 1 页 / 共 5 页
字号:
#include "Header\OSD_TREE.H"


#define HINT_V      110
#define HINT_H      91
#define NOTE_V      1
#define NOTE_H      5

//#define OSD_HMAX    (((DH_ACT_END_POS - 312 - 8) / 4) + 1)
#define OSD_HMAX    (((DH_ACT_END_POS - 544) / 4) + 1)
#define OSD_HMIN    (((DH_ACT_END_POS - DISP_WID) / 4) + 1)
#define OSD_HMID    ((OSD_HMAX + OSD_HMIN) / 2)

#define OSD_VMAX    ((DISP_LEN - 250 - 14) / 4)
#define OSD_VMIN    3
#define OSD_VMID    ((OSD_VMIN + OSD_VMAX) / 2)

#define FONT_SELECT_ADDRESS    19 //Suppose Row command include 15 rows and one row_end command
#define FONT_BASE_ADDRESS      640
#define ONE_BIT_FONT_NUM       20
#define TWO_BIT_FONT_NUM       20
#define FOUR_BIT_FONT_NUM      20



#ifdef __MAIN__


// Format
// [Row_Number, Row1_Max_Num, Row2_Max_Num, ... Rown_Max_Num]
unsigned char code Row_Info[][19]      = 
{
	{18, 0, 10, 5, 27, 0, 50, 0, 52, 0, 50, 0, 56, 0, 50, 0, 30, 0, 40},	//Page 1
};



unsigned char code OSD_Version[]    =
{
    0xab,0x02, //Row 11,Col 2
    0x61,_bb_,24,_nn_,
    0x8b,0x02, //Row 11,Col 2
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,_V_,_1_,0xfb,_0_,_0_,_G_,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,_nn_,
    _end_
};
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


unsigned char code NoCable_ENG[]    =
{
	0xc0,0x00,
	((DV_ACT_STA_POS/4) >> 2) + 0x30,((DH_ACT_STA_POS/4) >> 2) + 0x20,0xa1,_nn_,
	0xc0,0x03,
	0x06,0x00,0x28,_nn_,

	0x10,0x00,
	0x80,0x83,0x83,0x83,0x80,_nn_,
	
	0x50,0x00,
	0x88,0x88,0x48,0x88,0x88,_nn_,

	0x90,0x00,
	0x00,0x05,0x00,0x0f,0x00,_nn_,
	
	0x10,0x05,
	0x00,_nn_,
	
	0x10,0x06,
	0x00,0x00,0x90,0x90,0x00,0x00,
	0x8a,0x8a,0x00,0x8a,_bb_,5,0x00,_bb_,6,_nn_,
	
	0x50,0x06,
	0x14,0x16,0x53,0x54,0x0c,0x0c,
	0x2d,0x2e,0x0a,0x22,0x20,0x21,0x2b,0x24,0x0c,_bb_,6,_nn_,
	
	0x90,0x06,
	0x00,_bb_,6,0x20,0x20,
	0x00,0x20,_bb_,5,0x00,_bb_,6,_nn_,
	
	0xc1,0x00,
	0x3f,0xb9,0x00,_bb_,4,0x10,0x04,0x0f,0x00,0x0a,0x19,_nn_,
	
	_end_
	
};



unsigned char code NoCable_GER[]    =
{

    _end_
};



unsigned char code NoCable_FRE[]    =
{

    _end_
};



unsigned char code NoCable_ITA[]    =
{
  
    _end_
};


unsigned char code NoCable_SPA[]    =
{
  
    _end_
};



unsigned char code NoCable_CHI_T[]  =
{
  
    _end_
};



unsigned char code NoCable_CHI_S[]    =
{
 
    _end_
};



unsigned char code NoCable_JAP[]    =
{

    _end_
};

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


unsigned char code NoSignal_ENG[]   =
{
	0xc0,0x00,
	((DV_ACT_STA_POS/4) >> 2) + 0x30,((DH_ACT_STA_POS/4) >> 2) + 0x20,0xa1,_nn_,
	0xc0,0x03,
	0x06,0x00,0x28,_nn_,
	
	0x10,0x00,
	0x80,0x83,0x83,0x83,0x80,_nn_,
	
	0x50,0x00,
	0x88,0x88,0x48,0x88,0x88,_nn_,

	0x90,0x00,
	0x00,0x05,0x00,0x0f,0x00,_nn_,
	
	0x10,0x05,
	0x00,_nn_,
	
	0x10,0x06,
	0x00,0x00,0x90,0x90,0x00,0x00,
	0x8a,0x8a,0x00,0x8c,_bb_,6,0x00,_bb_,5,_nn_,
	
	0x50,0x06,
	0x14,0x20,0x53,0x54,0x0c,0x0c,
	0x2d,0x2e,0x0a,0x32,0x28,0x26,0x2d,0x20,0x2b,0x0c,_bb_,5,_nn_,
	
	0x90,0x06,
	0x00,_bb_,6,
	0x20,0x20,0x00,0x20,_bb_,6,0x00,_bb_,5,_nn_,
	
	0xc1,0x00,
	0x3f,0xb9,0x00,_bb_,4,0x10,0x04,0x0f,0x00,0x0a,0x19,_nn_,
	
	_end_

};



unsigned char code NoSignal_GER[]   =
{
 
    _end_
};



unsigned char code NoSignal_FRE[]   =
{

    _end_
};



unsigned char code NoSignal_ITA[]   =
{
 
    _end_
};



unsigned char code NoSignal_SPA[]   =
{
 
    _end_
};



unsigned char code NoSignal_CHI_T[] =
{

    _end_
};



unsigned char code NoSignal_CHI_S[] =
{

    _end_
};



unsigned char code NoSignal_JAP[]   =
{

    _end_
};

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


unsigned char code NoSupport_ENG[]  =
{

	0xc0,0x00,
	((DV_ACT_STA_POS/4) >> 2) + 0x30,((DH_ACT_STA_POS/4) >> 2) + 0x20,0xa1,_nn_,
	0xc0,0x03,
	0x06,0x00,0x28,_nn_,

	0x10,0x00,
	0x80,0x83,0x83,0x83,0x80,_nn_,
	
	0x50,0x00,
	0x88,0x88,0x48,0x88,0x88,_nn_,

	0x90,0x00,
	0x00,0x05,0x00,0x0f,0x00,_nn_,
	
	0x10,0x05,
	0x00,_nn_,
	
	0x10,0x06,
	0x00,0x00,0x90,0x90,0x00,0x00,
	0x8a,0x8a,0x00,0x8c,_bb_,7,0x00,_bb_,4,_nn_,
	
	0x50,0x06,
	0x14,0x23,0x53,0x54,0x0c,0x0c,
	0x2d,0x2e,0x0a,0x32,0x34,0x2f,0x2f,0x2e,0x31,0x33,0x0c,_bb_,4,_nn_,
	
	0x90,0x06,
	0x00,_bb_,6,
	0x20,_bb_,14,_nn_,
	
	0xc1,0x00,
	0x3f,0xb9,0x00,_bb_,4,0x60,0x04,0x0f,0x00,0x0a,0x19,_nn_,

	_end_
};



unsigned char code NoSupport_GER[]  =
{

    _end_
};



unsigned char code NoSupport_FRE[]  =
{
 
    _end_
};



unsigned char code NoSupport_ITA[]  =
{

    _end_
};



unsigned char code NoSupport_SPA[]  =
{

    _end_
};



unsigned char code NoSupport_CHI_T[]    =
{
 
    _end_
};



unsigned char code NoSupport_CHI_S[]    =
{
 
    _end_
};



unsigned char code NoSupport_JAP[]  =
{

    _end_
};
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


unsigned char code OSD_RGB[]=
{
	0xc0,0x00,
	((DV_ACT_STA_POS/4) >> 2) + 0x05,((DH_ACT_STA_POS/4) >> 2) + 0x02,0x01,_nn_,
	0xc0,0x03,
	0x06,0x00,0x28,_nn_,

	0x10,0x00,
	0x80,_bb_,5,_nn_,
	
	0x50,0x00,
	0x88,_bb_,5,_nn_,
	
	0x90,0x00,
	0x00,0x00,0x0f,0x00,0x00,_nn_,
	
	0x10,0x05,
	0x00,_nn_,

	0x10,0x06,
	0x00,0x8c,_bb_,8,0x00,_bb_,6,_nn_,
	
	0x50,0x06,
	0x0c,0x31,0x00,0x26,0x00,0x21,0x00,0x00,0x00,
	0x0c,_bb_,6,_nn_,
	
	0x90,0x06,
	0x00,0x20,0x30,0xc0,0x30,_bb_,5,0x00,_bb_,6,_nn_,
	
	0xc1,0x00,
	0x1b,0x9b,0x00,0x00,0x80,0x02,0x80,0x01,0x08,0x00,0x0a,0x19,_nn_,

	_end_

};



unsigned char code OSD_DVI[]=
{
	0xc0,0x00,
	((DV_ACT_STA_POS/4) >> 2) + 0x05,((DH_ACT_STA_POS/4) >> 2) + 0x02,0x01,_nn_,
	0xc0,0x03,
	0x06,0x00,0x28,_nn_,

	0x10,0x00,
	0x80,_bb_,5,_nn_,
	
	0x50,0x00,
	0x88,_bb_,5,_nn_,

	0x90,0x00,
	0x00,0x00,0x0f,0x00,0x00,_nn_,
	
	0x10,0x05,
	0x00,_nn_,
	
	0x10,0x06,
	0x00,0x8c,_bb_,8,0x00,_bb_,6,_nn_,
	
	0x50,0x06,
	0x0c,0x23,0x00,0x35,0x00,0x28,0x00,0x00,0x00,
	0x0c,_bb_,6,_nn_,
	
	0x90,0x06,
	0x00,0x40,0x30,0x40,0x30,0x40,0x30,0x30,0x30,0x00,_bb_,6,_nn_,
	
	0xc1,0x00,
	0x1b,0x9b,0x00,0x00,0x80,0x02,0x80,0x01,0x08,0x00,0x0a,0x19,_nn_,
	
	_end_


};



unsigned char code OSD_AV[]=
{

    _end_
};


unsigned char code OSD_SV[]=
{

    _end_
};



unsigned char code OSD_YUV[]=
{

    _end_
};


unsigned char code OSD_TV[]=
{
 
    _end_
};

#if(TV_CHIP != TV_NONE)


unsigned char code OSD_CHANNEL[]=
{
    0xaf,0x0c,      //Row 15,Col 12
#if(DISP_1024x768 == DISP_SIZE)
    NOTE_V,73,_nn_,//NOTE_H,  //V & H Delay 
#else
    NOTE_V,93,_nn_,//NOTE_H,  //V & H Delay 
#endif
    0xa1,0x1e,0x06,_nn_ //Row 1,Col 30  //attr  
    0xa1,0x00,      //Row 1,Col 0   //attr 
    0x02,_bb_,6,_nn_,
    0x81,0x00,      //Row 1,Col 0   //char
    _C_,_H_,0x0c,0x0d,0x0d,0x0d,_nn_,
    _end_
};



unsigned char code OSD_STEREO[] =
{
    0xaf,0x0c,      //Row 15,Col 12
#if (DISP_1024x768 == DISP_SIZE)
    NOTE_V,73,_nn_,      //NOTE_H,  //V & H Delay 
#else
    NOTE_V,93,_nn_,      //NOTE_H,  //V & H Delay 
#endif
    0xa2,0x1e,0x06,_nn_, //Row 2,Col 30  //attr  
    0xa2,0x00,      //Row 2,Col 0   //attr 
    0x06,_bb_,6,_nn_,
    0x82,0x00,      //Row 2,Col 0   //char
    _S_,_T_,_E_,_R_,_E_,_O_,_nn_,
    _end_
};



unsigned char code OSD_SAP[]    =
{
    0xaf,0x0c,      //Row 15,Col 12
#if (DISP_1024x768 == DISP_SIZE)
    NOTE_V,73,_nn_,      //NOTE_H,  //V & H Delay 
#else
    NOTE_V,93,_nn_,      //NOTE_H,  //V & H Delay 
#endif
    0xa2,0x1e,0x06,_nn_, //Row 2,Col 30  //attr  
    0xa2,0x00,      //Row 2,Col 0   //attr 
    0x06,_bb_,6,_nn_,
    0x82,0x00,      //Row 2,Col 0   //char
    0x00,_S_,_A_,_P_,0x00,0x00,_nn_,
    _end_
};



unsigned char code OSD_MUTE[]   =
{
    0xaf,0x0c,      //Row 15,Col 12
#if (DISP_1024x768 == DISP_SIZE)
    NOTE_V,73,_nn_,      //NOTE_H,  //V & H Delay 
#else

⌨️ 快捷键说明

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