1 #ifndef AVTHREAD_HEADER_GUARD 2 #define AVTHREAD_HEADER_GUARD 84 bool use_time_correction;
102 void handleSignals();
111 void setTimeCorrection(
bool val);
std::string name
Name of the thread.
Definition: thread.h:121
void sendSignal(AVSignalContext signal_ctx)
Redefined : Thread::SignalContext has been changed to AVThread::SignalContext.
Definition: avthread.cpp:331
FrameFifo infifo
Incoming frames are read from here.
Definition: avthread.h:71
void setNumberOfThreads(int n_threads)
Set number of decoding threads.
Definition: avthread.cpp:366
AbstractFileState state
Seek, play, stop or what.
Definition: avthread.h:80
Describes the stack structure and fifo behaviour for a FrameFifo.
Definition: framefifo.h:45
Constant/default values, version numbers.
bool is_decoding
should currently decode or not
Definition: avthread.h:87
AVThread(const char *name, FrameFilter &outfilter, FrameFifoContext fifo_ctx=FrameFifoContext())
Default constructor.
Definition: avthread.cpp:38
A thread-safe combination of a fifo (first-in-first-out) queue and an associated stack.
Definition: framefifo.h:72
BlockingFifoFrameFilter infilter_block
Incoming frames can also be written here. If stack runs out of frames, writing will block...
Definition: avthread.h:73
void decodingOnCall()
API method: enable decoding // <pyapi>
Definition: avthread.cpp:370
~AVThread()
Default destructor. Calls AVThread::stopCall // <pyapi>
Definition: avthread.cpp:49
void postRun()
Called after the main execution loop exits, but before joining the thread.
Definition: avthread.cpp:302
void decodingOffCall()
API method: pause decoding // <pyapi>
Definition: avthread.cpp:377
Redefinition of characteristic signal contexts (info that goes with the signal) for AVThread thread...
Definition: threadsignal.h:78
Corrects erroneous timestamps (while preserving timestamp distances).
Definition: framefilter.h:337
FrameFilter & outfilter
Outgoing, decoded frames are written here.
Definition: avthread.h:77
Base class for multithreading.
Passes frames to a multiprocessing fifo.
Definition: framefilter.h:585
FifoFrameFilter infilter
Write incoming frames here.
Definition: avthread.h:72
std::deque< AVSignalContext > signal_fifo
Redefinition of signal fifo.
Definition: avthread.h:90
void requestStopCall()
API method: Like Thread::stopCall() but does not block. // <pyapi>
Definition: avthread.cpp:397
long int mstimetolerance
Drop frames if they are in milliseconds this much late.
Definition: avthread.h:79
A thread consuming frames and feeding them to various encoders.
Definition: avthread.h:57
void run()
Main execution loop is defined here.
Definition: avthread.cpp:64
int n_threads
Number of decoding threads.
Definition: avthread.h:74
Definition of FrameFilter and derived classes for various purposes.
A class for multithreading with a signaling system.
Definition: thread.h:90
std::vector< Decoder * > decoders
A vector/list of registered and instantiated decoders.
Definition: avthread.h:78
void preRun()
Called before entering the main execution loop, but after creating the thread.
Definition: avthread.cpp:296
Passes frames to a FrameFifo.
Definition: framefilter.h:560
AbstractFileState
Describes the state of a stream.
Definition: threadsignal.h:43
The mother class of all frame filters! FrameFilters are used to create "filter chains".
Definition: framefilter.h:46
void setTimeTolerance(long int mstol)
API method: decoder will scrap late frames that are mstol milliseconds late. Call before starting the...
Definition: avthread.cpp:317