Go to the documentation of this file.
13 #include <linux/videodev2.h>
16 #define FAKE_VIDEO 0 // NOLINT(cppcoreguidelines-macro-usage)
34 QString audiodevice =
"")
39 bool Init(QString &startchannel,
bool setchan)
override;
42 bool Open(
void)
override;
43 void Close(
void)
override;
46 bool Tune(uint64_t frequency)
override;
47 bool Tune(
const QString &freqid,
int finetune)
override;
48 bool Retune(
void)
override;
51 void SetFd(
int fd)
override;
52 void SetFormat(
const QString &format)
override;
57 {
return GetFd() >= 0; }
84 const QString& inputname);
~V4LChannel(void) override
bool Init(QString &startchannel, bool setchan) override
bool InitializeInputs(void)
static QString GetSIStandard(void)
bool Open(void) override
Opens the channel changing hardware for use.
void SetFormat(const QString &format) override
Initializes tuner and modulator variables.
int GetCurrentChannelNum(const QString &channame)
void Close(void) override
Closes the channel changing hardware to use.
virtual bool Tune(const DTVMultiplex &tuning)=0
This performs the actual frequency tuning and in some cases input switching.
QMap< QString, int > m_pictAttrDefault
int GetFd(void) const override
Returns file descriptor, -1 if it does not exist.
bool IsOpen(void) const override
Reports whether channel is already open.
int ChangePictureAttribute(PictureAdjustType type, PictureAttribute attr, bool up) override
V4LChannel(TVRec *parent, QString videodevice, QString audiodevice="")
std::vector< struct CHANLIST > CHANLIST_vec
bool InitPictureAttributes(void) override
bool Retune(void) override
Retunes to last tuned frequency.
void SetFd(int fd) override
Sets file descriptor.
int GetPictureAttribute(PictureAttribute attr) const override
bool InitPictureAttribute(const QString &db_col_name)
int SetDefaultFreqTable(const QString &name)
bool Tune(const DTVMultiplex &tuning) override
This performs the actual frequency tuning and in some cases input switching.
QString GetAudioDevice(void) const
This is the coordinating class of the Recorder Subsystem.
void SetFreqTable(int index)
Class providing a generic interface to digital tuning hardware.
bool SetInputAndFormat(int inputNum, const QString &newFmt)
Implements tuning for TV cards using the V4L driver API, both versions 1 and 2.
QString GetFormatForChannel(const QString &channum, const QString &inputname)
bool IsExternalChannelChangeSupported(void) override
QString GetDevice(void) const override
Returns String representing device, useful for debugging.