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_);
A general class for on-disk stored streams.
Definition: filestream.h:97
long int frame_mstimestamp_
Timestamp of previous frame sent, -1 means there was no previous frame (underscore means stream time)
Definition: filestream.h:109
long int target_mstimestamp_
Where the stream would like to be (underscore means stream time)
Definition: filestream.h:108
BasicFrame out_frame
BasicFrame payload that's passed on to the filterchain.
Definition: filestream.h:112
AbstractFileState state
Decribes the FileStream state: errors, stopped, playing, etc.
Definition: filestream.h:110
AbstractFileStream()
Default constructor.
Definition: filestream.cpp:38
Frame * next_frame
Pointer to the next frame about to be presented.
Definition: filestream.h:111
void play()
Start playing the stream.
Definition: filestream.cpp:51
void stop()
Stop playing the strem.
Definition: filestream.cpp:57
void setRefMstime(long int ms_streamtime_)
Creates a correspondence with the current wallclock time and a desider stream time,...
Definition: filestream.cpp:46
long int reftime
Relation between the stream time and wallclock time. See Presention timing and playing.
Definition: filestream.h:107
virtual void seek(long int ms_streamtime_)
Seek to a desider stream time.
Definition: filestream.cpp:83
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 update(long int mstimestamp)
Tries to achieve mstimestamp: calculates FileStream::target_mstimestamp_ and calls pullNextFrame....
Definition: filestream.cpp:62
This class uses AbstractFileStream(s)
Definition: filestream.h:136
FrameFifo infifo
Incoming frames are read from here.
Definition: filestream.h:148
AbstractFileThread(const char *name, FrameFifoContext fifo_ctx=FrameFifoContext(10))
Default constructor.
Definition: filestream.cpp:192
virtual void preRun()
Called before entering the main execution loop, but after creating the thread.
Definition: filestream.cpp:229
virtual void run()
Main execution loop is defined here.
Definition: filestream.cpp:226
FifoFrameFilter infilter
Write incoming frames here.
Definition: filestream.h:149
virtual void postRun()
Called after the main execution loop exits, but before joining the thread.
Definition: filestream.cpp:232
Custom payload Frame.
Definition: frame.h:166
Passes frames to a FrameFifo.
Definition: framefilter.h:530
A thread-safe combination of a fifo (first-in-first-out) queue and an associated stack.
Definition: framefifo.h:83
Frame: An abstract queueable class.
Definition: frame.h:112
A class for multithreading with a signaling system.
Definition: thread.h:87
std::string name
Name of the thread.
Definition: thread.h:116
Definition of FrameFilter and derived classes for various purposes.
AbstractFileState
Describes the state of a stream.
Definition: threadsignal.h:43
Describes the stack structure and fifo behaviour for a FrameFifo.
Definition: framefifo.h:56
Base class for multithreading.