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

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.11.00.00 11-04-03 (ddk-b13)" */
  9. #include <vport.h>
  10. #include <vportdis.h>
  11. #include <saa7105.h> 
  12. #include <csl_edma.h>
  13. #include "evmdm642_vdisparams.h"
  14. #define LINE_SZ   720
  15. #define NUM_LINES 240
  16. VPORTDIS_Params EVMDM642_vDisParamsChan = {
  17.     VPORT_MODE_BT656_8BIT, /* dmode:3       */
  18.     VPORT_FLDOP_FRAME,     /* fldOp:3       */
  19.     VPORT_SCALING_DISABLE, /* scale:1       */    
  20.     VPORT_RESMPL_DISABLE,  /* resmpl:1      */      
  21.     VPORTDIS_DEFVAL_ENABLE,/* defValEn:1    */
  22.     VPORTDIS_BPK_10BIT_NORMAL, /*bpk10Bit:1 */
  23.     
  24.     VPORTDIS_VCTL1_HSYNC,  /* vctl1Config:2 */
  25.     VPORTDIS_VCTL2_VSYNC,  /* vctl2Config:2 */
  26.     VPORTDIS_VCTL3_FLD,    /* vctl3Config:1 */
  27.     VPORTDIS_EXC_DISABLE,  /* extCtl:3      */
  28.                
  29.     858,                   /* frmHSize */
  30.     525,                   /* frmVSize */
  31.     0,                     /* imgHOffsetFld1 */
  32.     0,                     /* imgVOffsetFld1 */
  33.     LINE_SZ,               /* imgHSizeFld1   */
  34.     NUM_LINES,             /* imgVSizeFld1   */
  35.     
  36.     0,                     /* imgHOffsetFld2 */
  37.     0,                     /* imgVOffsetFld2 */
  38.     LINE_SZ,               /* imgHSizeFld2   */
  39.     NUM_LINES,             /* imgVSizeFld2   */
  40.     720,                   /* hBlnkStart      */                    
  41.     856,                   /* hBlnkStop       */                    
  42.     
  43.     720,                   /* vBlnkXStartFld1 */                    
  44.     1,                     /* vBlnkYStartFld1 */                    
  45.     720,                   /* vBlnkXStopFld1  */                    
  46.     21,                    /* vBlnkYStopFld1  */                    
  47.     
  48.     360,                   /* vBlnkXStartFld2 */                    
  49.     263,                   /* vBlnkYStartFld2 */                    
  50.     360,                   /* vBlnkXStopFld2  */                    
  51.     284,                   /* vBlnkYStopFld2  */                    
  52.     
  53.     720,                   /* xStartFld1 */                         
  54.     1,                     /* yStartFld1 */                         
  55.     
  56.     360,                   /* xStartFld2 */                         
  57.     263,                   /* yStartFld2 */                         
  58.     736,                   /* hSyncStart */                         
  59.     800,                   /* hSyncStop  */                         
  60.             
  61.     736,                   /* vSyncXStartFld1 */                    
  62.     4,                     /* vSyncYStartFld1 */                    
  63.     736,                   /* vSyncXStopFld1  */                    
  64.     7,                     /* vSyncYStopFld1  */                    
  65.     307,                   /* vSyncXStartFld2 */                    
  66.     266,                   /* vSyncYStartFld2 */                    
  67.     307,                   /* vSyncXStopFld2  */                    
  68.     269,                   /* 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.     &SAA7105_Fxns,
  94.     INV,
  95. };    
  96.           
  97. SAA7105_ConfParams EVMDM642_vDisParamsSAA7105 = {
  98.   SAA7105_AFMT_SVIDEO,
  99.   SAA7105_MODE_NTSC720,
  100.   SAA7105_IFMT_YCBCR422_INTERLACED,
  101.   TRUE,
  102.   FALSE,   
  103.   INV
  104. };