init.h

来自「这是一个用T108加上瑞萨公司R8C2A做的一个OSD显示。希望能帮上大家。」· C头文件 代码 · 共 381 行 · 第 1/2 页

H
381
字号

 
	0xE0		, (0x91 | CPH1 | CPH2 |CPH3),					//PW_MGRCTRL_REG, Bruce, 2006/01/09 for flexibility                                                                          
	0xE1		, 0xf4,                                 //OPIN_CFG_REG	
  
	0x9C		, 0x02,                                 //DITHERING		
	0x90		, 0x00,		                            //IMG_FUNCTRL_REG		
//De-Interlace enable                                           
	0x30		, 0x00,//(I1CReadByte(TW803_P0, 0x30)|0x01)//DITLC_VSHDW_REG		
#ifdef OUT_PIN_CONF
	0xE1		, OUT_PIN_CONF,			        //OPIN_CFG_REG		
#endif	

#ifdef Enable_HelfSample
	0x79		, 0x20,
#endif
#ifdef EnableDither
	0x90		, ENCSC | ENDITHER,
	0x9c		, OutputBit,
#else
	0x90		, ENCSC,
#endif
	0xE0		, 0xB9,
	0xE1		, 0xFC,
	0xE3		, /*0x00*/0x10,		//for new version
	0xE5		, 0xc7,
	0xe6        , 0x2c,
	0xEC		, 0x40,		//Enable SAR
	0x34		, 0x11,		//Enable SAR interrupt.
	0x33		, 0xFF,     //Disable All interrupt.	
	0x32		, 0xFF,		//Clear All interrupt.
	0xee		, 0xfe,
	0xff		, 0x00// End of register settings, bruce, 2006/01/09        
};      

REGADRVAL const stInitT10xP1[]={
  ///adr		, value
	0x50		, 0x30,
	0x51		, 0x11,
	0xB8		, 0xC0,
	0xD3		, 0x01,
	0xDF		, 0x00,
	0xFF		, 0x00	// End of register settings
};     

REGADRVAL const stInitT10xP2[]={
        //adr		, value
	0x3f		, 0x00,				        //ADC_ROFF		// Change by Sherman 06'01'10
	0x24		, 0xe9,					        //0   //0x24			
	0x25		, 0x0F,                                               //0x25			
	//Video Register Page Setted      
	0x2E		, 0x82,                                               //HACT_START_REG		
	0x2F		, 0x30,                                               //HACT_WIDTH_REG		
	0x3F		, 0x00,                                               //SOFT_RESET_REG		
	0xc0		, 0x14,						//5   //0xc0			
	0xe0		, 0x10,                                               //0xe0			
	0x0C		, 0x8a,                                               //CHROMA_AGC_REG		
	0x18		, 0x21,                                               //CHROMA_DTO0_REG		
	0x19		, 0xf0,                                               //CHROMA_DTO1_REG		
	0x1A		, 0x7c,						//10  //CHROMA_DTO2_REG		
	0x1B		, 0x0f,                                               //CHROMA_DTO3_REG			                                                                                                      
	0x30		, 0x24,                                               //VACT_START_REG		
	0x31		, 0x61,                                               //VACT_HEIGHT_REG		
	0x82		, 0x42,                                               //COMB_FILTERCFG_REG
	                                                                                                      
	0x04		, 0xD8,						//15  //HAGC_REG		// Change by Sherman for Gamma Adjustment 05'12'19	 
	0x10		, 0x27,                                               //AGC_PKNO_REG		
	0x00		, 0x00,                                               //SRCSEL_COMBF_REG	
	0x03		, 0x00,                                               //COMB_FILTERMODE_REG	
	0x02		, 0x4B,                                               //YC_AGC_REG		
	0x11		, 0xb9,						//20  //AGC_PKGT_CTRL_REG
	
	//Color                                                                       
	0x01		, 0x00,//(I1CReadByte(TW803_P0+4, 0x01)|0x01),           //BW_CTRL_REG		

 	0x80		, 0x05,//For char clear                               //LUMINANCE_PKCTRL_REG	
	0x07		, 0x01,//For color bar clear                          //YC_OPCTRL_REG		
    0x08		, 0x70,                                               //CONTRAST_REG		// Change by Sherman for Gamma Adjustment 05'12'19	            
	0x0A		, 0x58,           	         		//25  //SAT_REG			                                              
	0x09		, 0x18,                                                //BRIGHT_REG		             
	
	0x2d		, 0x48,		// Add by Sherman 06'01'10s
	0x3f		, 0x01,				        //ADC_ROFF		// Change by Sherman 06'01'10
	0xff		, 0x00,		// End of register settings, bruce, 2006/01/09
};      



unsigned char const cOSDMenuLutData[32]={

    //0xGB, 0x0R
    0x00,0x00, //0
    0x0f,0x00, //1 blue
    0x00,0x00, //2 black
    0x0f,0x0a, //3 purple
    0x0f,0x00, //4 blue
    0xf8,0x00, //5 green
    0x22,0x0A, //6 red
    0x1f,0x01, //7 light blue//olive
    0x88,0x05, //8 light grey
    0xb9,0x0b, //9 purple
    0xBD,0x05, //A purple
    0x0f,0x0f, //B 
    0xA3,0x0A, //C Yellow
    0xcc,0x0c, //D light grey
    0x68,0x03, //E Light Blue Main Menu Background or 0x79, 0x04 which is a litter light
    0xff,0x0f, //F white
    
};

unsigned char const VGAREG[]={
0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x14, 0x15, 0x16, 0x17, 
0x20, 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x48, 0x49, 0x4a, 0x4b, 0x4c,
0x4d, 0x4e, 0x4f, 0x72, 0x73, 0x74, 0x75, 0x84, 0x85, 0xb0, 
0xb2, 0xb8, 0xb9, 0xc8, 0xe0, 0x0d, 0x10, 0xff
};

unsigned char const VGA640x480[]={
//0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x14, 0x15, 0x16, 0x17, 
//0x20, 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x48, 0x49, 0x4a, 0x4b, 0x4c,
//0x4d, 0x4e, 0x4f, 0x72, 0x73, 0x74, 0x75, 0x84, 0x85, 0xb0, 
//0xb2, 0xb8, 0xb9, 0xc8, 0xe0, 0x0d, 0x10
  0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0xf0, 0x20, 0x43/*0x03*/, 0x20, 
  0x00, 0xc2, 0x7c, 0x02, 0x07, 0x00, 0xbe, 0x80, 0x02, 0xe0, 0x01, 0x77, 
  0x00, 0x16, 0x00, 0x20, 0x2a, 0x00, 0x40, 0x00, 0x0e, 0x3b, 
  0x0e, 0x80, 0x02, 0x16, 0xc9, 0x30, 0x0d
};

unsigned char const VGA720x480[]={
//0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x14, 0x15, 0x16, 0x17, 
//0x20, 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x48, 0x49, 0x4a, 0x4b, 0x4c,
//0x4d, 0x4e, 0x4f, 0x72, 0x73, 0x74, 0x75, 0x84, 0x85, 0xb0, 
//0xb2, 0xb8, 0xb9, 0xc8, 0xe0, 0x0d, 0x10
 #if 0		//fuzhiqi
  0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0xf0, 0x50, 0x03, 0x20, 
  0x00, 0xc2, 0xB0, 0x02, 0x09, 0x00, 0xbe, 0xd0, 0x02, 0xe0, 0x01, 0x68, 
  0x00, 0x16, 0x00, 0x00, 0x2b, 0x00, 0x40, 0x00, 0x0e, 0x3b, 
  0x0e, 0x80, 0x02, 0x16, 0xc9, 0x0d, 0x0d
 #else
  0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0xf0, 0x20, 0x03, 0x20, 
  0x00, 0xc2, 0x30, 0x02, 0x07, 0x00, 0xbe, 0x80, 0x02, 0xe0, 0x01, 0x77, 
  0x00, 0x16, 0x00, 0x20, 0x2a, 0x00, 0x40, 0x00, 0x0e, 0x3b, 
  0x0e, 0x80, 0x02, 0x16, 0xc9, 0x0d, 0x0d
 #endif
};

unsigned char const VGA720x576[]={
//0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x14, 0x15, 0x16, 0x17, 
//0x20, 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x48, 0x49, 0x4a, 0x4b, 0x4c,
//0x4d, 0x4e, 0x4f, 0x72, 0x73, 0x74, 0x75, 0x84, 0x85, 0xb0, 
//0xb2, 0xb8, 0xb9, 0xc8, 0xe0, 0x0d, 0x10
  0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0xf0, 0x50, 0x03, 0x20, 
  0x00, 0xc2, 0xC0, 0x02, 0x30, 0x00, 0xbA, 0xd0, 0x02, 0x40, 0x02, 0x68, 
  0x00, 0x1C, 0x00, 0x00, 0x2D, 0x00, 0x40, 0x00, 0x0e, 0x3b, 
  0x11, 0x87, 0x02, 0x16, 0xc9, 0x0d, 0x0d
};

unsigned char const VGA800x600[]={
//0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x14, 0x15, 0x16, 0x17, 
//0x20, 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x48, 0x49, 0x4a, 0x4b, 0x4c,
//0x4d, 0x4e, 0x4f, 0x72, 0x73, 0x74, 0x75, 0x84, 0x85, 0xb0, 
//0xb2, 0xb8, 0xb9, 0xc8, 0xe0, 0x0d, 0x10
  0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0xf0, 0x20, 0x44, 0x80, 
  0x00, 0xc2, 0x00, 0x00, 0x00, 0x00, 0x00, 0x36, 0x03, 0x58, 0x02, 0x4c, 
  0x00, 0x1b, 0x00, 0x20, 0x36, 0x00, 0x40, 0x00, 0x0e, 0x3b, 
  0x26, 0x88, 0x02, 0x1b, 0xc9, 0x30, 0x0d
};



#else


extern unsigned char const ucaSignalStdRegP2[6];
extern unsigned char const ucaSignalStdValP2[36];	 
//extern Source uiaSrcMux1[];
extern REGADRVAL const stInitT10xP0[];      
extern REGADRVAL const stInitOUT_T[];
extern REGADRVAL const stInitT10xP2[];
extern REGADRVAL const stInitT10xP1[];
extern unsigned short const ucaZoomDataP0_NTSC[];
extern unsigned char const cOSDMenuLutData[32];

extern unsigned char const VGAREG[];
extern unsigned char const VGA640x480[];
extern unsigned char const VGA720x480[];
extern unsigned char const VGA720x576[];
extern unsigned char const VGA800x600[];

#endif //INIT_H

⌨️ 快捷键说明

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