ituner.h
来自「完整的基于Conxant平台的USB电视棒的WIN驱动程序。」· C头文件 代码 · 共 48 行
H
48 行
#ifndef _ITUNER_H_
#define _ITUNER_H_
class ITuner
{
public:
virtual ~ITuner(){}
virtual BOOLEAN setFrequency(ULONG frequency, DWORD standard) = 0;
virtual BOOLEAN setFrequency(PULONG p_frequency, DWORD standard, DWORD tuning_flags) = 0;
//Returns the frequency set if successful, 0 if it failed.
virtual DWORD setChannel(
ULONG country_code,
DWORD standard,
DWORD channel_number,
DWORD use_antenna){return 0;}
//GetSignalOffset() return values:
// 0 : signal is locked
// -1 : no signal detected
// other: signal is not locked, but it was detected off the central frequency. Add the
// returned value to the frequency to get the frequency where the signal was detected.
virtual LONG getSignalOffset() = 0;
virtual BOOLEAN setMode(ULONG mode) = 0;
//Accessors to tuner information
virtual DWORD getSupportedModes() = 0;
virtual DWORD getSupportedStandards(ULONG mode) = 0;
virtual DWORD getMinFrequency(ULONG mode) = 0;
virtual DWORD getMaxFrequency(ULONG mode) = 0;
virtual DWORD getNumInputs(ULONG mode) = 0;
//Note that the video standard passed to setStandard is the one passed to the
// tuner properties, not the one from the video capture filter.
virtual BOOLEAN setStandard(DWORD standard){return TRUE;}
virtual BOOLEAN setCountry(DWORD country){return TRUE;}
virtual BOOLEAN Initialize(){return FALSE;}
// only used by Xceive tuner
virtual BOOLEAN powerDown(){return FALSE;}
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?