1 #ifndef filestream_HEADER_GUARD 2 #define filestream_HEADER_GUARD 121 long int update(
long int mstimestamp);
123 virtual void seek(
long int ms_streamtime_);
152 virtual void preRun();
153 virtual void postRun();
long int reftime
Relation between the stream time and wallclock time. See Presention timing and playing.
Definition: filestream.h:107
void setRefMstime(long int ms_streamtime_)
Creates a correspondence with the current wallclock time and a desider stream time, by calculating FileStream::reftime. See Presention timing and playing.
Definition: filestream.cpp:46
Describes the stack structure and fifo behaviour for a FrameFifo.
Definition: framefifo.h:45
Custom payload Frame.
Definition: frame.h:160
FifoFrameFilter infilter
Write incoming frames here.
Definition: filestream.h:149
Frame * next_frame
Pointer to the next frame about to be presented.
Definition: filestream.h:111
A thread-safe combination of a fifo (first-in-first-out) queue and an associated stack.
Definition: framefifo.h:72
Base class for multithreading.
FrameFifo infifo
Incoming frames are read from here.
Definition: filestream.h:148
BasicFrame out_frame
BasicFrame payload that's passed on to the filterchain.
Definition: filestream.h:112
void stop()
Stop playing the strem.
Definition: filestream.cpp:57
virtual void seek(long int ms_streamtime_)
Seek to a desider stream time.
Definition: filestream.cpp:83
long int frame_mstimestamp_
Timestamp of previous frame sent, -1 means there was no previous frame (underscore means stream time)...
Definition: filestream.h:109
Definition of FrameFilter and derived classes for various purposes.
virtual long int pullNextFrame()
Tries to achieve FileStream::target_mstimestamp_ . Sends frames whose timestamps are less than that t...
Definition: filestream.cpp:114
long int target_mstimestamp_
Where the stream would like to be (underscore means stream time)
Definition: filestream.h:108
A class for multithreading with a signaling system.
Definition: thread.h:90
AbstractFileState state
Decribes the FileStream state: errors, stopped, playing, etc.
Definition: filestream.h:110
Frame: An abstract queueable class.
Definition: frame.h:108
long int update(long int mstimestamp)
Tries to achieve mstimestamp: calculates FileStream::target_mstimestamp_ and calls pullNextFrame...
Definition: filestream.cpp:62
Passes frames to a FrameFifo.
Definition: framefilter.h:560
AbstractFileStream()
Default constructor.
Definition: filestream.cpp:38
This class uses AbstractFileStream(s)
Definition: filestream.h:136
AbstractFileState
Describes the state of a stream.
Definition: threadsignal.h:43
void play()
Start playing the stream.
Definition: filestream.cpp:51
A general class for on-disk stored streams.
Definition: filestream.h:97