MythTV  master
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
V4L2encStreamHandler Class Reference

#include <v4l2encstreamhandler.h>

Inheritance diagram for V4L2encStreamHandler:
Inheritance graph
[legend]
Collaboration diagram for V4L2encStreamHandler:
Collaboration graph
[legend]

Public Member Functions

 V4L2encStreamHandler (const QString &device, int audio_input, int inputid)
 
 ~V4L2encStreamHandler (void)
 
void run (void) override
 Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead. More...
 
bool Configure (void)
 
QString Driver (void) const
 
int GetStreamType (void)
 
bool IsOpen (void) const
 
bool HasTuner (void) const
 
bool HasAudio (void) const
 
bool HasSlicedVBI (void) const
 
bool HasPictureAttributes (void) const
 
int AvailCount (void) const
 
bool StartEncoding (void)
 
bool StopEncoding (void)
 
void RestartEncoding (void)
 
QString ErrorString (void) const
 
- Public Member Functions inherited from StreamHandler
virtual void AddListener (MPEGStreamData *data, bool allow_section_reader=false, bool needs_buffering=false, QString output_file=QString())
 
virtual void RemoveListener (MPEGStreamData *data)
 
bool IsRunning (void) const
 
bool HasError (void) const
 
virtual bool AddNamedOutputFile (const QString &filename)
 Called with _listener_lock locked just after adding new output file. More...
 
virtual void RemoveNamedOutputFile (const QString &filename)
 Called with _listener_lock locked just before removing old output file. More...
 

Static Public Member Functions

static V4L2encStreamHandlerGet (const QString &devname, int audioinput, int inputid)
 
static void Return (V4L2encStreamHandler *&ref, int inputid)
 

Protected Member Functions

bool Status (bool &failed, bool &failing)
 
bool SetOption (const QString &opt, int value)
 
bool SetOption (const QString &opt, const QString &value)
 
bool SetControl (int request, int value)
 
bool SetVideoCaptureFormat (void)
 
bool SetLanguageMode (void)
 Set audio language mode. More...
 
bool SetRecordingVolume (void)
 
bool HasLock (void)
 
int GetSignalStrength (void)
 
bool GetResolution (int &width, int &height) const
 
void SetBitrate (int bitrate, int maxbitrate, int bitratemode, const QString &reason)
 
bool SetBitrateForResolution (void)
 
- Protected Member Functions inherited from StreamHandler
 StreamHandler (const QString &device, int inputid)
 
 ~StreamHandler ()
 
void Start (void)
 
void Stop (void)
 
void SetRunning (bool running, bool using_buffering, bool using_section_reader)
 
bool AddPIDFilter (PIDInfo *info)
 
bool RemovePIDFilter (uint pid)
 
bool RemoveAllPIDFilters (void)
 
void UpdateListeningForEIT (void)
 
bool UpdateFiltersFromStreamData (void)
 
virtual bool UpdateFilters (void)
 
virtual void CycleFiltersByPriority ()
 
PIDPriority GetPIDPriority (uint pid) const
 
void ReaderPaused (int fd) override
 
void PriorityEvent (int fd) override
 
virtual PIDInfoCreatePIDInfo (uint pid, uint stream_type, int pes_type)
 
void WriteMPTS (unsigned char *buffer, uint len)
 Write out a copy of the raw MPTS. More...
 
virtual void SetRunningDesired (bool desired)
 At minimum this sets _running_desired, this may also send signals to anything that might be blocking the run() loop. More...
 
- Protected Member Functions inherited from MThread
int exec (void)
 Enters the qt event loop. call exit or quit to exit thread. More...
 
 MThread (const QString &objectName)
 Standard constructor. More...
 
 MThread (const QString &objectName, QRunnable *runnable)
 Use this constructor if you want the default run() method to run the QRunnable's run() method instead of entering the Qt event loop. More...
 
virtual ~MThread ()
 
void RunProlog (void)
 Sets up a thread, call this if you reimplement run(). More...
 
