📄 lchipctl.h
字号:
#ifndef __LCHIPCTL_H__
#define __LCHIPCTL_H__
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
// For module global variables declaration....
#ifdef __CHIPCTL_CPP__
#define GLOBAL
#else
#define GLOBAL extern
#endif // __CHIPCTL_CPP__
// Define video decoder's settings file name for each source type
#define I2C_PAL "\\I2C_PAL.in" // PAL
#define I2C_NTSC "\\I2C_NTSC.in" // NTSC
#define I2C_SQUARE "\\I2C_SQR.in" // NTSC and SQUARE
#define COMPONENTS_REGISTRY "SOFTWARE\\MPEG-I\\WMPEG200\\Components"
#define BRIGHTNESS_REGISTRY "BrightnessAddress"
#define CONTRAST_REGISTRY "ContrastAddress"
#define HUE_REGISTRY "HueAddress"
#define SATURATION_REGISTRY "SaturationAddress"
#define SOURCE_REGISTRY "SourceAddress"
#define VIDEO_LOCK_REGISTRY "VideoLockAddress"
#define VIDEO_TYPE_REGISTRY "VideoTypeAddress"
#define SOURCE0_VALUE "Source0Value"
#define SOURCE1_VALUE "Source1Value"
#define SOURCE2_VALUE "Source2Value"
#define VIDEO_LOCK_BIT_VALUE "VideoLockBitValue"
#define VIDEO_VIDEO_TYPE_PAL "VideoTypePALValue"
#define VIDEO_VIDEO_TYPE_NTSC "VideoTypeNTSCValue"
#define TVTUNER_DECODER_DEVICE_ID "TVTunerDeviceID"
#define AUDIO_CODAC "AudioCODAC"
#define ATTRIBUTE_BRIGHTNESS 0x0001 // Brightness tuning
#define ATTRIBUTE_CONTRAST 0x0002 // Contrast tuning
#define ATTRIBUTE_HUE 0x0004 // Hue tuning
#define ATTRIBUTE_SATURATION 0x0008 // Saturation tuning
#define ATTRIBUTE_SOURCE 0x0010 // Source selection
#define ATTRIBUTE_VIDEO_LOCK 0x0020 // Support video lock bit
#define ATTRIBUTE_VIDEO_TYPE 0x0040 // Support video source type
#define ATTRIBUTE_TVTUNER 0x0080 // Support TV Tuner
#define ATTRIBUTE_AUDIO_CODAC 0x0100 // Support audio codac
typedef struct _CHIPCTL_COMPONENTS_ATTRIBUTES
{
int iSupportAttribute;
int iBrightnessAddress;
int iContrastAddress;
int iHueAddress;
int iSaturationAddress;
int iSourceAddress;
int iVideoSource[3]; // The registre value of source 0, 1, and 2
int iVideoLockAddress;
int iVideoLockBitValue; // This bit is 0:Lock, 1:Unlock
int iVideoTypeAddress;
int iVideoTypeNTSC; // This bit is 1:NTSC, 0:PAL
int iTVTunerDeviceID;
int iAudioCODAC; // 0: no audio codac on board
} CHIPCTL_COMPONENTS_ATTRIBUTES, *PCHIPCTL_COMPONENTS_ATTRIBUTES;
typedef struct _CHIPCTL_GDS
{
PCHIPCTL_COMPONENTS_ATTRIBUTES pComponentsAttributes;
OVERLAPPED OverlappedEvent;
} CHIPCTL_GDS, *PCHIPCTL_GDS;
GLOBAL PCHIPCTL_GDS _pGDS;
GLOBAL CHIPCTL_COMPONENTS_ATTRIBUTES _ComponentsAttributes;
GLOBAL DWORD _dwTotalSlotNumber;
//=============================
// Module functions
//=============================
// At ChipCtl.cpp
void InitModule( LPBYTE lpRegistryPath );
// At TVTuner.cpp
BOOL CheckChannelNumberValidity( int iChannelType, int iChannelNum );
int GetChannelCarrierFreq( int iChannelType, int iChannelNum );
int GetIntermediateFreq( int iChannelType );
#ifdef __cplusplus
}
#endif // __cplusplus
#endif // __LCHIPCTL_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -