VDC_cfg.h
上传用户:xmyjxjd
上传日期:2013-05-04
资源大小:1517k
文件大小:42k
- #ifdef __MAIN__
- ///////////////////////////////////////////////////////////////////////////////
- // Video decoder setting
-
- #if (VIDEO_CHIP == VDC_SAA7111)
- unsigned char code V_NOWORK[] = // Video No Work
- {
- 27, ADDR_7111A, 0x02, 0x07,0x1F,0x00,0x00,0xEB,0xE0,
- 0x8B,0x84,0x80,0x40,0x40,0x00,0x04,0x00,
- 0x40,0x00,0xA0,0x05,0x00,0x11,0x00,0x01,
- 0x00,0x00,
- 0
- };
- unsigned char code AV_DETECT[] = // REG[0E] for different source
- {
- 27, ADDR_7111A, 0x02, 0xD8,0x27,0x00,0x00,0xEB,0xE0,
- 0xC8,0x04,0x80,0x40,0x40,0x00,0x0d,0x00,
- 0x40,0x00,0xA0,0x05,0x00,0x11,0x00,0x01,
- 0x00,0x00,
- 0
- };
- unsigned char code SV_DETECT[] = // REG[0E] for different source
- {
- 27, ADDR_7111A, 0x02, 0xDF,0x27,0x00,0x00,0xEB,0xE0,
- 0xC8,0x84,0x80,0x40,0x40,0x00,0x0d,0x00,
- 0x40,0x00,0xA0,0x05,0x00,0x11,0x00,0x01,
- 0x00,0x00,
- 0
- };
- unsigned char code YUV_DETECT[] = // No data
- {
- 0
- };
- unsigned char code V_DISABLE[] = // No data
- {
- 0
- };
- unsigned char code V_ENABLE[] = // No data
- {
- 0
- };
- unsigned char code AV_60_0[] = // 60Hz/525line NTSC M
- {
- 19, ADDR_7111A, 0x08, 0xC8,0x14,0x92,0x48,0x60,0x00,0x04,0x00, //enable Chrominance comb filter
- 0x40,0x0C,0x80,0x00,0x00,0x11,0x00,0x01,
- 0
- };
- unsigned char code AV_60_1[] = // 60Hz/525line PAL 4.43
- {
- 19, ADDR_7111A, 0x08, 0xC8,0x04,0x92,0x48,0x60,0x00,0x14,0x00, //enable Chrominance comb filter
- 0x40,0x0C,0x80,0x00,0x00,0x11,0x00,0x01,
- 0
- };
- unsigned char code AV_60_2[] = // 60Hz/525line NTSC 4.43
- {
- 19, ADDR_7111A, 0x08, 0xC8,0x14,0x92,0x48,0x60,0x00,0x24,0x00, //enable Chrominance comb filter
- 0x40,0x0C,0x80,0x00,0x00,0x11,0x00,0x01,
- 0
- };
- unsigned char code AV_60_3[] = // 60Hz/525line PAL M
- {
- 19, ADDR_7111A, 0x08, 0xC8,0x04,0x92,0x48,0x60,0x00,0x34,0x00, //enable Chrominance comb filter
- 0x40,0x0C,0x80,0x00,0x00,0x11,0x00,0x01,
- 0
- };
- unsigned char code AV_60_4[] = // reserved
- {
- 0
- };
- unsigned char code AV_50_0[] = // 50Hz/625line PAL BGHI
- {
- 19, ADDR_7111A, 0x08, 0x88,0x04,0x92,0x48,0x60,0x00,0x04,0x00, //enable Chrominance comb filter
- 0x40,0x0C,0x80,0x00,0x00,0x16,0x33,0x01,
- 0
- };
- unsigned char code AV_50_1[] = // 50Hz/625line NTSC 4.43
- {
- 19, ADDR_7111A, 0x08, 0x88,0x14,0x92,0x48,0x60,0x00,0x14,0x00, //enable Chrominance comb filter
- 0x40,0x0C,0x80,0x00,0x00,0x16,0x33,0x01,
- 0
- };
- unsigned char code AV_50_2[] = // 50Hz/625line PAL N
- {
- 19, ADDR_7111A, 0x08, 0x88,0x04,0x92,0x48,0x60,0x00,0x24,0x00, //enable Chrominance comb filter
- 0x40,0x0C,0x80,0x00,0x00,0x16,0x33,0x01,
- 0
- };
- unsigned char code AV_50_3[] = // 50Hz/625line NTSC N
- {
- 19, ADDR_7111A, 0x08, 0x88,0x14,0x92,0x48,0x60,0x00,0x34,0x00, //enable Chrominance comb filter
- 0x40,0x0C,0x80,0x00,0x00,0x16,0x33,0x01,
- 0
- };
- unsigned char code AV_50_4[] = // reserved
- {
- 0
- };
- unsigned char code AV_SECAM[] = // 50Hz/625line SECAM
- {
- 19, ADDR_7111A, 0x08, 0x88,0x04,0x92,0x48,0x60,0x00,0x5c,0x00, //disable Chrominance comb filter
- 0x40,0x0C,0x80,0x00,0x00,0x16,0x33,0x01,
- 0
- };
- unsigned char code SV_60_0[] = // 60Hz/525line NTSC M
- {
- 19, ADDR_7111A, 0x08, 0xC8,0x94,0x92,0x48,0x60,0x00,0x0d,0x00, //disable Chrominance comb filter
- 0x40,0x0C,0x80,0x00,0x00,0x11,0x00,0x01,
- 0
- };
- unsigned char code SV_60_1[] = // 60Hz/525line PAL 4.43
- {
- 19, ADDR_7111A, 0x08, 0xC8,0x84,0x92,0x48,0x60,0x00,0x1d,0x00, //disable Chrominance comb filter
- 0x40,0x0C,0x80,0x00,0x00,0x11,0x00,0x01,
- 0
- };
- unsigned char code SV_60_2[] = // 60Hz/525line NTSC 4.43
- {
- 19, ADDR_7111A, 0x08, 0xC8,0x94,0x92,0x48,0x60,0x00,0x2d,0x00, //disable Chrominance comb filter
- 0x40,0x0C,0x80,0x00,0x00,0x11,0x00,0x01,
- 0
- };
- unsigned char code SV_60_3[] = // 60Hz/525line PAL M
- {
- 19, ADDR_7111A, 0x08, 0xC8,0x84,0x92,0x48,0x60,0x00,0x3d,0x00, //disable Chrominance comb filter
- 0x40,0x0C,0x80,0x00,0x00,0x11,0x00,0x01,
- 0
- };
- unsigned char code SV_60_4[] = // Reserved
- {
- 0
- };
- unsigned char code SV_50_0[] = // 50Hz/625line PAL BGHI
- {
- 19, ADDR_7111A, 0x08, 0x88,0x84,0x92,0x48,0x60,0x00,0x0d,0x00, //disable Chrominance comb filter
- 0x40,0x0C,0x80,0x00,0x00,0x16,0x33,0x01,
- 0
- };
- unsigned char code SV_50_1[] = // 50Hz/625line NTSC 4.43
- {
- 19, ADDR_7111A, 0x08, 0x88,0x94,0x92,0x48,0x60,0x00,0x1d,0x00, //disable Chrominance comb filter
- 0x40,0x0C,0x80,0x00,0x00,0x16,0x33,0x01,
- 0
- };
- unsigned char code SV_50_2[] = // 50Hz/625line PAL N
- {
- 19, ADDR_7111A, 0x08, 0x88,0x84,0x92,0x48,0x60,0x00,0x2d,0x00, //disable Chrominance comb filter
- 0x40,0x0C,0x80,0x00,0x00,0x16,0x33,0x01,
- 0
- };
- unsigned char code SV_50_3[] = // 50Hz/625line NTSC N
- {
- 19, ADDR_7111A, 0x08, 0x88,0x94,0x92,0x48,0x60,0x00,0x3d,0x00, //disable Chrominance comb filter
- 0x40,0x0C,0x80,0x00,0x00,0x16,0x33,0x01,
- 0
- };
- unsigned char code SV_50_4[] = // Reserved
- {
- 0
- };
-
- unsigned char code SV_SECAM[] = // 50Hz/625line SECAM
- {
- 19, ADDR_7111A, 0x08, 0x88,0x84,0x92,0x48,0x60,0x00,0x5c,0x00, //disable Chrominance comb filter
- 0x40,0x0C,0x80,0x00,0x00,0x16,0x33,0x01,
- 0
- };
- unsigned char code VIDEO_ALL[] = // No data
- {
- 0
- };
- unsigned char code VIDEO_YUV[] = // No data
- {
- 0
- };
- unsigned char code VIDEO_60[] = // No data
- {
- 0
- };
- unsigned char code VIDEO_50[] = // No data
- {
- 0
- };
- unsigned char code TV_SOURCE_SEL[] = // No data
- {
- 0
- };
- unsigned char code TV_SCAN_GAIN[] = // No data
- {
- 0
- };
- unsigned char code TV_DISP_GAIN[] = // No data
- {
- 0
- };
- #else
- #if (VIDEO_CHIP == VDC_SAA7114)
- unsigned char code V_NOWORK[] = // Video No Work
- {
- 28, ADDR_7114, 0x01, 0x08,0x00,0x18,0x90,0x90,0xEB,0xE0,
- 0xD8,0x80,0x80,0x3E,0x40,0x00,0x08,0x2A,
- 0x0e,0x00,0x00,0x10,0x24,0x00,0x10,0x00, //0x13 0x17
- 0x40,0x80,
- 0
- };
- unsigned char code AV_DETECT[] = // REG[0E] for different source
- {
- 28, ADDR_7114, 0x01, 0x08,0xc5,0x00,0x90,0x90,0xEB,0xE0,
- 0xD8,0x80,0x80,0x3E,0x40,0x00,0x08,0x2A, //[09] then = 0x40
- 0x0e,0x00,0xd9,0x10,0x24,0x00,0x10,0x00, //0x13 0x17
- 0x40,0x80,
- 0
- };
- unsigned char code SV_DETECT[] = // REG[0E] for different source
- {
- 28, ADDR_7114, 0x01, 0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
- 0xD8,0x80,0x80,0x3E,0x40,0x00,0x08,0x2A,
- 0x0e,0x00,0xd9,0x10,0x24,0x00,0x10,0x00, //0x13 0x17
- 0x40,0x80,
- 0
- };
- unsigned char code YUV_DETECT[] = // No data
- {
- 0
- };
- unsigned char code TV_SOURCE_SEL[] =
- {
- 4, ADDR_7114, 0x02, 0xc0,
- 0
- };
- unsigned char code TV_SCAN_GAIN[] =
- {
- 6, ADDR_7114, 0x03, 0x0c,0x60,0x60,
- 0
- };
- unsigned char code TV_DISP_GAIN[] =
- {
- 6, ADDR_7114, 0x03, 0x00,0x90,0x90,
- 0
- };
- unsigned char code V_DISABLE[] =
- {
- 4, ADDR_7114, 0x88, 0x00,
- 0
- };
- unsigned char code V_ENABLE[] =
- {
- 4, ADDR_7114, 0x88, 0xe0,
- 0
- };
- unsigned char code AV_60_0[] = // 60Hz/525line NTSC M
- {
- 28, ADDR_7114, 0x01, 0x08,0xc5,0x00,0x90,0x90,0xEB,0xE0,
- 0xD8,0x40,0x80,0x3E,0x40,0x00,0x09,0x2A,
- 0x0e,0x00,0xd9,0x10,0x24,0x00,0x10,0x00, //0x13 0x17
- 0x40,0x80,
- 0
- };
- unsigned char code AV_60_1[] = // 60Hz/525line PAL 4.43
- {
- 28, ADDR_7114, 0x01, 0x08,0xc5,0x00,0x90,0x90,0xEB,0xE0,
- 0xD8,0x40,0x80,0x3E,0x40,0x00,0x11,0x2A,
- 0x06,0x00,0xd9,0x10,0x24,0x00,0x10,0x00, //0x13 0x17
- 0x40,0x80,
- 0
- };
- unsigned char code AV_60_2[] = // 60Hz/525line NTSC 4.43
- {
- 28, ADDR_7114, 0x01, 0x08,0xc5,0x00,0x90,0x90,0xEB,0xE0,
- 0xD8,0x40,0x80,0x3E,0x40,0x00,0x29,0x2A,
- 0x0e,0x00,0xd9,0x10,0x24,0x00,0x10,0x00, //0x13 0x17
- 0x40,0x80,
- 0
- };
- unsigned char code AV_60_3[] = // 60Hz/525line PAL M
- {
- 28, ADDR_7114, 0x01, 0x08,0xc5,0x00,0x90,0x90,0xEB,0xE0,
- 0xD8,0x40,0x80,0x3E,0x40,0x00,0x31,0x2A,
- 0x06,0x00,0xd9,0x10,0x24,0x00,0x10,0x00, //0x13 0x17
- 0x40,0x80,
- 0
- };
- unsigned char code AV_60_4[] = // 60Hz/525line NTSC JAPAN
- {
- 28, ADDR_7114, 0x01, 0x08,0xc5,0x00,0x90,0x90,0xEB,0xE0,
- 0xD8,0x40,0x80,0x3E,0x40,0x00,0x49,0x2A,
- 0x0e,0x00,0xd9,0x10,0x24,0x00,0x10,0x00, //0x13 0x17
- 0x40,0x80,
- 0
- };
- unsigned char code AV_50_0[] = // 50Hz/625line PAL BGHI
- {
- 28, ADDR_7114, 0x01, 0x08,0xc5,0x00,0x90,0x90,0xEB,0xE0,
- 0x98,0x40,0x80,0x3E,0x40,0x00,0x01,0x2A,
- 0x06,0x00,0xd9,0x10,0x24,0x00,0x10,0x00, //0x13 0x17
- 0x40,0x80,
- 0
- };
- unsigned char code AV_50_1[] = // 50Hz/625line NTSC 4.43
- {
- 28, ADDR_7114, 0x01, 0x08,0xc5,0x00,0x90,0x90,0xEB,0xE0,
- 0x98,0x40,0x80,0x3E,0x40,0x00,0x19,0x2A,
- 0x0e,0x00,0xd9,0x10,0x24,0x00,0x10,0x00, //0x13 0x17
- 0x40,0x80,
- 0
- };
- unsigned char code AV_50_2[] = // 50Hz/625line PAL N
- {
- 28, ADDR_7114, 0x01, 0x08,0xc5,0x00,0x90,0x90,0xEB,0xE0,
- 0x98,0x40,0x80,0x3E,0x40,0x00,0x21,0x2A,
- 0x06,0x00,0xd9,0x10,0x24,0x00,0x10,0x00, //0x13 0x17
- 0x40,0x80,
- 0
- };
- unsigned char code AV_50_3[] = // 50Hz/625line NTSC N
- {
- 28, ADDR_7114, 0x01, 0x08,0xc5,0x00,0x90,0x90,0xEB,0xE0,
- 0x98,0x40,0x80,0x3E,0x40,0x00,0x39,0x2A,
- 0x0e,0x00,0xd9,0x10,0x24,0x00,0x10,0x00, //0x13 0x17
- 0x40,0x80,
- 0
- };
- unsigned char code AV_50_4[] = // reserved
- {
- 28, ADDR_7114, 0x01, 0x08,0xc5,0x00,0x90,0x90,0xEB,0xE0,
- 0x98,0x40,0x80,0x3E,0x40,0x00,0x41,0x2A,
- 0x06,0x00,0xd9,0x10,0x24,0x00,0x10,0x00, //0x13 0x17
- 0x40,0x80,
- 0
- };
- unsigned char code AV_SECAM[] = // 50Hz/625line SECAM
- {
- 28, ADDR_7114, 0x01, 0x08,0xc5,0x00,0x90,0x90,0xEB,0xE0,
- 0x98,0x3B,0x80,0x3E,0x40,0x00,0x58,0x80, //0xA4,
- 0x00,0x00,0xd9,0x10,0x24,0x00,0x10,0x00, //0x13 0x17
- 0x40,0x80,
- 0
- };
- unsigned char code SV_60_0[] = // 60Hz/525line NTSC M
- {
- 28, ADDR_7114, 0x01, 0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
- 0xD8,0x80,0x80,0x3E,0x40,0x00,0x08,0x2A,
- 0x0e,0x00,0xd9,0x10,0x24,0x00,0x10,0x00, //0x13 0x17
- 0x40,0x80,
- 0
- };
- unsigned char code SV_60_1[] = // 60Hz/525line PAL 4.43
- {
- 28, ADDR_7114, 0x01, 0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
- 0xD8,0x80,0x80,0x3E,0x40,0x00,0x10,0x2A,
- 0x06,0x00,0xd9,0x10,0x24,0x00,0x10,0x00, //0x13 0x17
- 0x40,0x80,
- 0
- };
- unsigned char code SV_60_2[] = // 60Hz/525line NTSC 4.43
- {
- 28, ADDR_7114, 0x01, 0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
- 0xD8,0x80,0x80,0x3E,0x40,0x00,0x28,0x2A,
- 0x0e,0x00,0xd9,0x10,0x24,0x00,0x10,0x00, //0x13 0x17
- 0x40,0x80,
- 0
- };
- unsigned char code SV_60_3[] = // 60Hz/525line PAL M
- {
- 28, ADDR_7114, 0x01, 0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
- 0xD8,0x80,0x80,0x3E,0x40,0x00,0x30,0x2A,
- 0x06,0x00,0xd9,0x10,0x24,0x00,0x10,0x00, //0x13 0x17
- 0x40,0x80,
- 0
- };
- unsigned char code SV_60_4[] = // 60Hz/525line NTSC JAPAN
- {
- 28, ADDR_7114, 0x01, 0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
- 0xD8,0x80,0x80,0x3E,0x40,0x00,0x48,0x2A,
- 0x0e,0x00,0xd9,0x10,0x24,0x00,0x10,0x00, //0x13 0x17
- 0x40,0x80,
- 0
- };
- unsigned char code SV_50_0[] = // 50Hz/625line PAL BGHI
- {
- 28, ADDR_7114, 0x01, 0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
- 0x98,0x80,0x80,0x3E,0x40,0x00,0x00,0x2A,
- 0x06,0x00,0xd9,0x10,0x24,0x00,0x10,0x00, //0x13 0x17
- 0x40,0x80,
- 0
- };
- unsigned char code SV_50_1[] = // 50Hz/625line NTSC 4.43
- {
- 28, ADDR_7114, 0x01, 0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
- 0x98,0x80,0x80,0x3E,0x40,0x00,0x18,0x2A,
- 0x0e,0x00,0xd9,0x10,0x24,0x00,0x10,0x00, //0x13 0x17
- 0x40,0x80,
- 0
- };
- unsigned char code SV_50_2[] = // 50Hz/625line PAL N
- {
- 28, ADDR_7114, 0x01, 0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
- 0x98,0x80,0x80,0x3E,0x40,0x00,0x20,0x2A,
- 0x06,0x00,0xd9,0x10,0x24,0x00,0x10,0x00, //0x13 0x17
- 0x40,0x80,
- 0
- };
- unsigned char code SV_50_3[] = // 50Hz/625line NTSC N
- {
- 28, ADDR_7114, 0x01, 0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
- 0x98,0x80,0x80,0x3E,0x40,0x00,0x38,0x2A,
- 0x0e,0x00,0xd9,0x10,0x24,0x00,0x10,0x00, //0x13 0x17
- 0x40,0x80,
- 0
- };
- unsigned char code SV_50_4[] = // Reserved
- {
- 28, ADDR_7114, 0x01, 0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
- 0x98,0x80,0x80,0x3E,0x40,0x00,0x40,0x2A,
- 0x06,0x00,0xd9,0x10,0x24,0x00,0x10,0x00, //0x13 0x17
- 0x40,0x80,
- 0
- };
- unsigned char code SV_SECAM[] = // 50Hz/625line SECAM
- {
- 28, ADDR_7114, 0x01, 0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
- 0x98,0xab,0x80,0x3E,0x40,0x00,0x58,0x80, //0xA4,
- 0x00,0x00,0xd9,0x10,0x24,0x00,0x10,0x00, //0x13 0x17
- 0x40,0x80,
- 0
- };
- unsigned char code VIDEO_ALL[] =
- {
- 211, ADDR_7114, 0x20,
- //0x20~0x2f
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- //0x30~0x3f
- 0xbc,0xdf,0x02,0x00,0xcd,0xcc,0x3a,0x00,
- 0x03,0x20,0x03,0x00,0x00,0x00,0x00,0x00,
- //0x40~0x4f
- 0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- //0x50~0x5f
- 0x00,0x00,0x00,0x00,0x5f,0xff,0xff,0xff,
- 0x00,0x47,0x06,0x03,0x00,0x00,0x00,0x00,
- //0x60~0x6f
- 0x00,0x05,0xa0,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- //0x70~0x7f
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- //0x80~0x8f
- 0x12,0x00,0x00,0x01,0x01,0x04,0x45,0x01, //0x83
- 0xe0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- //0x90~0x9f
- 0x00,0x08,0x09,0x40,0x08,0x00,0xbc,0x02,
- 0x10,0x00,0xf0,0x00,0xbc,0x02,0xf0,0x00,
- //0xa0~0xaf
- 0x01,0x00,0x00,0x00,0x80,0x40,0x40,0x00,
- 0x00,0x04,0x00,0x00,0x00,0x02,0x00,0x00,
- //0xb0~0xbf
- 0x00,0x04,0x00,0x04,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- //0xc0~0xcf
- 0x00,0x08,0x10,0x81,0x10,0x00,0xd0,0x02,
- 0x0a,0x00,0x20,0x01,0xd0,0x02,0x20,0x01,
- //0xd0~0xdf
- 0x01,0x00,0x00,0x00,0x80,0x40,0x40,0x00,
- 0x00,0x04,0x00,0x00,0x00,0x02,0x00,0x00,
- //0xe0~0xef
- 0x00,0x04,0x00,0x04,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0
- };
- unsigned char code VIDEO_YUV[] = // No data
- {
- 0
- };
- unsigned char code VIDEO_60[] = // 60Hz
- {
- 19, ADDR_7114, 0x90, 0x00,0x08,0x09,0x40,0x08,0x00,0xbc,0x02,
- 0x00,0x00,0x04,0x01,0xbc,0x02,0x04,0x01, //can move (with noise)
- 0
- };
- unsigned char code VIDEO_50[] = // 50Hz
- {
- 19, ADDR_7114, 0x90, 0x00,0x08,0x09,0x40,0x08,0x00,0xbc,0x02,
- 0x00,0x00,0x38,0x01,0xbc,0x02,0x38,0x01, //can move (with noise)
- 0
- };
- #else
- #if (VIDEO_CHIP == VDC_SAA7115)
- unsigned char code V_NOWORK[] = // Video No Work
- {
- 28, ADDR_7115, 0x01, 0x08,0x00,0x18,0x90,0x90,0xEB,0xE0,
- 0xD0,0x80,0x80,0x3E,0x40,0x00,0x08,0x2A,
- 0x0E,0x00,0x00,0x00,0x00,0x00,0x10,0xC0,
- 0x40,0x80,
- 0
- };
- unsigned char code AV_DETECT[] = // REG[0E] for different source
- {
- 32, ADDR_7115, 0x01, 0x08,0xc0,0x20,0x90,0x90,0xEB,0xE0,
- 0xD0,0x40,0x80,0x3E,0x40,0x00,0x08,0x2A,
- 0x0E,0x00,0xd9,0x00,0x00,0x00,0x10,0x80,
- 0x40,0x80,0x77,0x42,0xa9,0x01,
- 0
- };
- unsigned char code SV_DETECT[] = // REG[0E] for different source
- {
- 32, ADDR_7115, 0x01, 0x08,0xc9,0x20,0x90,0x90,0xEB,0xE0,
- 0xD0,0x80,0x80,0x3E,0x40,0x00,0x08,0x2A,
- 0x0E,0x00,0xd9,0x00,0x00,0x00,0x10,0x80,
- 0x40,0x80,0x77,0x42,0xa9,0x01,
- 0
- };
- unsigned char code YUV_DETECT[] = // No data
- {
- 0
- };
- unsigned char code TV_SOURCE_SEL[] =
- {
- 4, ADDR_7115, 0x02, 0xc5,
- 0
- };
- unsigned char code TV_SCAN_GAIN[] =
- {
- 6, ADDR_7115, 0x03, 0x0c,0x60,0x60,
- 0
- };
- unsigned char code TV_DISP_GAIN[] =
- {
- 6, ADDR_7115, 0x03, 0x00,0x90,0x90,
- 0
- };
- unsigned char code V_DISABLE[] =
- {
- 4, ADDR_7115, 0x88, 0x00,
- 0
- };
- unsigned char code V_ENABLE[] =
- {
- 4, ADDR_7115, 0x88, 0xe0,
- 0
- };
- unsigned char code AV_60_0[] = // 60Hz/525line NTSC M
- {
- 28, ADDR_7115, 0x01, 0x08,0xc0,0x00,0x90,0x90,0xEB,0xE0,
- 0xD0,0x40,0x80,0x3E,0x40,0x00,0x09,0x2A,
- 0x0e,0x00,0xd9,0x00,0x00,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code AV_60_1[] = // 60Hz/525line PAL 4.43
- {
- 28, ADDR_7115, 0x01, 0x08,0xc0,0x00,0x90,0x90,0xEB,0xE0,
- 0xD0,0x40,0x80,0x3E,0x40,0x00,0x11,0x2A,
- 0x06,0x00,0xd9,0x00,0x00,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code AV_60_2[] = // 60Hz/525line NTSC 4.43
- {
- 28, ADDR_7115, 0x01, 0x08,0xc0,0x00,0x90,0x90,0xEB,0xE0,
- 0xD0,0x40,0x80,0x3E,0x40,0x00,0x29,0x2A,
- 0x0e,0x00,0xd9,0x00,0x00,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code AV_60_3[] = // 60Hz/525line PAL M
- {
- 28, ADDR_7115, 0x01, 0x08,0xc0,0x00,0x90,0x90,0xEB,0xE0,
- 0xD0,0x40,0x80,0x3E,0x40,0x00,0x31,0x2A,
- 0x06,0x00,0xd9,0x00,0x00,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code AV_60_4[] = // 60Hz/525line NTSC JAPAN
- {
- 28, ADDR_7115, 0x01, 0x08,0xc0,0x00,0x90,0x90,0xEB,0xE0,
- 0xD0,0x40,0x80,0x3E,0x40,0x00,0x49,0x2A,
- 0x0e,0x00,0xd9,0x00,0x00,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code AV_50_0[] = // 50Hz/625line PAL BGHI
- {
- 28, ADDR_7115, 0x01, 0x08,0xc0,0x00,0x90,0x90,0xEB,0xE0,
- 0x90,0x40,0x80,0x3E,0x40,0x00,0x01,0x2A,
- 0x06,0x00,0xd9,0x00,0x00,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code AV_50_1[] = // 50Hz/625line NTSC 4.43
- {
- 28, ADDR_7115, 0x01, 0x08,0xc0,0x00,0x90,0x90,0xEB,0xE0,
- 0x90,0x40,0x80,0x3E,0x40,0x00,0x19,0x2A,
- 0x0e,0x00,0xd9,0x00,0x00,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code AV_50_2[] = // 50Hz/625line PAL N
- {
- 28, ADDR_7115, 0x01, 0x08,0xc0,0x00,0x90,0x90,0xEB,0xE0,
- 0x90,0x40,0x80,0x3E,0x40,0x00,0x21,0x2A,
- 0x06,0x00,0xd9,0x00,0x00,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code AV_50_3[] = // 50Hz/625line NTSC N
- {
- 28, ADDR_7115, 0x01, 0x08,0xc0,0x00,0x90,0x90,0xEB,0xE0,
- 0x90,0x40,0x80,0x3E,0x40,0x00,0x39,0x2A,
- 0x0e,0x00,0xd9,0x00,0x00,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code AV_50_4[] = // reserved
- {
- 28, ADDR_7115, 0x01, 0x08,0xc0,0x00,0x90,0x90,0xEB,0xE0,
- 0x90,0x40,0x80,0x3E,0x40,0x00,0x41,0x2A,
- 0x06,0x00,0xd9,0x00,0x00,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code AV_SECAM[] = // 50Hz/625line SECAM
- {
- 28, ADDR_7115, 0x01, 0x08,0xc0,0x00,0x90,0x90,0xEB,0xE0,
- 0x90,0x1B,0x80,0x3E,0x40,0x00,0x58,0x2A,
- 0x00,0x00,0xd9,0x00,0x00,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code SV_60_0[] = // 60Hz/525line NTSC M
- {
- 28, ADDR_7115, 0x01, 0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
- 0xD0,0x80,0x80,0x3E,0x40,0x00,0x08,0x2A,
- 0x0e,0x00,0xd9,0x00,0x00,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code SV_60_1[] = // 60Hz/525line PAL 4.43
- {
- 28, ADDR_7115, 0x01, 0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
- 0xD0,0x80,0x80,0x3E,0x40,0x00,0x10,0x2A,
- 0x06,0x00,0xd9,0x00,0x00,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code SV_60_2[] = // 60Hz/525line NTSC 4.43
- {
- 28, ADDR_7115, 0x01, 0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
- 0xD0,0x80,0x80,0x3E,0x40,0x00,0x28,0x2A,
- 0x0e,0x00,0xd9,0x00,0x00,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code SV_60_3[] = // 60Hz/525line PAL M
- {
- 28, ADDR_7115, 0x01, 0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
- 0xD0,0x80,0x80,0x3E,0x40,0x00,0x30,0x2A,
- 0x06,0x00,0xd9,0x00,0x00,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code SV_60_4[] = // 60Hz/525line NTSC JAPAN
- {
- 28, ADDR_7115, 0x01, 0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
- 0xD0,0x80,0x80,0x3E,0x40,0x00,0x48,0x2A,
- 0x0e,0x00,0xd9,0x00,0x00,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code SV_50_0[] = // 50Hz/625line PAL BGHI
- {
- 28, ADDR_7115, 0x01, 0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
- 0x90,0x80,0x80,0x3E,0x40,0x00,0x00,0x2A,
- 0x06,0x00,0xd9,0x00,0x00,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code SV_50_1[] = // 50Hz/625line NTSC 4.43
- {
- 28, ADDR_7115, 0x01, 0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
- 0x90,0x80,0x80,0x3E,0x40,0x00,0x18,0x2A,
- 0x0e,0x00,0xd9,0x00,0x00,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code SV_50_2[] = // 50Hz/625line PAL N
- {
- 28, ADDR_7115, 0x01, 0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
- 0x90,0x80,0x80,0x3E,0x40,0x00,0x20,0x2A,
- 0x06,0x00,0xd9,0x00,0x00,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code SV_50_3[] = // 50Hz/625line NTSC N
- {
- 28, ADDR_7115, 0x01, 0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
- 0x90,0x80,0x80,0x3E,0x40,0x00,0x38,0x2A,
- 0x0e,0x00,0xd9,0x00,0x00,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code SV_50_4[] = // Reserved
- {
- 28, ADDR_7115, 0x01, 0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
- 0x90,0x80,0x80,0x3E,0x40,0x00,0x40,0x2A,
- 0x06,0x00,0xd9,0x00,0x00,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code SV_SECAM[] = // 50Hz/625line SECAM
- {
- 28, ADDR_7115, 0x01, 0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
- 0x90,0x9B,0x80,0x3E,0x40,0x00,0x58,0x2A,
- 0x00,0x00,0xd9,0x00,0x00,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code VIDEO_ALL[] =
- {
- 211, ADDR_7115, 0x20,
- //0x20~0x2f
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- //0x30~0x3f
- 0xbc,0xdf,0x02,0x00,0xcd,0xcc,0x3a,0x00,
- 0x03,0x20,0x03,0x00,0x00,0x00,0x00,0x00,
- //0x40~0x4f
- 0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- //0x50~0x5f
- 0x00,0x00,0x00,0x00,0x5f,0xff,0xff,0xff,
- 0x00,0x47,0x06,0x03,0x00,0x00,0x00,0x00,
- //0x60~0x6f
- 0x00,0x05,0xa0,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- //0x70~0x7f
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- //0x80~0x8f
- 0x18,0x00,0x00,0x00,0x01,0x04,0x45,0x01,
- 0xe0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- //0x90~0x9f
- 0x00,0x08,0x09,0x40,0x08,0x00,0xbc,0x02,
- 0x10,0x00,0xf0,0x00,0xbc,0x02,0xf0,0x00,
- //0xa0~0xaf
- 0x01,0x00,0x00,0x00,0x80,0x40,0x40,0x00,
- 0x00,0x04,0x00,0x00,0xff,0x01,0x00,0x00,
- //0xb0~0xbf
- 0x00,0x04,0x00,0x04,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- //0xc0~0xcf
- 0x00,0x08,0x10,0x81,0x10,0x00,0xd0,0x02,
- 0x0a,0x00,0x20,0x01,0xd0,0x02,0x20,0x01,
- //0xd0~0xdf
- 0x01,0x00,0x00,0x00,0x80,0x40,0x40,0x00,
- 0x00,0x04,0x00,0x00,0x00,0x02,0x00,0x00,
- //0xe0~0xef
- 0x00,0x04,0x00,0x04,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0
- };
- unsigned char code VIDEO_YUV[] = // No data
- {
- 0
- };
- unsigned char code VIDEO_60[] = // 60Hz
- {
- 19, ADDR_7115, 0x90, 0x00,0x08,0x09,0x40,0x08,0x00,0xbc,0x02,
- 0x00,0x00,0x04,0x01,0xbc,0x02,0x04,0x01, //can move (with noise)
- 0
- };
- unsigned char code VIDEO_50[] = // 50Hz
- {
- 19, ADDR_7115, 0x90, 0x00,0x08,0x09,0x40,0x08,0x00,0xbc,0x02,
- 0x00,0x00,0x38,0x01,0xbc,0x02,0x38,0x01, //can move (with noise)
- 0
- };
- #else
- #if (VIDEO_CHIP == VDC_SAA7118)
- unsigned char code V_NOWORK[] = // Video No Work
- {
- 28, ADDR_7118, 0x01, 0x07,0x00,0x18,0x90,0x90,0xEB,0xE0,
- 0xD8,0x80,0x80,0x3E,0x40,0x00,0x08,0x2A,
- 0x0e,0x00,0x00,0x00,0x24,0x00,0x10,0xC0,
- 0x40,0x80,
- 0
- };
- unsigned char code AV_DETECT[] = // REG[0E] for different source
- {
- 28, ADDR_7118, 0x01, 0x07,0xde,0x00,0x90,0x90,0xEB,0xE0,
- 0xD8,0x80,0x80,0x3E,0x40,0x00,0x0a,0x2A, //[09] then = 0x40
- 0x0e,0x00,0xd9,0x00,0x20,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code SV_DETECT[] = // REG[0E] for different source
- {
- 28, ADDR_7118, 0x01, 0x07,0xC6,0x00,0x90,0x90,0xEB,0xE0,
- 0xD8,0x80,0x80,0x3E,0x40,0x00,0x0A,0x2A,
- 0x0e,0x00,0xd9,0x00,0x20,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code YUV_DETECT[] = // REG[0E] for different source
- {
- 28, ADDR_7118, 0x01, 0x07,0xef,0x00,0x90,0x90,0xEB,0xE0,
- 0xD8,0x80,0x80,0x3E,0x40,0x00,0x0A,0x2A,
- 0x0e,0x00,0xd9,0x00,0x20,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code TV_SOURCE_SEL[] = // No data
- {
- 0
- };
- unsigned char code TV_SCAN_GAIN[] = // No data
- {
- 0
- };
- unsigned char code TV_DISP_GAIN[] = // No data
- {
- 0
- };
- unsigned char code V_DISABLE[] =
- {
- 4, ADDR_7118, 0x88, 0x00,
- 0
- };
- unsigned char code V_ENABLE[] =
- {
- 4, ADDR_7118, 0x88, 0xe0,
- 0
- };
- unsigned char code AV_60_0[] = // 60Hz/525line NTSC M
- {
- 28, ADDR_7118, 0x01, 0x07,0xde,0x00,0x90,0x90,0xEB,0xE0,
- 0xD8,0x40,0x80,0x3E,0x40,0x00,0x09,0x2A,
- 0x0e,0x00,0xd9,0x00,0x20,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code AV_60_1[] = // 60Hz/525line PAL 4.43
- {
- 28, ADDR_7118, 0x01, 0x07,0xde,0x00,0x90,0x90,0xEB,0xE0,
- 0xD8,0x40,0x80,0x3E,0x40,0x00,0x11,0x2A,
- 0x06,0x00,0xd9,0x00,0x20,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code AV_60_2[] = // 60Hz/525line NTSC 4.43
- {
- 28, ADDR_7118, 0x01, 0x07,0xde,0x00,0x90,0x90,0xEB,0xE0,
- 0xD8,0x40,0x80,0x3E,0x40,0x00,0x29,0x2A,
- 0x0e,0x00,0xd9,0x00,0x20,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code AV_60_3[] = // 60Hz/525line PAL M
- {
- 28, ADDR_7118, 0x01, 0x07,0xde,0x00,0x90,0x90,0xEB,0xE0,
- 0xD8,0x40,0x80,0x3E,0x40,0x00,0x31,0x2A,
- 0x06,0x00,0xd9,0x00,0x20,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code AV_60_4[] = // 60Hz/525line NTSC JAPAN
- {
- 28, ADDR_7118, 0x01, 0x07,0xde,0x00,0x90,0x90,0xEB,0xE0,
- 0xD8,0x40,0x80,0x3E,0x40,0x00,0x49,0x2A,
- 0x0e,0x00,0xd9,0x00,0x20,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code AV_50_0[] = // 50Hz/625line PAL BGHI
- {
- 28, ADDR_7118, 0x01, 0x07,0xde,0x00,0x90,0x90,0xEB,0xE0,
- 0x98,0x40,0x80,0x3E,0x40,0x00,0x01,0x2A,
- 0x06,0x00,0xd9,0x00,0x20,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code AV_50_1[] = // 50Hz/625line NTSC 4.43
- {
- 28, ADDR_7118, 0x01, 0x07,0xde,0x00,0x90,0x90,0xEB,0xE0,
- 0x98,0x40,0x80,0x3E,0x40,0x00,0x19,0x2A,
- 0x0e,0x00,0xd9,0x00,0x20,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code AV_50_2[] = // 50Hz/625line PAL N
- {
- 28, ADDR_7118, 0x01, 0x07,0xde,0x00,0x90,0x90,0xEB,0xE0,
- 0x98,0x40,0x80,0x3E,0x40,0x00,0x21,0x2A,
- 0x06,0x00,0xd9,0x00,0x20,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code AV_50_3[] = // 50Hz/625line NTSC N
- {
- 28, ADDR_7118, 0x01, 0x07,0xde,0x00,0x90,0x90,0xEB,0xE0,
- 0x98,0x40,0x80,0x3E,0x40,0x00,0x39,0x2A,
- 0x0e,0x00,0xd9,0x00,0x20,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code AV_50_4[] = // reserved
- {
- 28, ADDR_7118, 0x01, 0x07,0xde,0x00,0x90,0x90,0xEB,0xE0,
- 0x98,0x40,0x80,0x3E,0x40,0x00,0x41,0x2A,
- 0x06,0x00,0xd9,0x00,0x20,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code AV_SECAM[] = // 50Hz/625line SECAM
- {
- 28, ADDR_7118, 0x01, 0x07,0xde,0x00,0x90,0x90,0xEB,0xE0,
- 0x98,0x1B,0x80,0x3E,0x40,0x00,0x58,0x80, //0xA4,
- 0x00,0x00,0xd9,0x00,0x20,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code SV_60_0[] = // 60Hz/525line NTSC M
- {
- 28, ADDR_7118, 0x01, 0x07,0xc6,0x00,0x90,0x90,0xEB,0xE0,
- 0xD8,0x80,0x80,0x3E,0x40,0x00,0x08,0x2A,
- 0x0e,0x00,0xd9,0x00,0x20,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code SV_60_1[] = // 60Hz/525line PAL 4.43
- {
- 28, ADDR_7118, 0x01, 0x07,0xc6,0x00,0x90,0x90,0xEB,0xE0,
- 0xD8,0x80,0x80,0x3E,0x40,0x00,0x10,0x2A,
- 0x06,0x00,0xd9,0x00,0x20,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code SV_60_2[] = // 60Hz/525line NTSC 4.43
- {
- 28, ADDR_7118, 0x01, 0x07,0xc6,0x00,0x90,0x90,0xEB,0xE0,
- 0xD8,0x80,0x80,0x3E,0x40,0x00,0x28,0x2A,
- 0x0e,0x00,0xd9,0x00,0x20,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code SV_60_3[] = // 60Hz/525line PAL M
- {
- 28, ADDR_7118, 0x01, 0x07,0xc6,0x00,0x90,0x90,0xEB,0xE0,
- 0xD8,0x80,0x80,0x3E,0x40,0x00,0x30,0x2A,
- 0x06,0x00,0xd9,0x00,0x20,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code SV_60_4[] = // 60Hz/525line NTSC JAPAN
- {
- 28, ADDR_7118, 0x01, 0x07,0xc6,0x00,0x90,0x90,0xEB,0xE0,
- 0xD8,0x80,0x80,0x3E,0x40,0x00,0x48,0x2A,
- 0x0e,0x00,0xd9,0x00,0x20,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code SV_50_0[] = // 50Hz/625line PAL BGHI
- {
- 28, ADDR_7118, 0x01, 0x07,0xc6,0x00,0x90,0x90,0xEB,0xE0,
- 0x98,0x80,0x80,0x3E,0x40,0x00,0x00,0x2A,
- 0x06,0x00,0xd9,0x00,0x20,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code SV_50_1[] = // 50Hz/625line NTSC 4.43
- {
- 28, ADDR_7118, 0x01, 0x07,0xc6,0x00,0x90,0x90,0xEB,0xE0,
- 0x98,0x80,0x80,0x3E,0x40,0x00,0x18,0x2A,
- 0x0e,0x00,0xd9,0x00,0x20,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code SV_50_2[] = // 50Hz/625line PAL N
- {
- 28, ADDR_7118, 0x01, 0x07,0xc6,0x00,0x90,0x90,0xEB,0xE0,
- 0x98,0x80,0x80,0x3E,0x40,0x00,0x20,0x2A,
- 0x06,0x00,0xd9,0x00,0x20,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code SV_50_3[] = // 50Hz/625line NTSC N
- {
- 28, ADDR_7118, 0x01, 0x07,0xc6,0x00,0x90,0x90,0xEB,0xE0,
- 0x98,0x80,0x80,0x3E,0x40,0x00,0x38,0x2A,
- 0x0e,0x00,0xd9,0x00,0x20,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code SV_50_4[] = // Reserved
- {
- 28, ADDR_7118, 0x01, 0x07,0xc6,0x00,0x90,0x90,0xEB,0xE0,
- 0x98,0x80,0x80,0x3E,0x40,0x00,0x40,0x2A,
- 0x06,0x00,0xd9,0x00,0x20,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code SV_SECAM[] = // 50Hz/625line SECAM
- {
- 28, ADDR_7118, 0x01, 0x07,0xc6,0x00,0x90,0x90,0xEB,0xE0,
- 0x98,0x9B,0x80,0x3E,0x40,0x00,0x58,0x80, //0xA4,
- 0x00,0x00,0xd9,0x00,0x20,0x00,0x10,0x98,
- 0x40,0x80,
- 0
- };
- unsigned char code VIDEO_ALL[] =
- {
- 211, ADDR_7118, 0x20,
- //0x20~0x2f
- 0x00,0x00,0x00,0x00,0x90,0x90,0x00,0x00,
- 0x00,0x00,0x80,0x40,0x40,0x00,0x00,0x00,
- //0x30~0x3f
- 0xbc,0xdf,0x02,0x00,0xcd,0xcc,0x3a,0x00,
- 0x03,0x20,0x03,0x00,0x00,0x00,0x00,0x00,
- //0x40~0x4f
- 0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- //0x50~0x5f
- 0x00,0x00,0x00,0x00,0x5f,0xff,0xff,0xff,
- 0x00,0x47,0x06,0x03,0x00,0x00,0x00,0x00,
- //0x60~0x6f
- 0x00,0x05,0xa0,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- //0x70~0x7f
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- //0x80~0x8f
- 0x12,0x00,0x00,0x00,0x01,0x04,0x45,0x01,
- 0xe0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- //0x90~0x9f
- 0x00,0x08,0x09,0x40,0x08,0x00,0xbc,0x02,
- 0x10,0x00,0xf0,0x00,0xbc,0x02,0xf0,0x00,
- //0xa0~0xaf
- 0x01,0x00,0x00,0x00,0x80,0x40,0x40,0x00,
- 0x00,0x04,0x00,0x00,0x00,0x02,0x00,0x00,
- //0xb0~0xbf
- 0x00,0x04,0x00,0x04,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- //0xc0~0xcf
- 0x00,0x08,0x10,0x81,0x10,0x00,0xd0,0x02,
- 0x0a,0x00,0x20,0x01,0xd0,0x02,0x20,0x01,
- //0xd0~0xdf
- 0x01,0x00,0x00,0x00,0x80,0x40,0x40,0x00,
- 0x00,0x04,0x00,0x00,0x00,0x02,0x00,0x00,
- //0xe0~0xef
- 0x00,0x04,0x00,0x04,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0
- };
- unsigned char code VIDEO_YUV[] =
- {
- 4, ADDR_7118, 0x29, 0x40,
- 0
- };
- unsigned char code VIDEO_60[] = // 60Hz
- {
- 19, ADDR_7118, 0x90, 0x00,0x08,0x09,0x40,0x08,0x00,0xbc,0x02,
- 0x00,0x00,0x04,0x01,0xbc,0x02,0x04,0x01, //can move (with noise)
- 0
- };
- unsigned char code VIDEO_50[] = // 50Hz
- {
- 19, ADDR_7118, 0x90, 0x00,0x08,0x09,0x40,0x08,0x00,0xbc,0x02,
- 0x00,0x00,0x38,0x01,0xbc,0x02,0x38,0x01, //can move (with noise)
- 0
- };
- #else // No video decoder
- unsigned char code V_NOWORK[] = {0};
- //---------------------------DETECT------------------------------
- unsigned char code AV_DETECT[] = {0};
- unsigned char code SV_DETECT[] = {0};
- unsigned char code YUV_DETECT[] = {0};
- //-----------------------------------------------------------------
- unsigned char code V_DISABLE[] = {0};
- unsigned char code V_ENABLE[] = {0};
- //---------------------------AV SET------------------------------
- //------60--------
- unsigned char code AV_60_0[] = {0};
- unsigned char code AV_60_1[] = {0};
- unsigned char code AV_60_2[] = {0};
- unsigned char code AV_60_3[] = {0};
- unsigned char code AV_60_4[] = {0};
- //------50--------
- unsigned char code AV_50_0[] = {0};
- unsigned char code AV_50_1[] = {0};
- unsigned char code AV_50_2[] = {0};
- unsigned char code AV_50_3[] = {0};
- unsigned char code AV_50_4[] = {0};
- //-----SECAM------
- unsigned char code AV_SECAM[] = {0};
- //---------------------------SV SET------------------------------
- //------60--------
- unsigned char code SV_60_0[] = {0};
- unsigned char code SV_60_1[] = {0};
- unsigned char code SV_60_2[] = {0};
- unsigned char code SV_60_3[] = {0};
- unsigned char code SV_60_4[] = {0};
- //------50--------
- unsigned char code SV_50_0[] = {0};
- unsigned char code SV_50_1[] = {0};
- unsigned char code SV_50_2[] = {0};
- unsigned char code SV_50_3[] = {0};
- unsigned char code SV_50_4[] = {0};
- //-----SECAM------
- unsigned char code SV_SECAM[] = {0};
- //---------------------------VIDEO SET---------------------------
- unsigned char code VIDEO_ALL[] = {0};
- unsigned char code VIDEO_YUV[] = {0};
- unsigned char code VIDEO_60[] = {0};
- unsigned char code VIDEO_50[] = {0};
- unsigned char code TV_SOURCE_SEL[] = {0};
- unsigned char code TV_SCAN_GAIN[] = {0};
- unsigned char code TV_DISP_GAIN[] = {0};
- #endif
- #endif
- #endif
- #endif
- #else // #else of #ifdef __MAIN__
- extern unsigned char code V_NOWORK[];
- extern unsigned char code V_DISABLE[];
- extern unsigned char code V_ENABLE[];
- extern unsigned char code AV_DETECT[];
- extern unsigned char code SV_DETECT[];
- extern unsigned char code YUV_DETECT[];
- extern unsigned char code AV_60_0[];
- extern unsigned char code AV_60_1[];
- extern unsigned char code AV_60_2[];
- extern unsigned char code AV_60_3[];
- extern unsigned char code AV_60_4[];
- extern unsigned char code AV_50_0[];
- extern unsigned char code AV_50_1[];
- extern unsigned char code AV_50_2[];
- extern unsigned char code AV_50_3[];
- extern unsigned char code AV_50_4[];
- extern unsigned char code AV_SECAM[];
- extern unsigned char code SV_60_0[];
- extern unsigned char code SV_60_1[];
- extern unsigned char code SV_60_2[];
- extern unsigned char code SV_60_3[];
- extern unsigned char code SV_60_4[];
- extern unsigned char code SV_50_0[];
- extern unsigned char code SV_50_1[];
- extern unsigned char code SV_50_2[];
- extern unsigned char code SV_50_3[];
- extern unsigned char code SV_50_4[];
- extern unsigned char code SV_SECAM[];
- extern unsigned char code VIDEO_ALL[];
- extern unsigned char code VIDEO_YUV[];
- extern unsigned char code VIDEO_60[];
- extern unsigned char code VIDEO_50[];
- extern unsigned char code TV_SOURCE_SEL[];
- extern unsigned char code TV_SCAN_GAIN[];
- extern unsigned char code TV_DISP_GAIN[];
- #endif