atihap_decode.h

来自「WinCE 3.0 BSP, 包含Inter SA1110, Intel_815」· C头文件 代码 · 共 154 行

H
154
字号
/*
 * File:	Decode.H
 *
 * Purpose:	Defines the general functions for interfacing to 
 *			a decoder support DLL.
 */

#include <mmsystem.h>
#include "capovl.h"
#ifndef _DECODER_H_
#define _DECODER_H_       

#undef ATIAPI
#define	ATIAPI	WINAPI

#ifdef __cplusplus
extern "C" {
#endif
                            
#define	 DEC_BT819A_ID				0x07  
#define	 DEC_BT829_ID				0x0E
#define	 DEC_BT829A_ID				0xE4
#define	 DEC_BT827_ID				0x0C 
#define	 DEC_ITT_ID					0x01
#define	 DEC_PHI_ID					0x02
#define	 DEC_RIPR_R0_ID				0x03	//Ripper Rev 0

#define  DEC_ERROR_OK               0x0
#define  DEC_FAILURE                0x8000
#define  DEC_ERROR_CONNECTOR        3
#define  DEC_ERROR_STANDARD         4
#define  DEC_ERROR_SHARPNESS        7  
#define  DEC_ERROR_FIELDMODE        8
#define  DEC_ERROR_RESOL_LEV        20 
#define  DEC_ERROR_VERT_SCALING     21  
#define  DEC_ERROR_HORZ_SCALING     22 
#define  DEC_ERROR_CAPOVL_CARD      23 

#define  DEC_COMPOSITE0             1
#define  DEC_COMPOSITE1             0
#define  DEC_SVIDEO                 2

#define  DEC_NTSC                   0
#define  DEC_PAL                    1
#define  DEC_SECAM                  2
#define  DEC_FORM_AUTOMATIC         3

#define  DEC_SMOOTH                 0
#define  DEC_SHARP                  1

#define DEC_LOW_RESOLUTION          1
#define DEC_NORM_RESOLUTION         2
#define DEC_HIGH_RESOLUTION         3

#define DEC_LOW_RES_HORZ_NTSC       180
#define DEC_NORM_RES_HORZ_NTSC      360
#define DEC_HIGH_RES_HORZ_NTSC      640

#define DEC_LOW_RES_HORZ_PAL        192
#define DEC_NORM_RES_HORZ_PAL       384
#define DEC_HIGH_RES_HORZ_PAL       640


#define  DEC_INTERLACED             1
#define  DEC_NONINTERLACED          0 

#define DEC_NTSC_INF_LINES			480
//#define	DEC_PAL_INF_LINES		520   
#define DEC_PAL_INF_LINES_def		566


//Formats
#ifndef fccVYUY422
#define fccVYUY422	     mmioFOURCC('V','Y','U','Y') /*11*/
#endif
#ifndef fccYVYU422
#define fccYVYU422       mmioFOURCC('Y','V','Y','U') /*12*/  
#endif

//Possible Capture Boards
#define fccVTA	         mmioFOURCC('V','T','A','A')
#define fccVTB	         mmioFOURCC('V','T','B','B')   
#define fccSIS0	         mmioFOURCC('S','I','S','0')   
#define fccNONE	         mmioFOURCC('N','O','N','E')   


#define DECS_STND_NTSC     	 (DWORD)(1L<<0)
#define DECS_STND_PAL        (DWORD) (1L<<1)
#define DECS_STND_SECAM		 (DWORD) (1L<<2)
#define DECS_STND_AUTO       (DWORD) (1L<<3)
#define DECS_CONC_TUNER      (DWORD) (1L<<4)
#define DECS_CONC_COMP       (DWORD) (1L<<5)  
#define DECS_CONC_SVIDEO     (DWORD) (1L<<6)  
#define DECS_TINT45          (DWORD) (1L<<7)  
#define DECS_TINT180         (DWORD) (1L<<8)  
#define DECS_SCAL_HORZ       (DWORD) (1L<<9)  
#define DECS_SCAL_VERT       (DWORD) (1L<<10)  
#define DECS_CC       		 (DWORD) (1L<<11)
#define DECS_COLTEMP   		 (DWORD) (1L<<12)
#define DECS_VBICAPTURE		 (DWORD) (1L<<13)
#define DECS_STND_PAL_N    	 (DWORD) (1L<<14) 
#define DECS_STND_PAL_M      (DWORD) (1L<<15)
#define DECS_STND_PAL_NCOMB	 (DWORD) (1L<<16)		// PALNCOMB 
#define DECS_STND_NTSC_J	 (DWORD) (1L<<17)		// NTSC-J
#define DECS_CCS       		 (DWORD) (1L<<23)
#define DECS_VBICAPTURES	 (DWORD) (1L<<24)

BOOL	ATIAPI	DecoderLoad					(HINSTANCE hInstance);
void	ATIAPI	DecoderFree					(void);
LPCTSTR	ATIAPI	DecoderDriver				(void);

DWORD	ATIAPI	DECCapability				(WORD wCard);
WORD	ATIAPI	DECChipVersion				(WORD wCard, BYTE *BT819_ver); 
WORD	ATIAPI	DECInitialize				(WORD wCard);
WORD	ATIAPI	DECSetConnector				(WORD wCard, WORD wConnector);
WORD	ATIAPI	DECSetStandard				(WORD wCard, WORD wStandard);
WORD	ATIAPI	DECSetSharpness				(WORD wCard, WORD wSharpness);
WORD	ATIAPI	DECSetSaturation			(WORD wCard, int nSaturation);
WORD	ATIAPI	DECSetContrast				(WORD wCard, int nContrast);
WORD	ATIAPI	DECSetBrightness			(WORD wCard, int nBrightness);
WORD	ATIAPI	DECSetTint					(WORD wCard, int nHue);
WORD	ATIAPI	DECSetScalingRatios			(WORD wCard, WORD wRegHorScaligRatio, WORD wRegVertScalingRatio);
WORD	ATIAPI	DECSetDelay					(WORD wCard, WORD wHorDelay, WORD wVertDelay);
WORD	ATIAPI	DECSetActive				(WORD wCard, WORD wHorSize, WORD wVertSize);
WORD	ATIAPI	DECSetDecimation			(WORD wCard, BOOL Frames_or_Fields, BYTE Number_to_Drop);
WORD	ATIAPI	DECSetInterlace				(WORD wCard, BOOL bInterlace);
WORD	ATIAPI	DECSetTracking				(WORD wCard, WORD wType);
WORD	ATIAPI	DECSetColorTemp				(WORD wCard, BYTE Temp);
WORD	ATIAPI	DECSetOutputFormat			(WORD wCard, DWORD dwFormat);
WORD	ATIAPI	DECConfigDecoderForCapture	(WORD wCard, FOURCC HWId);
BOOL	ATIAPI	DECTestForSignal			(WORD wCard);  
WORD	ATIAPI  DECSetOutputVideoSize       (WORD wCard, WORD wHorzSize, WORD wVertSize, BOOL fCC_On, BOOL fVBICap_On);
WORD	ATIAPI  DECSleep                    (WORD wCard, BOOL bGoToSleep);
DWORD	ATIAPI  DECEnumOutputFormat         (WORD wCard, FOURCC fccPrevious);
WORD	ATIAPI	DECTestForStandard			(WORD wCard);
BOOL	ATIAPI 	DECGetCCData				(WORD wCard, LPWORD wCCData); 
BOOL	ATIAPI 	DECGetCCDataSliced			(WORD wCard, LPBYTE ptrCCBuffer, LPWORD wCCData); 
void	ATIAPI 	DECGetVBICapParam			(WORD wCard, LPDWORD lpdwVbiPitch, LPDWORD lpdwOversRatio); 
BOOL	ATIAPI 	DECGetVBIParam				(WORD wCard, LPDWORD lpdwVbiPitch, LPBYTE lpbVBILinesNumb, 
																				LPDWORD lpdwSamplingRate);
BOOL	ATIAPI 	DECGetVBIData				(WORD wCard, LPBYTE lpbVBIData, LPBYTE ptrVBIBuffer, 
																				long lStride, WORD wVBIMask);
BOOL	ATIAPI 	DECAPM						(DWORD dwMode,DWORD dwCard);
																				 

#ifdef __cplusplus
}
#endif

#endif


									                                                                                  

⌨️ 快捷键说明

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