void RunEpilog (void)
 Cleans up a thread's resources, call this if you reimplement run(). More...
 
QThread * qthread (void)
 Returns the thread, this will always return the same pointer no matter how often you restart the thread. More...
 
void setObjectName (const QString &name)
 
QString objectName (void) const
 
void setPriority (QThread::Priority priority)
 
QThread::Priority priority (void) const
 
bool isFinished (void) const
 
bool isRunning (void) const
 
void setStackSize (uint stackSize)
 
uint stackSize (void) const
 
void exit (int retcode=0)
 Use this to exit from the thread if you are using a Qt event loop. More...
 
void start (QThread::Priority=QThread::InheritPriority)
 Tell MThread to start running the thread in the near future. More...
 
void terminate (void)
 Kill a thread unsafely. More...
 
void quit (void)
 calls exit(0) More...
 
bool wait (unsigned long time=ULONG_MAX)
 Wait for the MThread to exit, with a maximum timeout. More...
 
- Protected Member Functions inherited from DeviceReaderCB
virtual ~DeviceReaderCB ()=default
 

Static Protected Member Functions

static QString RequestDescription (int request)
 
- Static Protected Member Functions inherited from MThread
static void setTerminationEnabled (bool enabled=true)
 
static void sleep (unsigned long time)
 
static void msleep (unsigned long time)
 
static void usleep (unsigned long time)
 
static void ThreadSetup (const QString &)
 This is to be called on startup in those few threads that haven't been ported to MThread. More...
 
static void ThreadCleanup (void)
 This is to be called on exit in those few threads that haven't been ported to MThread. More...
 
static void Cleanup (void)
 This will print out all the running threads, call exit(1) on each and then wait up to 5 seconds total for all the threads to exit. More...
 
static void GetAllThreadNames (QStringList &list)
 
static void GetAllRunningThreadNames (QStringList &list)
 

Private Types

enum  constants { PACKET_SIZE = 188 * 32768 }
 

Private Member Functions

bool Open (void)
 
void Close (void)
 
bool ConfigureVBI (void)
 

Private Attributes

bool m_failing {false}
 
QString m_error
 
bool m_hasTuner {false}
 
bool m_hasPictureAttributes {false}
 
int m_bufferSize {1000 * (int)TSPacket::kSize}
 
int m_desired_stream_type {-1}
 
int m_stream_type {-1}
 
int m_aspect_ratio {-1}
 
int m_bitrate_mode {V4L2_MPEG_VIDEO_BITRATE_MODE_VBR}
 
int m_bitrate {-1}
 
int m_max_bitrate {-1}
 
int m_audio_codec {-1}
 
int m_audio_layer
 
int m_audio_samplerate {-1}
 
int m_audio_bitrateL1 {-1}
 
int m_audio_bitrateL2 {-1}
 
int m_audio_bitrateL3 {-1}
 
int m_audio_volume {-1}
 
int m_lang_mode {-1}
 0 is Main Lang; 1 is SAP Lang; 2 is Dual More...
 
uint m_low_bitrate_mode {V4L2_MPEG_VIDEO_BITRATE_MODE_VBR}
 
uint m_low_bitrate {(uint)-1}
 
uint m_low_peak_bitrate {(uint)-1}
 
uint m_medium_bitrate_mode {V4L2_MPEG_VIDEO_BITRATE_MODE_VBR}
 
uint m_medium_bitrate {(uint)-1}
 
uint m_medium_peak_bitrate {(uint)-1}
 
uint m_high_bitrate_mode {V4L2_MPEG_VIDEO_BITRATE_MODE_VBR}
 
uint m_high_bitrate {(uint)-1}
 
uint m_high_peak_bitrate {(uint)-1}
 
int m_fd {-1}
 
int m_audio_input
 
uint m_width {(uint)-1}
 
uint m_height {(uint)-1}
 
bool m_has_lock {false}
 
uint m_signal_strength {(uint)-1}
 
V4L2util m_v4l2
 
DeviceReadBufferm_drb {nullptr}
 
