3#ifndef V4L2encStreamhandler_H
4#define V4L2encStreamhandler_H
37 void run(
void)
override;
63 bool Status(
bool &failed,
bool &failing);
67 bool SetOption(
const QString &opt,
int value);
68 bool SetOption(
const QString &opt,
const QString &value);
80 void SetBitrate(
int bitrate,
int maxbitrate,
int bitratemode,
81 const QString & reason);
This class is intended to detect the presence of needed tables.
Buffers reads from device files.
void PriorityEvent(int fd) override
static constexpr unsigned int kSize
This is a specialization of DTVRecorder used to handle streams from V4L2 recorders.
bool SetVideoCaptureFormat(void)
bool SetOption(const QString &opt, int value)
static QString RequestDescription(int request)
static QMap< QString, V4L2encStreamHandler * > s_handlers
bool HasPictureAttributes(void) const
bool m_hasPictureAttributes
bool SetRecordingVolume(void)
static const std::array< const int, 14 > kAudioRateL1
V4L2encStreamHandler(const QString &device, int audio_input, int inputid)
bool Status(bool &failed, bool &failing)
int m_langMode
0 is Main Lang; 1 is SAP Lang; 2 is Dual
int GetSignalStrength(void)
bool HasTuner(void) const
QString Driver(void) const
bool HasSlicedVBI(void) const
static void Return(V4L2encStreamHandler *&ref, int inputid)
QString ErrorString(void) const
bool GetResolution(int &width, int &height) const
void run(void) override
Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead.
static const std::array< const int, 14 > kAudioRateL2
bool SetControl(int request, int value)
QAtomicInt m_streamingCnt
int AvailCount(void) const
~V4L2encStreamHandler(void) override
static QMap< QString, uint > s_handlers_refcnt
bool HasAudio(void) const
static QMutex s_handlers_lock
bool m_pauseEncodingAllowed
void SetBitrate(int bitrate, int maxbitrate, int bitratemode, const QString &reason)
bool SetLanguageMode(void)
Set audio language mode.
static const std::array< const std::string, 15 > kStreamTypes
static const std::array< const int, 14 > kAudioRateL3
bool SetBitrateForResolution(void)
static V4L2encStreamHandler * Get(const QString &devname, int audioinput, int inputid)
void RestartEncoding(void)
bool HasTuner(void) const
bool GetResolution(int &width, int &height) const
QString DriverName(void) const
bool HasSlicedVBI(void) const
bool HasAudioSupport(void) const