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

📄 _saa7115.c

📁 基于TMS320DM642实现的视频采集程序。
💻 C
📖 第 1 页 / 共 4 页
字号:
    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}                                     
},
/********************************/
/* 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;                      */
}},
};

_SAA7115_XScale _SAA7115_xScale =
{{
{ 0,0,0},                   /* Entry for XPSC 0   */
{ 0,0,0},                   /* Entry for XPSC 1   */
{ 1,0,1},                   /* Entry for XPSC 2   */
{ 3,0,2},                   /* Entry for XPSC 3   */
{ 4,1,3},                   /* Entry for XPSC 4   */
{ 7,0,3},                   /* Entry for XPSC 5   */
{ 8,1,4},                   /* Entry for XPSC 6   */
{ 8,1,4},                   /* Entry for XPSC 7   */
{15,0,4},                   /* Entry for XPSC 8   */
{15,0,4},                   /* Entry for XPSC 9   */
{16,1,5},                   /* Entry for XPSC 10  */
{16,1,5},                   /* Entry for XPSC 11  */
{16,1,5},                   /* Entry for XPSC 12  */
{16,1,5},                   /* Entry for XPSC 13  */
{16,1,5},                   /* Entry for XPSC 14  */
{31,0,5},                   /* Entry for XPSC 15  */
{32,1,6},                   /* Entry for XPSC 16  */
{32,1,6},                   /* Entry for XPSC 17  */
{32,1,6},                   /* Entry for XPSC 18  */
{32,1,6},                   /* Entry for XPSC 19  */
{32,1,6},                   /* Entry for XPSC 20  */
{32,1,6},                   /* Entry for XPSC 21  */
{32,1,6},                   /* Entry for XPSC 22  */
{32,1,6},                   /* Entry for XPSC 23  */
{32,1,6},                   /* Entry for XPSC 24  */
{32,1,6},                   /* Entry for XPSC 25  */
{32,1,6},                   /* Entry for XPSC 26  */
{32,1,6},                   /* Entry for XPSC 27  */
{32,1,6},                   /* Entry for XPSC 28  */
{32,1,6},                   /* Entry for XPSC 29  */
{32,1,6},                   /* Entry for XPSC 30  */
{32,1,6},                   /* Entry for XPSC 31  */
{32,1,6},                   /* Entry for XPSC 32  */
{32,1,6},                   /* Entry for XPSC 33  */
{32,1,6},                   /* Entry for XPSC 34  */
{32,1,6},                   /* Entry for XPSC 35  */
{32,1,6},                   /* Entry for XPSC 36  */
{32,1,6},                   /* Entry for XPSC 37  */
{32,1,6},                   /* Entry for XPSC 38  */
{32,1,6},                   /* Entry for XPSC 39  */
{32,1,6},                   /* Entry for XPSC 40  */
{32,1,6},                   /* Entry for XPSC 41  */
{32,1,6},                   /* Entry for XPSC 42  */
{32,1,6},                   /* Entry for XPSC 43  */
{32,1,6},                   /* Entry for XPSC 44  */
{32,1,6},                   /* Entry for XPSC 45  */
{32,1,6},                   /* Entry for XPSC 46  */
{32,1,6},                   /* Entry for XPSC 47  */
{32,1,6},                   /* Entry for XPSC 48  */
{32,1,6},                   /* Entry for XPSC 49  */
{32,1,6},                   /* Entry for XPSC 50  */
{32,1,6},                   /* Entry for XPSC 51  */
{32,1,6},                   /* Entry for XPSC 52  */
{32,1,6},                   /* Entry for XPSC 53  */
{32,1,6},                   /* Entry for XPSC 54  */
{32,1,6},                   /* Entry for XPSC 55  */
{32,1,6},                   /* Entry for XPSC 56  */
{32,1,6},                   /* Entry for XPSC 57  */
{32,1,6},                   /* Entry for XPSC 58  */
{32,1,6},                   /* Entry for XPSC 59  */
{32,1,6},                   /* Entry for XPSC 60  */
{32,1,6},                   /* Entry for XPSC 61  */
{32,1,6},                   /* Entry for XPSC 62  */
{32,1,6}                    /* Entry for XPSC 63  */
}};


/********************************************************************/
/* end of file                                                      */
/********************************************************************/

⌨️ 快捷键说明

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