1 #ifndef avfilethread_HEADER_GUARD 2 #define avfilethread_HEADER_GUARD 70 filename(filename), slot(slot), framefilter(framefilter), seektime_(st),
73 FileContext() : filename(
""), slot(0), framefilter(NULL), seektime_(0),
97 AVFormatContext *input_context;
101 AVBitStreamFilterContext *annexb;
132 AVFormatContext *input_context;
133 std::vector<AVBitStreamFilterContext*> filters;
146 SlotNumber getSlot() {
return ctx.
slot;}
149 void setRefMstime(
long int ms_streamtime_);
150 void seek(
long int ms_streamtime_);
153 long int update(
long int mstimestamp);
154 long int pullNextFrame();
236 void handleSignals();
239 int safeGetSlot (SlotNumber slot,
FileStream*& stream);
252 void requestStopCall();
AVPacket * avpkt
Data for the next frame in ffmpeg AVPacket format.
Definition: avfilethread.h:143
long int seektime_
incoming: used by signal seek_stream // <pyapi>
Definition: avfilethread.h:79
FrameFilter * framefilter
incoming: the frames are feeded into this FrameFilter // <pyapi>
Definition: avfilethread.h:78
long int duration
outgoing: duration of the stream // <pyapi>
Definition: avfilethread.h:80
std::string filename
incoming: the filename // <pyapi>
Definition: avfilethread.h:76
FrameFifo infifo
A FrameFifo for incoming frames.
Definition: avfilethread.h:208
std::deque< FileSignalContext > signal_fifo
Redefinition of signal fifo (Thread::signal_fifo is now hidden from usage)
Definition: avfilethread.h:212
This class in analogous to LiveThread, but it handles files instead of live streams.
Definition: avfilethread.h:196
Describes the stack structure and fifo behaviour for a FrameFifo.
Definition: framefifo.h:45
signal to AVThread or OpenGLThread. Also custom signals to custom Threads
FileState
Describes the state of a FileStream.
Definition: avfilethread.h:51
FileState status
outgoing: status of the file // <pyapi>
Definition: avfilethread.h:82
Custom payload Frame.
Definition: frame.h:160
Identifies the information the signals FileSignal carry.
Definition: avfilethread.h:178
long int mstimestamp
outgoing: current position of the stream (stream time) // <pyapi>
Definition: avfilethread.h:81
A thread-safe combination of a fifo (first-in-first-out) queue and an associated stack.
Definition: framefifo.h:72
SetupFrame setupframe
Setup frame written to the filterchain.
Definition: avfilethread.h:136
long int frame_mstimestamp_
Timestamp of previous frame sent, -1 means there was no previous frame (underscore means stream time)...
Definition: avfilethread.h:141
FifoFrameFilter infilter
A FrameFilter for writing incoming frames.
Definition: avfilethread.h:209
FileSignal
Characteristic signals for the FileThread.
Definition: avfilethread.h:163
undefined (initial value)
Definition: usbthread.h:143
SlotNumber slot
incoming: a unique stream slot that identifies this stream // <pyapi>
Definition: avfilethread.h:77
Base class for multithreading.
BasicFrame out_frame
This frame is written to the filterchain (i.e. to FileStream::ctx and there to FileContext::framefilt...
Definition: avfilethread.h:137
This class in analogous to the Connection class in live streams.
Definition: avfilethread.h:120
FileContext()
Dummy constructor. Set values by manipulating members // <pyapi>
Definition: avfilethread.h:73
long int reftime
Relation between the stream time and wallclock time. See Presention timing and playing.
Definition: avfilethread.h:139
FileState state
Decribes the FileStream state: errors, stopped, playing, etc.
Definition: avfilethread.h:142
bool loop
Controls the execution of the main loop.
Definition: avfilethread.h:218
std::list< SlotNumber > active_slots
Slots that are activated.
Definition: avfilethread.h:217
FileContext & ctx
FileContext describing this stream.
Definition: avfilethread.h:131
long int target_mstimestamp_
Where the stream would like to be (underscore means stream time)
Definition: avfilethread.h:140
Definition of FrameFilter and derived classes for various purposes.
query information about the stream
FileContext(std::string filename, SlotNumber slot, FrameFilter *framefilter, long int st=0)
Default constructor // <pyapi>
Definition: avfilethread.h:69
Setup frame.
Definition: frame.h:270
A class for multithreading with a signaling system.
Definition: thread.h:90
Passes frames to a FrameFifo.
Definition: framefilter.h:560
long int duration
Duration of the stream.
Definition: avfilethread.h:138
Definition: avfilethread.h:87
This class descibes the origin and state of a FileStream.
Definition: avfilethread.h:68
The mother class of all frame filters! FrameFilters are used to create "filter chains".
Definition: framefilter.h:46
FileContext * file_context
pointer, cause we have return values
Definition: avfilethread.h:180
AVPacket * avpkt
Data for the next frame in ffmpeg AVPacket format.
Definition: avfilethread.h:100
std::vector< FileStream * > slots_
Slots: a vector of FileStream instances.
Definition: avfilethread.h:215