QString m_vbi_device
 
QAtomicInt m_streaming_cnt {0}
 
QMutex m_stream_lock
 
bool m_pause_encoding_allowed {true}
 

Static Private Attributes

static QMutex s_handlers_lock
 
static QMap< QString, V4L2encStreamHandler * > s_handlers
 
static QMap< QString, uints_handlers_refcnt
 
static const int s_audio_rateL1 []
 
static const int s_audio_rateL2 []
 
static const int s_audio_rateL3 []
 
static const char * s_stream_types []
 
static const char * s_aspect_ratios []
 

Friends

class V4L2encRecorder
 
class V4L2encSignalMonitor
 

Additional Inherited Members

- Protected Types inherited from StreamHandler
typedef QMap< MPEGStreamData *, QString > StreamDataList
 
- Protected Attributes inherited from StreamHandler
QString m_device
 
int m_inputid
 
bool m_needs_buffering {false}
 
bool m_allow_section_reader {false}
 
QMutex m_add_rm_lock
 
QMutex m_start_stop_lock
 
volatile bool m_running_desired {false}
 
volatile bool m_bError {false}
 
bool m_running {false}
 
bool m_restarting {false}
 
bool m_using_buffering {false}
 
bool m_using_section_reader {false}
 
QWaitCondition m_running_state_changed
 
QMutex m_pid_lock {QMutex::Recursive}
 
vector< uintm_eit_pids
 
PIDInfoMap m_pid_info
 
uint m_open_pid_filters {0}
 
MythTimer m_cycle_timer
 
ThreadedFileWriterm_mpts_tfw {nullptr}
 
QSet< QString > m_mpts_files
 
QString m_mpts_base_file
 
QMutex m_mpts_lock
 
QMutex m_listener_lock {QMutex::Recursive}
 
StreamDataList m_stream_data_list
 
- Protected Attributes inherited from MThread
MThreadInternalm_thread {nullptr}
 
QRunnable * m_runnable {nullptr}
 
bool m_prolog_executed {true}
 
bool m_epilog_executed {true}
 
- Static Protected Attributes inherited from MThread
static const int kDefaultStartTimeout
 

Detailed Description

Definition at line 21 of file v4l2encstreamhandler.h.

Member Enumeration Documentation

◆ constants

Enumerator
PACKET_SIZE 

Definition at line 26 of file v4l2encstreamhandler.h.

Constructor & Destructor Documentation

◆ V4L2encStreamHandler()

V4L2encStreamHandler::V4L2encStreamHandler ( const QString &  device,
int  audio_input,
int  inputid 
)

Definition at line 142 of file v4l2encstreamhandler.cpp.

Referenced by Get().

◆ ~V4L2encStreamHandler()

V4L2encStreamHandler::~V4L2encStreamHandler ( void  )

Definition at line 159 of file v4l2encstreamhandler.cpp.

Member Function Documentation

◆ Get()

V4L2encStreamHandler * V4L2encStreamHandler::Get ( const QString &  devname,
int  audioinput,
int  inputid 
)
static

◆ Return()

void V4L2encStreamHandler::Return ( V4L2encStreamHandler *&  ref,
int  inputid 
)
static

◆ run()

void V4L2encStreamHandler::run ( void  )
overridevirtual

Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead.

Note
If you override this method you must call RunProlog before you do any work and RunEpilog before you exit the run method.

Reimplemented from MThread.

Definition at line 165 of file v4l2encstreamhandler.cpp.

◆ Configure()

bool V4L2encStreamHandler::Configure ( void  )

Definition at line 397 of file v4l2encstreamhandler.cpp.

Referenced by V4L2encRecorder::run().

◆ Driver()

QString V4L2encStreamHandler::Driver ( void  ) const
inline

Definition at line 44 of file v4l2encstreamhandler.h.

◆ GetStreamType()

int V4L2encStreamHandler::GetStreamType ( void  )

Definition at line 806 of file v4l2encstreamhandler.cpp.

Referenced by Configure(), and V4L2encRecorder::run().

◆ IsOpen()

bool V4L2encStreamHandler::IsOpen ( void  ) const
inline

Definition at line 46 of file v4l2encstreamhandler.h.

Referenced by V4L2encRecorder::Open(), Open(), run(), StartEncoding(), and StopEncoding().

◆ HasTuner()

bool V4L2encStreamHandler::HasTuner ( void  ) const
inline

Definition at line 48 of file v4l2encstreamhandler.h.

◆ HasAudio()

bool V4L2encStreamHandler::HasAudio ( void  ) const
inline

Definition at line 49 of file v4l2encstreamhandler.h.

◆ HasSlicedVBI()

bool V4L2encStreamHandler::HasSlicedVBI ( void  ) const
inline

Definition at line 50 of file v4l2encstreamhandler.h.

◆ HasPictureAttributes()

bool V4L2encStreamHandler::HasPictureAttributes ( void  ) const
inline

Definition at line 52 of file v4l2encstreamhandler.h.

◆ AvailCount()

int V4L2encStreamHandler::AvailCount ( void  ) const
inline

Definition at line 55 of file v4l2encstreamhandler.h.

◆ StartEncoding()

bool V4L2encStreamHandler::StartEncoding ( void  )

◆ StopEncoding()

bool V4L2encStreamHandler::StopEncoding ( void  )

◆ RestartEncoding()

void V4L2encStreamHandler::RestartEncoding ( void  )

Definition at line 657 of file v4l2encstreamhandler.cpp.

Referenced by run().

◆ ErrorString()

QString V4L2encStreamHandler::ErrorString ( void  ) const
inline

Definition at line 60 of file v4l2encstreamhandler.h.

Referenced by V4L2encRecorder::Open().

◆ Status()

bool V4L2encStreamHandler::Status ( bool failed,
bool failing 
)
protected

Definition at line 135 of file v4l2encstreamhandler.cpp.

Referenced by V4L2encRecorder::run().

◆ RequestDescription()

static QString V4L2encStreamHandler::RequestDescription ( int  request)
staticprotected

◆ SetOption() [1/2]

bool V4L2encStreamHandler::SetOption ( const QString &  opt,
int  value 
)
protected

◆ SetOption() [2/2]

bool V4L2encStreamHandler::SetOption ( const QString &  opt,
const QString &  value 
)
protected

Definition at line 813 of file v4l2encstreamhandler.cpp.

◆ SetControl()

bool V4L2encStreamHandler::SetControl ( int  request,
int  value 
)
protected

◆ SetVideoCaptureFormat()

bool V4L2encStreamHandler::SetVideoCaptureFormat ( void  )
protected

◆ SetLanguageMode()

bool V4L2encStreamHandler::SetLanguageMode ( void  )
protected

Set audio language mode.

Definition at line 673 of file v4l2encstreamhandler.cpp.

Referenced by Configure().

◆ SetRecordingVolume()

bool V4L2encStreamHandler::SetRecordingVolume ( void  )
protected

◆ HasLock()

bool V4L2encStreamHandler::HasLock ( void  )
protected

Definition at line 902 of file v4l2encstreamhandler.cpp.

◆ GetSignalStrength()

int V4L2encStreamHandler::GetSignalStrength ( void  )
protected

Definition at line 910 of file v4l2encstreamhandler.cpp.

◆ GetResolution()

bool V4L2encStreamHandler::GetResolution ( int &  width,
int &  height 
) const
inlineprotected

Definition at line 77 of file v4l2encstreamhandler.h.

◆ SetBitrate()

void V4L2encStreamHandler::SetBitrate ( int  bitrate,
int  maxbitrate,
int  bitratemode,
const QString &  reason 
)
protected

Definition at line 924 of file v4l2encstreamhandler.cpp.

Referenced by SetBitrateForResolution().

◆ SetBitrateForResolution()

bool V4L2encStreamHandler::SetBitrateForResolution ( void  )
protected

Definition at line 953 of file v4l2encstreamhandler.cpp.

