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