vdisparamsPAL.c
上传用户:dahaojd
上传日期:2008-01-29
资源大小:14357k
文件大小:5k
源码类别:

DSP编程

开发平台:

C/C++

  1. /*
  2.  *  Copyright 2003 by Texas Instruments Incorporated.
  3.  *  All rights reserved. Property of Texas Instruments Incorporated.
  4.  *  Restricted rights to use, duplicate or disclose this code are
  5.  *  granted through contract.
  6.  *  
  7.  */
  8. /* "@(#) DDK 1.10.00.21 06-26-03 (ddk-b10)" */
  9. #include <vport.h>
  10. #include <vportdis.h>
  11. #include <saa7105.h> 
  12. #include <saa7121.h> 
  13. #include <csl_edma.h>
  14. #include "vdisparams.h"
  15. #define LINE_SZ   720
  16. #define NUM_LINES 287
  17. VPORTDIS_Params EVMDM642_vDisParamsChan = {
  18.     VPORT_MODE_BT656_8BIT, /* dmode:3       */
  19.     VPORT_FLDOP_FRAME,     /* fldOp:3       */
  20.     VPORT_SCALING_DISABLE, /* scale:1       */    
  21.     VPORT_RESMPL_DISABLE,  /* resmpl:1      */      
  22.     VPORTDIS_DEFVAL_ENABLE,/* defValEn:1    */
  23.     VPORTDIS_BPK_10BIT_NORMAL, /*bpk10Bit:1 */
  24.     
  25.     VPORTDIS_VCTL1_HSYNC,  /* vctl1Config:2 */
  26.     VPORTDIS_VCTL2_VSYNC,  /* vctl2Config:2 */
  27.     VPORTDIS_VCTL3_FLD,    /* vctl3Config:1 */
  28.     VPORTDIS_EXC_DISABLE,  /* extCtl:3      */
  29.                
  30.     864,                   /* frmHSize */
  31.     625,                   /* frmVSize */
  32.     0,                     /* imgHOffsetFld1 */
  33.     0,                     /* imgVOffsetFld1 */
  34.     LINE_SZ,               /* imgHSizeFld1   */
  35.     NUM_LINES,             /* imgVSizeFld1   */
  36.     
  37.     0,                     /* imgHOffsetFld2 */
  38.     0,                     /* imgVOffsetFld2 */
  39.     LINE_SZ,               /* imgHSizeFld2   */
  40.     NUM_LINES,             /* imgVSizeFld2   */
  41.     720,                   /* hBlnkStart      */                    
  42.     862,                   /* hBlnkStop       */                    
  43.     
  44.     720,                   /* vBlnkXStartFld1 */                    
  45.     624,                   /* vBlnkYStartFld1 */                    
  46.     720,                   /* vBlnkXStopFld1  */                    
  47.     23,                    /* vBlnkYStopFld1  */                    
  48.     
  49.     360,                   /* vBlnkXStartFld2 */                    
  50.     311,                   /* vBlnkYStartFld2 */                    
  51.     360,                   /* vBlnkXStopFld2  */                    
  52.     336,                   /* vBlnkYStopFld2  */                    
  53.     
  54.     720,                   /* xStartFld1 */                         
  55.     1,                     /* yStartFld1 */                         
  56.     
  57.     360,                   /* xStartFld2 */                         
  58.     313,                   /* yStartFld2 */                         
  59.     752,                   /* hSyncStart */                         
  60.     782,                   /* hSyncStop  */                         
  61.     752,                   /* vSyncXStartFld1 */                    
  62.     1,                     /* vSyncYStartFld1 */                    
  63.     752,                   /* vSyncXStopFld1  */                    
  64.     3,                     /* vSyncYStopFld1  */                    
  65.     320,                   /* vSyncXStartFld2 */                    
  66.     313,                   /* vSyncYStartFld2 */                    
  67.     320,                   /* vSyncXStopFld2  */                    
  68.     316,                   /* vSyncYStopFld2  */                    
  69.     16,                    /* yClipLow        */                    
  70.     235,                   /* yClipHigh       */                    
  71.     
  72.     16,                    /* cClipLow        */                    
  73.     240,                   /* cClipHigh       */                    
  74.     
  75.     0x10,
  76.     0x80,
  77.     0x80,                  
  78.     VPORTDIS_RGBX_DISABLE, /* RGB extract disable */
  79.     0,                     /* incPix, for raw mode only */          
  80.     (LINE_SZ>>3),          /*thrld     */
  81.     3,                     /*numFrmBufs*/
  82.     128,                   /*alignment */
  83.     VPORT_FLDS_MERGED,     /*mergeFlds */
  84.     NULL,                  /*segId     */            
  85.     EDMA_OPT_PRI_HIGH,     /*edmaPri   */
  86.     8                      /* irqId    */    
  87. };
  88. VPORT_PortParams EVMDM642_vDisParamsPort = {
  89.     FALSE,                      /*  enableDualChan;     */ 
  90.     VPORT_POLARITY_ACTIVE_HIGH, /* vport control pin 1 polarity    */
  91.     VPORT_POLARITY_ACTIVE_HIGH, /* vport control pin 2 polarity    */
  92.     VPORT_POLARITY_ACTIVE_HIGH, /* vport control pin 3 polarity    */
  93.     &SAA7121_Fxns,
  94.     INV
  95. };    
  96.            
  97. SAA7105_ConfParams EVMDM642_vDisParamsSAA7105 = {
  98.   SAA7105_AFMT_SVIDEO,
  99.   SAA7105_MODE_PAL720,
  100.   SAA7105_IFMT_YCBCR422_INTERLACED,
  101.   TRUE,
  102.   TRUE,
  103.   INV                   /*handleI2C */
  104. };
  105. SAA7121_ConfParams EVMDM642_vDisParamsSAA7121 = {
  106.   SAA7121_MODE_PAL720,
  107.   //SAA7121_MODE_PAL,
  108.   INV                   /*handleI2C */
  109. };