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

📄 _saa7115.c

📁 TE3320和DSP的VP口无缝连接后的驱动程序源码
💻 C
📖 第 1 页 / 共 4 页
字号:
/* TaskA Structure*/
/********************************/
{
/* Task handling control (0x90) = 0x01 */
    1,  /* unsigned EventTrigger : 2;  */
    0,  /* unsigned RepeatTask : 1;    */
    0,  /* unsigned FieldSkipType : 3; */
    0,  /* unsigned OutputFieldID : 1; */
    0,  /* unsigned CONLH : 1;         */
/* X Port Format (0x91) = 0x08         */
    0,  /* unsigned YUVInputFormat : 1;*/
    0,  /* unsigned ChromaPerLine : 2; */
    1,  /* unsigned ScalerDataContinuous : 1;*/
    0,  /* unsigned ScalerInputSource : 2;   */
    0,  /* unsigned HLDFV : 1;               */
    0,  /* unsigned CONLV : 1;               */
/* X Port Input Ref (0x92) = 0x09            */
    1,  /* unsigned XDQNotUsed : 1;          */
    0,  /* unsigned XDQPolarity : 1;         */
    0,  /* unsigned XRHEdgeType : 1;         */
    0,  /* unsigned XPortSyncVia656 : 1;     */
    0,  /* unsigned XRVEdgeType : 1;         */
    0,  /* unsigned XRVSignalType : 1;       */
    0,  /* unsigned XFieldIDType : 1;        */
    0,  /* unsigned XFieldEdgeType : 1;      */
/* I Port Format (0x93) = 0x80               */
    0,  /* unsigned IPortDataFormat : 3;     */
    0,  /* unsigned LeadingYLines : 2;       */
    0,  /* unsigned SkipYLineFlag : 1;       */
    0,  /* unsigned INS80 : 1;               */
    0,  /* unsigned CCIR656Enable : 1;         */
/* Window Sizes (0x94 - 0x9F)                  */
    64,     /* Horizontal input window offset  */
    720,    /* Horizontal input window length  */
    16,     /* Vertical input window offset    */
    288,    /* Vertical input window length    */
    720,    /* Horizontal output window length */
    288,    /* Vertical output window length   */
/* Horizontal Prescaling (0xA0) = 0x00         */
    0, /* uchar XPreScale;                     */
/* Accumulation Length (0xA1) = 0x01           */
    1, /* uchar XAccLength;                    */
/* Prescaler DC Gain/FIR Prefilter Control (0xA2) = 0x00*/
    0,  /* unsigned ScalerDCGain : 3;          */
    0,  /* unsigned XACLWeighting : 1;         */
    0,  /* unsigned YPreFilterType : 2;        */
    0,  /* unsigned CxPreFilterType : 2;       */
/* Unused (0xA3) = 0x00                        */
    0,  /* uchar RegA3Unused;                  */
/* Luminance brightness (0xA4) = 0x80          */
    0x70,   /* uchar Brightness;               */
/* Luminance contrast (0xA5) = 0x40            */
    0x40,   /* uchar Contrast;                 */
/* Luminance saturation (0xA6) = 0x40          */
    0x30,   /* uchar Saturation;               */
/* Unused (0xA7) 0x00                          */
    0, /* uchar RegA7Unused;                   */
/* Horizontal scaling increment luma (0xA8 - 0xA9) */
    1024, /* ushort XLumaIncrement;                */
/* Horizontal phase offset luma (0xAA) = 0x00      */
    0,  /* uchar XLumaPhaseOffset;                 */
/* Unused (0xAB) = 0x00                            */
    0,  /* uchar RegABUnused;                      */
/* Horizontal scaling increment chroma (0xAC - 0xAD) */
    512,    /* ushort XChromaIncrement;            */
/* Horizontal phase offset chroma (0xAE) = 0x00    */
    0,  /* uchar XChromaPhaseOffset;               */
/* Unused (0xAF) = 0x00                            */
    0,  /* uchar RegAFUnused;                      */
/* Vertical scaling increment luma (0xB0 - 0xB1)   */
    1024,   /* ushort YLumaIncrement;              */
/* Vertical scaling increment chroma (0xB2 - 0xB3) */
    1024,   /* ushort YChromaIncrement;            */
/* Vertical scaling mode control (0xB4)            */
    0,  /* unsigned VerticalScalingType : 1;       */
    0,  /* unsigned RegB4AUnused : 3;              */
    0,  /* unsigned MirrorLineFlag : 1;            */
    0,  /* unsigned RegB4BUnused : 3;              */
/* Null Array (0xB5 - 0xB7)                        */
    {0,0,0},                                       
/* Vertical Phase Offset Chroma (0xB8 - 0xBB)      */
    {0,0,0,0},                                     
/* Vertical Phase Offset Luma (0xBC - 0xBF)        */
    {0,0,0,0}                                      
},
/********************************/
/* TaskB Structure */
/********************************/
{
/* Task handling control (0x90) = 0x01            */
    1,  /* unsigned EventTrigger : 2;             */
    0,  /* unsigned RepeatTask : 1;               */
    0,  /* unsigned FieldSkipType : 3;            */
    0,  /* unsigned OutputFieldID : 1;            */
    0,  /* unsigned CONLH : 1;                    */
/* X Port Format (0x91) = 0x08                    */
    0,  /* unsigned YUVInputFormat : 1;           */
    0,  /* unsigned ChromaPerLine : 2;            */
    1,  /* unsigned ScalerDataContinuous : 1;     */
    0,  /* unsigned ScalerInputSource : 2;        */
    0,  /* unsigned HLDFV : 1;                    */
    0,  /* unsigned CONLV : 1;                    */
/* X Port Input Ref (0x92) = 0x09                 */
    1,  /* unsigned XDQNotUsed : 1;               */
    0,  /* unsigned XDQPolarity : 1;              */
    0,  /* unsigned XRHEdgeType : 1;              */
    0,  /* unsigned XPortSyncVia656 : 1;          */
    0,  /* unsigned XRVEdgeType : 1;              */
    0,  /* unsigned XRVSignalType : 1;            */
    0,  /* unsigned XFieldIDType : 1;             */
    0,  /* unsigned XFieldEdgeType : 1;           */
/* I Port Format (0x93) = 0x80                    */
    0,  /* unsigned IPortDataFormat : 3;          */
    0,  /* unsigned LeadingYLines : 2;            */
    0,  /* unsigned SkipYLineFlag : 1;            */
    0,  /* unsigned INS80 : 1;                    */
    0,  /* unsigned CCIR656Enable : 1;            */
/* Window Sizes (0x94 - 0x9F)                     */
    64,     /* Horizontal input window offset     */
    720,    /* Horizontal input window length     */
    16,     /* Vertical input window offset       */
    288,    /* Vertical input window length       */
    720,    /* Horizontal output window length    */
    288,    /* Vertical output window length      */
/* Horizontal Prescaling (0xA0) = 0x00            */
    0, /* uchar XPreScale;                        */
/* Accumulation Length (0xA1) = 0x01              */
    1, /* uchar XAccLength;                       */
/* Prescaler DC Gain/FIR Prefilter Control (0xA2) = 0x00*/
    0,  /* unsigned ScalerDCGain : 3;             */
    0,  /* unsigned XACLWeighting : 1;            */
    0,  /* unsigned YPreFilterType : 2;           */
    0,  /* unsigned CxPreFilterType : 2;          */
/* Unused (0xA3) = 0x00                           */
    0,  /* uchar RegA3Unused;                     */
/* Luminance brightness (0xA4) = 0x80             */
    0x70,   /* uchar Brightness;                  */
/* Luminance contrast (0xA5) = 0x40               */
    0x40,   /* uchar Contrast;                    */
/* Luminance saturation (0xA6) = 0x40             */
    0x40,   /* uchar Saturation;                  */
/* Unused (0xA7) 0x00                             */
    0, /* uchar RegA7Unused;                      */
/* Horizontal scaling increment luma (0xA8 - 0xA9)*/ 
    1024, /* ushort XLumaIncrement;               */
/* Horizontal phase offset luma (0xAA) = 0x00     */
    0,  /* uchar XLumaPhaseOffset;                */
/* Unused (0xAB) = 0x00                           */
    0,  /* uchar RegABUnused;                     */
/* Horizontal scaling increment chroma (0xAC - 0xAD) */
    512,    /* ushort XChromaIncrement;           */
/* Horizontal phase offset chroma (0xAE) = 0x00   */
    0,  /* uchar XChromaPhaseOffset;              */
/* Unused (0xAF) = 0x00                           */
    0,  /* uchar RegAFUnused;                     */
/* Vertical scaling increment luma (0xB0 - 0xB1)  */
    1024,   /* ushort YLumaIncrement;             */
/* Vertical scaling increment chroma (0xB2 - 0xB3)*/ 
    1024,   /* ushort YChromaIncrement;           */
/* Vertical scaling mode control (0xB4)           */
    0,  /* unsigned VerticalScalingType : 1;      */
    0,  /* unsigned RegB4AUnused : 3;             */
    0,  /* unsigned MirrorLineFlag : 1;           */
    0,  /* unsigned RegB4BUnused : 3;             */
/* Null Array (0xB5 - 0xB7)                       */
    {0,0,0},                                      
/* Vertical Phase Offset Chroma (0xB8 - 0xBB)     */
    {0,0,0,0},                                    
/* Vertical Phase Offset Luma (0xBC - 0xBF)       */
    {0,0,0,0}                                     
},

