?? tvp9k_nv_def.h
字號(hào):
/*******************************************************************************
* @ModuleName :: TVP9K_NV_Def.h
*
* @Copyright :: Copyright 2005- Texas Instruments, Inc.
*
* @Description :: Constants & Definitions for TVP9K NTSC Video Module
*
* @History ::
*---------------------------------------
* 03-09-2005 W.Shi Created
*******************************************************************************/
#ifndef _TVP9K_NV_DEF_H_
#define _TVP9K_NV_DEF_H_
#define TVP9K_NV_REG_BASE_ADDR 0x00150000
typedef struct _TVP9K_NV_REG_ {
volatile UINT32 Ctrl; // 0x150000
volatile UINT32 IrqStatus; // 0x150004
volatile UINT32 IrqMask; // 0x150008
volatile UINT32 VideoStart; // 0x15000c
volatile UINT32 VbiTopEnable; // 0x150010
volatile UINT32 VbiBottomEnable; // 0x150014
volatile UINT32 VbiStartOffset; // 0x150018
volatile UINT32 VbiBufSize; // 0x15001c
volatile UINT32 VbiReadPtr; // 0x150020
volatile UINT32 VbiWritePtr; // 0x150024
volatile UINT32 CcF1Data; // 0x150028
volatile UINT32 CcF2Data; // 0x15002c
volatile UINT32 AncStartOffset; // 0x150030
volatile UINT32 AncBufSize; // 0x150034
volatile UINT32 AncReadPtr; // 0x150038
volatile UINT32 AncWritePtr; // 0x15003c
} TVP9K_NV_REG;
typedef union _TVP9K_NV_IRQ_ {
UINT32 Data;
struct {
UINT32 :18;
UINT32 Repeat: 1;
UINT32 Skip: 1;
UINT32 TcErrorIrq: 1;
UINT32 IntBufFull: 1;
UINT32 XdsDataFull: 1;
UINT32 XdsDataIrq: 1;
UINT32 CcDataFull: 1;
UINT32 CcDataIrq: 1;
UINT32 VbiDataOverflow: 1;
UINT32 VbiAlmostFull: 1;
UINT32 VbiDataIrq: 1;
UINT32 AncDataOverFlow: 1;
UINT32 AncAlmostFull: 1;
UINT32 AncDataIrq: 1;
} Bits;
} TVP9K_NV_IRQ;
//------------------------------------------------------------
typedef struct _TI_DTV_NV_IN_CTRL_ {
USHORT InputWidth; // # of pixels width of incoming video
USHORT InputHeight; // # of lines height of incoming video
UCHAR InputAspectRatio; // Aspect ratio of incoming video
UCHAR InputProgressive; // Progressive (1) or Interlaced video
USHORT Field1Start; // First Line of Field 1
USHORT Field2Start; // First Line of Field 2
UCHAR Vblank2Line1;
UCHAR coefArrayLoaded; // coefficients Array Loaded
} TI_DTV_NV_IN_CTRL;
enum _TI_DTV_NV_PICTURE_FMT_enum_ {
TI_DTV_NV_480I,
TI_DTV_NV_NTSC = TI_DTV_NV_480I,
TI_DTV_NV_480P,
TI_DTV_NV_576I,
TI_DTV_NV_PAL = TI_DTV_NV_576I,
TI_DTV_NV_576P,
TI_DTV_NV_720P,
TI_DTV_NV_1080I,
TI_DTV_NV_XGA,
TI_DTV_MAX_NUM_NV_FMT
};
//------------------------------------------------------------
// Defined in "TiDTV_NV.c"
//
extern UCHAR NvPictureFmtIdx; // NV Picture Format Index
void TiDTV_InitNV(void);
void TiDTV_StartNV(void);
void TiDTV_StopNV(void);
void TiDTV_ConfigNvIn(UCHAR PictureFmtIdx);
void TiDTV_ConfigNvDisplay(UCHAR ScaleMethod);
#ifndef PG1_0 // for PG 2.0 only
void TiDTV_InitDeintMode(int AspectRatio, int DiMode);
#endif /* PG 1.0 */
#endif /* _TVP9K_NV_DEF_H_ */
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -