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

📄 tw2834_config.h

📁 TW2834 的Linux驱动程序
💻 H
📖 第 1 页 / 共 2 页
字号:
/* * tw2834_config.h      The config parameters for TW2834 version 0.0.1 * * Copyright (c)  2006 Guangzhou Jinpeng Group Co., Ltd.  * All rights reserved. * David Huang<huangym@gzjp.cn> * This source code and any compilation or derivative thereof is the proprietary * information of Guangzhou Jinpeng Group and is confidential in nature. Under no * circumstances is this software to be exposed to or placed under an Open Source * License of any type without the express written permission of Guangzhou  * Jinpeng Group. * *//*Rev Date        Author      Comments-------------------------------------------------------------------------------- 1  200601023 huangym   Original--------------------------------------------------------------------------------*/#ifndef TW2834_CONFIG_H#define TW2834_CONFIG_H#define VI_FRAME_MODE //#define VI_MONITOR_MODE     //#define VI_DVR_MODE         //#define VI_DVR_FRAME_MODE  //===================================================================//===================================================================//                                               Page0 initialize table description//===================================================================//===================================================================//--------------------------        NTSC       ------------------------------//static const unsigned char tbl_ntsc_page0_common[] = { //	CH1			CH2			CH3			CH4	0x00,0x05,0xa5,0x1a,	//...		0x00~0x03	0x40~0x43	0x80~0x83	0xc0~0xc3	0xd0,0x1a,0xd0,0x88,	//...		0x04~0x07	0x44~0x47	0x84~0x87	0xc4~0xc7	//0x20,0x06,0xf0,0x06,	//...		0x08~0x0b	0x48~0x4b	0x88~0x8b	0xc8~0xcb	0x20,0x07,0xf0,0x07,	//...		0x08~0x0b	0x48~0x4b	0x88~0x8b	0xc8~0xcb 	0xf0,0x00,0xd2,0x80,	//...		0x0c~0x0f	0x4c~0x4f	0x8c~0x8f	0xcc~0xcf	0x88,0x88,0x78,0x2f,	//...		0x10~0x13	0x50~0x53	0x90~0x93	0xd0~0xd3	//0x50,0xa5,0x00,0x00,	//...		0x14~0x17	0x54~0x57	0x94~0x97	0xd4~0xd7       //0x10,0x00,0x40,0x00,	//...		0x14~0x17	0x54~0x57	0x94~0x97	0xd4~0xd7 	0x50,0xa0,0xc0,0xc0, 	//0x7f,0xff,0x7f,0xff,	//...		0x18~0x1b	0x58~0x5b	0x98~0x9b	0xd8~0xdb	//0x7f,0xff,0x7f,0xff,	//...		0x1c~0x1f	0x5c~0x5f	0x9c~0x9f	0xdc~0xdf	0xff,0xff,0xff,0xff,	//...		0x18~0x1b	0x58~0x5b	0x98~0x9b	0xd8~0xdb 	0xff,0xff,0x7f,0xff,	//...		0x1c~0x1f	0x5c~0x5f	0x9c~0x9f	0xdc~0xdf 	0x07,0x07,0xc0,0x11	//...		0x20~0x23	0x60~0x63	0xa0~0xa3	0xe0~0xe3                                               // CH1          CH2           CH3        CH4//    0x00,0xc4,0xa5,0x1a,    // 0x00~0x03   0x40~0x43   0x80~0x83   0xc0~0xc3  //0xc4->0x44  //    0xd0,0x1a,0xd0,0x88,    // 0x04~0x07   0x44~0x47   0x84~0x87   0xc4~0xc7//    0x20,0x06,0xf0,0x07,    // 0x08~0x0b   0x48~0x4b   0x88~0x8b   0xc8~0xcb//    0xf0,0x00,0xd2,0x80,    // 0x0c~0x0f   0x4c~0x4f   0x8c~0x8f   0xcc~0xcf//    0x80,0xa2,0x92,0x1f,    // 0x10~0x13   0x50~0x53   0x90~0x93   0xd0~0xd3//    0x50,0xa0,0xc0,0xc0,    // 0x14~0x17   0x54~0x57   0x94~0x97   0xd4~0xd7//    0x7f,0xff,0x7f,0xff,    // 0x18~0x1b   0x58~0x5b   0x98~0x9b   0xd8~0xdb//    0x7f,0xff,0x7f,0xff,    // 0x1c~0x1f   0x5c~0x5f   0x9c~0x9f   0xdc~0xdf//    0x07,0x07,0x00,0x11     // 0x20~0x23   0x60~0x63   0xa0~0xa3   0xe0~0xe3};static const unsigned char tbl_ntsc_page0_sfr1[] =  {    0x00,0x00,0x00,0x00,    // 0x38~0x3b    0x80,0x80,0x82,0x82     // 0x3c~0x3f};static const unsigned char tbl_ntsc_page0_sfr2[] = {    0xa0,0x00,0x00,0x00,    // 0x78~0x7b    //... 0x78:0x80->0xa0 on 050222    0x0f,0x00,0x00,0x00     // 0x7c~0x7f    //... 0x7c:0x08->0x0f on 050218};static const unsigned char tbl_ntsc_page0_sfr3[] = {     0x05,0x00,0x00,0x00,    //0xb8~0xbb    0x00,0x00,0x00,0x00     //0xbc~0xbf};static const unsigned char tbl_ntsc_page0_sfr4[] ={    0x0a,0x40,0x3c,0x10,    // 0xf8~0xfb    0x00,0x00,0x08,0x00     // 0xfc~0xff};//==================================================================//--------------------------      PAL      -----------------------------//static const unsigned char tbl_pal_page0_common[] ={    //	CH1          CH2			CH3			CH40x00,0x84,0xa5,0x30,	//...		0x00~0x03	0x40~0x43	0x80~0x83	0xc0~0xc3//0xd0,0x22,0xd0,0x88,	//...		0x04~0x07	0x44~0x47	0x84~0x87	0xc4~0xc70xd6,0x2F,0xd4,0x88,	//...		0x04~0x07	0x44~0x47	0x84~0x87	0xc4~0xc7 yuanxh//0x20,0x05,0x20,0x05,	//...		0x08~0x0b	0x48~0x4b	0x88~0x8b	0xc8~0xcb0x20,0x11,0x22,0x04,	//...		0x08~0x0b	0x48~0x4b	0x88~0x8b	0xc8~0xcb yuanxh	//0x20,0x0a,0xd2,0x80,	//...		0x0c~0x0f	0x4c~0x4f	0x8c~0x8f	0xcc~0xcf0x22,0x0a,0xd2,0x80,	//...		0x0c~0x0f	0x4c~0x4f	0x8c~0x8f	0xcc~0xcf yuanx0x88,0x88,0x78,0x2f,	//...		0x10~0x13	0x50~0x53	0x90~0x93	0xd0~0xd3//0x50,0xa0,0xc0,0xc0,	//...		0x14~0x17	0x54~0x57	0x94~0x97	0xd4~0xd70x00,0x00,0x00,0x00,	//...		0x14~0x17	0x54~0x57	0x94~0x97	0xd4~0xd7 yuanxh	//0x7f,0xff,0x7f,0xff,	//...		0x18~0x1b	0x58~0x5b	0x98~0x9b	0xd8~0xdb//0x7f,0xff,0x7f,0xff,	//...		0x1c~0x1f	0x5c~0x5f	0x9c~0x9f	0xdc~0xdf0xFF,0xff,0xff,0xff,	//...		0x18~0x1b	0x58~0x5b	0x98~0x9b	0xd8~0xdb  yuanx fgpi d10xFF,0xff,0x7f,0xff,	//...		0x1c~0x1f	0x5c~0x5f	0x9c~0x9f	0xdc~0xdf  yuanxh for vip cif0x07,0x0f,0xc0,0x11	//...		0x20~0x23	0x60~0x63	0xa0~0xa3	0xe0~0xe3			 //   0x00,0x84,0xa5,0x20,    // 0x00~0x03   0x40~0x43   0x80~0x83   0xc0~0xc3     //0x84->0x04 06/11/13 //   0xd0,0x20,0xd0,0x88,    // 0x04~0x07   0x44~0x47   0x84~0x87   0xc4~0xc7 //   0x20,0x05,0x20,0x05,    // 0x08~0x0b   0x48~0x4b   0x88~0x8b   0xc8~0xcb //   0x20,0x0a,0xd2,0x80,    // 0x0c~0x0f   0x4c~0x4f   0x8c~0x8f   0xcc~0xcf //   0x80,0xa2,0x92,0x2f,    // 0x10~0x13   0x50~0x53   0x90~0x93   0xd0~0xd3 //   0x50,0xa0,0xc0,0xc0,    // 0x14~0x17   0x54~0x57   0x94~0x97   0xd4~0xd7 //   0x7f,0xff,0x7f,0xff,    // 0x18~0x1b   0x58~0x5b   0x98~0x9b   0xd8~0xdb     //   0x7f,0xff,0x7f,0xff,    // 0x1c~0x1f   0x5c~0x5f   0x9c~0x9f   0xdc~0xdf //   0x07,0x07,0x00,0x11     // 0x20~0x23   0x60~0x63   0xa0~0xa3   0xe0~0xe3};static const unsigned char tbl_pal_page0_sfr1[] = {    0x00,0x00,0x00,0x00,    // 0x38~0x3b    0x80,0x80,0x82,0x82     // 0x3c~0x3f};static const unsigned char tbl_pal_page0_sfr2[] = {    0xa0,0x00,0x00,0x00,    // 0x78~0x7b    0x0f,0x00,0x00,0x00     // 0x7c~0x7f    // 0x7c:0x08->0x0f on 050218};static const unsigned char tbl_pal_page0_sfr3[] = {     0x05,0x00,0x00,0x00,    // 0xb8~0xbb    0x00,0x00,0x00,0x00     // 0xbc~0xbf};static const unsigned char tbl_pal_page0_sfr4[] = {    0x0a,0x40,0x3c,0x10,    // 0xf8~0xfb    0x00,0x00,0x08,0x00     // 0xfc~0xff};//=====================================================================//=====================================================================//--------------------------        4 Pb / 4 Rec        ------------------------------//static const unsigned char tbl_page0_4pb_en[] = {    0x39,0xe4,    0x3b,0x01    //0x09};static const unsigned char tbl_page0_4pb_dis[] = {    0x39,0x00,    0x3b,0x00};//====================================================================//====================================================================//                                                        Page1 initialize table description//====================================================================//====================================================================static const unsigned char tbl_page1_4pb_en[] = {    0x55,0x80,    0xbb,0x0b,    0x8c,0x00,    0x8d,0x8a,    0x8e,0x00        // test needed};static const unsigned char tbl_page1_4pb_dis[] ={    0x55,0x84,    0xbb,0x00,    0x8c,0x08,    0x8d,0x44,    0x8e,0x00};static const unsigned char tbl_page1_x_com[] = {//  00    01    02   03   04   05   06   07     08   09   0A   0B   0C   0D  0E   0F// 0x00,0x00,0xa0,0x00,0x84,0x00,0x00,  0x00,0x00,0x00,0xd7,0x23,0x2d,0x1e,0xa7//... modified : 0x00 -> 0x40 for 0x04(050225)//... modified : 0x84 -> 0x80 for 0x05(050222) because of 16M SDRAM mode for x path(auto detecting 4pb/1pb)//0x00,0x00,0xa0,0x40,0x00,0x00,0x00,   0x00,0x00,0x00,0xd7,0x23,0x2d,0x1e, 0x10	//...  0x01 back//0x00,0x00,0xa0,0x00,0x80,0x00,0x00, 	0x00,0x00,0x00,0x00,0x23,0x2d,0x24,0xb0,//0xaf	//xiaoqiang  0x00,0x00,0xa0,0x40,0x80,0x00,0x00,   0x00,0x00,0x00,0xd7,0x23,0x2d,0x1e, 0x10	//...  0x01  for background};   //1x0f colour xiegai  static const unsigned char tbl_page1_x_ch_nrml[] = {// function mode, dec path, many property & recall for each channel//  00   01   02   03   04   05   06   07       08   09   0A   0B   0C   0D   0E   0F0x80,0x00,0x00,0x00,0x00,0x00,0x90,0x00,   0x81,0x00,0x00,0x00,0x00,0x00,0x11,0x00,	//...  0x10	// enable channel0x82,0x00,0x00,0x00,0x00,0x00,0x12,0x00,   0x83,0x00,0x00,0x00,0x00,0x00,0x13,0x00	//...  0x20	// enable channel		//test band//0x80,0x02,0x00,0x02,0x00,0x00,0x90,0x00,   0x81,0x02,0x00,0x02,0x00,0x00,0x11,0x00,	//...  0x10	// //0x82,0x02,0x00,0x02,0x00,0x00,0x12,0x00,   0x83,0x02,0x00,0x02,0x00,0x00,0x13,0x00	//...  0x20	// };                                                          //2006.12.21 wangdongyang//--------------------------        NTSC        ------------------------------////===========================================================static const unsigned char tbl_ntsc_page1_x_pic_quad[] = {//  PICHL, PICHR, PICVT, PICVB for each channel//  00   01   02   03   04   05   06   07            08   09   0A   0B   0C   0D  0E   0F0x00,0x5a,0x00,0x3c,0x5a,0xb4,0x00,0x3c,   0x00,0x5a,0x3c,0x78,0x5a,0xb4,0x3c,0x78	//...  0x30};static const unsigned char tbl_ntsc_page1_dumy[] = {// Dummy Channel Boundary for each channel// 00   01   02   03   04   05   06   07            08   09   0A   0B   0C   0D  0E   0F  0x78,0xb4,0x28,0x50,0x00,0x3c,0x50,0x78,   0x3c,0x78,0x50,0x78,0x78,0xb4,0x50,0x78	//...  0x40 };//--------------------------        PAL        ------------------------------////===========================================================static const unsigned char tbl_pal_page1_x_pic_quad[] = {//  PICHL, PICHR, PICVT, PICVB for each channel//  00   01   02   03   04   05   06   07            08   09   0A   0B   0C   0D  0E   0F  0x00,0x5a,0x00,0x48,0x5a,0xb4,0x00,0x48,  0x00,0x5a,0x48,0x90,0x5a,0xb4,0x48,0x90	//...  0x30};static const unsigned char tbl_pal_page1_dumy[] = {//  Dummy Channel Boundary for each channel//  00   01   02   03   04   05   06   07            08   09   0A   0B   0C   0D  0E   0F  0x78,0xb4,0x30,0x60,0x00,0x3c,0x60,0x90,  0x3c,0x78,0x60,0x90,0x78,0xb4,0x60,0x90	//...  0x40 };//============================================================static const unsigned char tbl_page1_y_com[] = {//  00   01   02   03   04   05   06   07            08   09   0A   0B   0C   0D   0E   0F//  00   01   02   03   04   05   06   07		 08   09   0A   0B   0C   0D   0E   0F#ifdef VI_NORMAL_MODE	0x00,0x00,0x00,0xa0,0x00,0x84,0x00,0x03,	0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xa0	//...  0x50#endif	#ifdef VI_FRAME_MODE		0x00,0x40,0x00,0xa0,0x00,0x84,0x00,0x03,	0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xa0	//...  0x50 yuanxh for vip frame record mode#endif#ifdef VI_DVR_FRAME_MODE			0x00,0x50,0x00,0xa0,0x00,0x84,0x00,0x03,	0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xa0	//...  0x50 yuanxh#endif#ifdef VI_DVR_MODE			0x00,0x10,0x00,0xa0,0x00,0x84,0x00,0x03,	0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xa0	//...  0x50 yuanxh

⌨️ 快捷键说明

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