Referenced by StartEncoding().

◆ Open()

bool V4L2encStreamHandler::Open ( void  )
private

Definition at line 336 of file v4l2encstreamhandler.cpp.

Referenced by run(), and V4L2encStreamHandler().

◆ Close()

void V4L2encStreamHandler::Close ( void  )
private

Definition at line 464 of file v4l2encstreamhandler.cpp.

Referenced by Open(), and ~V4L2encStreamHandler().

◆ ConfigureVBI()

bool V4L2encStreamHandler::ConfigureVBI ( void  )
private

Definition at line 1021 of file v4l2encstreamhandler.cpp.

Referenced by Configure().

Friends And Related Function Documentation

◆ V4L2encRecorder

friend class V4L2encRecorder
friend

Definition at line 23 of file v4l2encstreamhandler.h.

◆ V4L2encSignalMonitor

friend class V4L2encSignalMonitor
friend

Definition at line 24 of file v4l2encstreamhandler.h.

Member Data Documentation

◆ m_failing

bool V4L2encStreamHandler::m_failing {false}
private

Definition at line 90 of file v4l2encstreamhandler.h.

Referenced by run(), and Status().

◆ m_error

QString V4L2encStreamHandler::m_error
private

Definition at line 91 of file v4l2encstreamhandler.h.

Referenced by Open(), run(), and StartEncoding().

◆ m_hasTuner

bool V4L2encStreamHandler::m_hasTuner {false}
private

Definition at line 93 of file v4l2encstreamhandler.h.

◆ m_hasPictureAttributes

bool V4L2encStreamHandler::m_hasPictureAttributes {false}
private

Definition at line 94 of file v4l2encstreamhandler.h.

◆ s_handlers_lock

QMutex V4L2encStreamHandler::s_handlers_lock
staticprivate

Definition at line 97 of file v4l2encstreamhandler.h.

Referenced by Get(), and Return().

◆ s_handlers

QMap< QString, V4L2encStreamHandler * > V4L2encStreamHandler::s_handlers
staticprivate

Definition at line 98 of file v4l2encstreamhandler.h.

Referenced by Get(), and Return().

◆ s_handlers_refcnt

QMap< QString, uint > V4L2encStreamHandler::s_handlers_refcnt
staticprivate

Definition at line 99 of file v4l2encstreamhandler.h.

Referenced by Get(), and Return().

◆ m_bufferSize

int V4L2encStreamHandler::m_bufferSize {1000 * (int)TSPacket::kSize}
private

Definition at line 101 of file v4l2encstreamhandler.h.

◆ m_desired_stream_type

int V4L2encStreamHandler::m_desired_stream_type {-1}
private

Definition at line 104 of file v4l2encstreamhandler.h.

Referenced by Configure(), and SetOption().

◆ m_stream_type

int V4L2encStreamHandler::m_stream_type {-1}
private

Definition at line 105 of file v4l2encstreamhandler.h.

Referenced by GetStreamType().

◆ m_aspect_ratio

int V4L2encStreamHandler::m_aspect_ratio {-1}
private

Definition at line 106 of file v4l2encstreamhandler.h.

Referenced by Configure(), and SetOption().

◆ m_bitrate_mode

int V4L2encStreamHandler::m_bitrate_mode {V4L2_MPEG_VIDEO_BITRATE_MODE_VBR}
private

Definition at line 107 of file v4l2encstreamhandler.h.

Referenced by Configure(), SetBitrateForResolution(), and SetOption().

◆ m_bitrate

int V4L2encStreamHandler::m_bitrate {-1}
private

Definition at line 108 of file v4l2encstreamhandler.h.

Referenced by Configure(), SetBitrateForResolution(), and SetOption().

◆ m_max_bitrate

int V4L2encStreamHandler::m_max_bitrate {-1}
private

Definition at line 109 of file v4l2encstreamhandler.h.

Referenced by Configure(), SetBitrateForResolution(), and SetOption().

◆ m_audio_codec

int V4L2encStreamHandler::m_audio_codec {-1}
private

