3#ifndef QFFMPEGTHREAD_P_H
4#define QFFMPEGTHREAD_P_H
17#include <QtMultimedia/private/qtmultimediaglobal_p.h>
20#include <qwaitcondition.h>
31
32
33
34
35
36
47
48
52
53
57
58
62
63
64
65
66
67
71
72
73
74
78
79
83
84
85
91 mutable QMutex m_loopDataMutex;
92 QWaitCondition m_condition;
FFmpeg thread that is used to implement a consumer pattern.
virtual bool init()=0
Called on this thread when thread starts.
virtual bool hasData() const =0
Must return true when data is available for processing.
void stopAndDelete()
Stops the thread and deletes this object.
QMutexLocker< QMutex > lockLoopData() const
Locks the loop data mutex.
void dataReady()
Wake thread from sleep and process data until hasData() returns false.
virtual void cleanup()=0
Called on this thread before thread exits.
virtual void processOne()=0
Process one work item.
Combined button and popup list for selecting options.
void operator()(ConsumerThread *thread) const