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