Definition at line 110 of file v4l2encstreamhandler.h.

Referenced by Configure(), and SetOption().

◆ m_audio_layer

int V4L2encStreamHandler::m_audio_layer
private

Definition at line 111 of file v4l2encstreamhandler.h.

Referenced by SetLanguageMode(), and SetOption().

◆ m_audio_samplerate

int V4L2encStreamHandler::m_audio_samplerate {-1}
private

Definition at line 112 of file v4l2encstreamhandler.h.

Referenced by Configure(), and SetOption().

◆ m_audio_bitrateL1

int V4L2encStreamHandler::m_audio_bitrateL1 {-1}
private

Definition at line 113 of file v4l2encstreamhandler.h.

Referenced by SetOption().

◆ m_audio_bitrateL2

int V4L2encStreamHandler::m_audio_bitrateL2 {-1}
private

Definition at line 114 of file v4l2encstreamhandler.h.

Referenced by Configure(), and SetOption().

◆ m_audio_bitrateL3

int V4L2encStreamHandler::m_audio_bitrateL3 {-1}
private

Definition at line 115 of file v4l2encstreamhandler.h.

Referenced by SetOption().

◆ m_audio_volume

int V4L2encStreamHandler::m_audio_volume {-1}
private

Definition at line 116 of file v4l2encstreamhandler.h.

Referenced by Configure(), and SetOption().

◆ m_lang_mode

int V4L2encStreamHandler::m_lang_mode {-1}
private

0 is Main Lang; 1 is SAP Lang; 2 is Dual

Definition at line 117 of file v4l2encstreamhandler.h.

Referenced by SetLanguageMode(), and SetOption().

◆ m_low_bitrate_mode

uint V4L2encStreamHandler::m_low_bitrate_mode {V4L2_MPEG_VIDEO_BITRATE_MODE_VBR}
private

Definition at line 118 of file v4l2encstreamhandler.h.

Referenced by SetBitrateForResolution(), and SetOption().

◆ m_low_bitrate

uint V4L2encStreamHandler::m_low_bitrate {(uint)-1}
private

Definition at line 119 of file v4l2encstreamhandler.h.

Referenced by SetBitrateForResolution(), and SetOption().

◆ m_low_peak_bitrate

uint V4L2encStreamHandler::m_low_peak_bitrate {(uint)-1}
private

Definition at line 120 of file v4l2encstreamhandler.h.

Referenced by SetBitrateForResolution(), and SetOption().

◆ m_medium_bitrate_mode

uint V4L2encStreamHandler::m_medium_bitrate_mode {V4L2_MPEG_VIDEO_BITRATE_MODE_VBR}
private

Definition at line 121 of file v4l2encstreamhandler.h.

Referenced by SetBitrateForResolution(), and SetOption().

◆ m_medium_bitrate

uint V4L2encStreamHandler::m_medium_bitrate {(uint)-1}
private

Definition at line 122 of file v4l2encstreamhandler.h.

Referenced by SetBitrateForResolution(), and SetOption().

◆ m_medium_peak_bitrate

uint V4L2encStreamHandler::m_medium_peak_bitrate {(uint)-1}
private

Definition at line 123 of file v4l2encstreamhandler.h.

Referenced by SetBitrateForResolution(), and SetOption().

◆ m_high_bitrate_mode

uint V4L2encStreamHandler::m_high_bitrate_mode {V4L2_MPEG_VIDEO_BITRATE_MODE_VBR}
private

Definition at line 124 of file v4l2encstreamhandler.h.

Referenced by Configure(), SetBitrateForResolution(), and SetOption().

◆ m_high_bitrate

uint V4L2encStreamHandler::m_high_bitrate {(uint)-1}
private

Definition at line 125 of file v4l2encstreamhandler.h.

Referenced by Configure(), SetBitrateForResolution(), and SetOption().

◆ m_high_peak_bitrate

uint V4L2encStreamHandler::m_high_peak_bitrate {(uint)-1}
private