/********************************/
/* PLL2 Structure */
/********************************/
{
/* LFCO Per Line (0xF0) = 0x00    */
    0,  /* uchar SPLPL;           */
/* Parameter Select (0xF1) = 0x00 */
    0,  /* unsigned SPLPL8 : 1;   */
    0,  /* unsigned SPHSEL : 1;   */
    0,  /* unsigned SPMOD : 2;    */
    0,  /* unsigned SPPI : 4;     */
/* Nominal PLL2 DTO (0xF2 - 0xF3) */
    0,  /* ushort SPNINC;         */
/* PLL2 Status (0xF4) = 0x00                  */
    0,  /* unsigned SPLOCK : 1;               */
    0,  /* unsigned RegF2Unused : 6;          */
/* Pulse generator Line Length (0xF5) = 0x00  */
    0,  /* uchar PGLEN;                       */
/* Pulse A Position (0xF6) = 0x00             */
    0,  /* unsigned PGLENMSB : 1;             */
    0,  /* unsigned PGHSEL : 1;               */
    0,  /* unsigned PGRES : 1;                */
    0,  /* unsigned RegF6Unused : 1;          */
    0,  /* unsigned PGHAPS : 4;               */
/* Pulse A Position (0xF7) = 0x00             */
    0,  /* uchar PGHAPSMSB;                   */
/* Pulse B Position (0xF8) = 0x00             */
    0,  /* unsigned RegF8Unused : 4;          */
    0,  /* unsigned PGHBPS : 4;               */
/* Pulse B Position (0xF9) = 0x00             */
    0,  /* uchar PGHBPSMSB;                   */
/* Pulse C Position (0xFA) = 0x00             */
    0,  /* unsigned RegFAUnused : 4;          */
    0,  /* unsigned PGHCPS : 4;               */
/* Pulse C Position (0xFB) = 0x00             */
    0,  /* uchar PGHCPSMSB;                   */
/* Null Array (0xFC) - (0xFE)                 */
    {0,0,0},                                  
/* S_PLL max (0xFF) = 0x00                    */
    0,  /* unsigned SPTHRM : 4;               */
    0   /* unsigned SPTHRL : 4;               */
}},                                           
/********************************/            
/* DDECB Structure */                            
/********************************/            
{                                             
/********************************/            
/* Generic Structure */                          
/********************************/            
{
/* Chip Version (0x00) = 0x00 */
    0x00,
/* Increment Delay (0x01) = 0x08 */
    8,  /* unsigned HorIncDelay : 4;      */
    0,  /* unsigned GainHysteresis : 2;   */
    0,  /* unsigned WhitePeakDisable : 1; */
    0,  /* unsigned AOSL2 : 1;            */
/* Analog Input Control 1 (0x02) = 0xC0   */
    1,  /* unsigned AnalogMuxMode : 4;    */
    0,  /* unsigned Reg02Unused : 2;      */
    3,  /* unsigned AmplifierType : 2;    */
/* Analog Input Control 2 (0x03) = 0x20   */
    0,  /* unsigned ACH1GainMSB : 1;      */
    0,  /* unsigned ACH2GainMSB : 1;      */
    0,  /* unsigned AGCControl : 1;       */
    0,  /* unsigned AGCHold : 1;          */
    0,  /* unsigned ColorPeakOff : 1;     */
    1,  /* unsigned AGCDuringVBI : 1;     */
    0,  /* unsigned HLNRS : 1;            */
    0,  /* unsigned Test : 1;             */
/* Analog Input Control 3 (0x04) = 0x90   */
    0x90,   /* uchar ACH1Gain;              */
/* Analog Input Control 4 (0x05) = 0x90     */

⌨️ 快捷键说明

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