Definition at line 126 of file v4l2encstreamhandler.h.

Referenced by Configure(), SetBitrateForResolution(), and SetOption().

◆ s_audio_rateL1

const int V4L2encStreamHandler::s_audio_rateL1
staticprivate
Initial value:
=
{
32, 64, 96, 128, 160, 192, 224, 256, 288, 320, 352, 384, 416, 448, 0
}

Definition at line 128 of file v4l2encstreamhandler.h.

Referenced by SetOption().

◆ s_audio_rateL2

const int V4L2encStreamHandler::s_audio_rateL2
staticprivate
Initial value:
=
{
32, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, 384, 0
}

Definition at line 129 of file v4l2encstreamhandler.h.

Referenced by SetOption().

◆ s_audio_rateL3

const int V4L2encStreamHandler::s_audio_rateL3
staticprivate
Initial value:
=
{
32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, 0
}

Definition at line 130 of file v4l2encstreamhandler.h.

Referenced by SetOption().

◆ s_stream_types

const char * V4L2encStreamHandler::s_stream_types
staticprivate
Initial value:
=
{
"MPEG-2 PS", "MPEG-2 TS", "MPEG-1 VCD", "PES AV",
"", "PES V", "", "PES A",
"", "", "DVD", "VCD",
"SVCD", "DVD-Special 1", "DVD-Special 2", nullptr
}

Definition at line 131 of file v4l2encstreamhandler.h.

Referenced by SetOption().

◆ s_aspect_ratios

const char* V4L2encStreamHandler::s_aspect_ratios[]
staticprivate

Definition at line 132 of file v4l2encstreamhandler.h.

◆ m_fd

int V4L2encStreamHandler::m_fd {-1}
private

Definition at line 134 of file v4l2encstreamhandler.h.

Referenced by Close(), Open(), StartEncoding(), and StopEncoding().

◆ m_audio_input

int V4L2encStreamHandler::m_audio_input
private

Definition at line 135 of file v4l2encstreamhandler.h.

Referenced by Configure().

◆ m_width

uint V4L2encStreamHandler::m_width {(uint)-1}
private

Definition at line 137 of file v4l2encstreamhandler.h.

Referenced by Configure(), SetBitrateForResolution(), and SetOption().

◆ m_height

uint V4L2encStreamHandler::m_height {(uint)-1}
private

Definition at line 138 of file v4l2encstreamhandler.h.

Referenced by Configure(), SetBitrateForResolution(), and SetOption().

◆ m_has_lock

bool V4L2encStreamHandler::m_has_lock {false}
private

Definition at line 139 of file v4l2encstreamhandler.h.

◆ m_signal_strength

uint V4L2encStreamHandler::m_signal_strength {(uint)-1}
private

Definition at line 140 of file v4l2encstreamhandler.h.

Referenced by GetSignalStrength().

◆ m_v4l2

V4L2util V4L2encStreamHandler::m_v4l2
private

◆ m_drb

DeviceReadBuffer* V4L2encStreamHandler::m_drb {nullptr}
private

Definition at line 143 of file v4l2encstreamhandler.h.

Referenced by Close(), Open(), run(), StartEncoding(), and StopEncoding().

◆ m_vbi_device

QString V4L2encStreamHandler::m_vbi_device
private

Definition at line 146 of file v4l2encstreamhandler.h.

Referenced by Open(), SetBitrateForResolution(), and SetOption().

◆ m_streaming_cnt

QAtomicInt V4L2encStreamHandler::m_streaming_cnt {0}
private

◆ m_stream_lock

QMutex V4L2encStreamHandler::m_stream_lock
private

Definition at line 149 of file v4l2encstreamhandler.h.

Referenced by Open(), StartEncoding(), and StopEncoding().

◆ m_pause_encoding_allowed

bool V4L2encStreamHandler::m_pause_encoding_allowed {true}
private

Definition at line 151 of file v4l2encstreamhandler.h.

Referenced by StartEncoding(), and StopEncoding().


The documentation for this class was generated from the following files: