1 #ifndef fileframefilter_HEADER_GUARD
2 #define fileframefilter_HEADER_GUARD
143 std::string filename;
147 std::vector<AVCodecContext*> codec_contexes;
148 std::vector<AVStream*> streams;
149 AVFormatContext *av_format_context;
Custom payload Frame.
Definition: frame.h:166
Pipe stream into a matroska (mkv) file.
Definition: fileframefilter.h:124
long int zerotime
Start time set explicitly by the user.
Definition: fileframefilter.h:141
bool active
Writing to file has been requested (but not necessarily achieved..)
Definition: fileframefilter.h:137
void initFile()
Open file, reserve codec_contexes, streams, write preamble, set initialized=true if success.
Definition: fileframefilter.cpp:185
bool ready
Got enough setup frames.
Definition: fileframefilter.h:138
void deActivate()
Stop streaming to disk // <pyapi>
Definition: fileframefilter.cpp:374
long int mstimestamp0
Time of activation (i.e. when the recording started)
Definition: fileframefilter.h:140
bool initialized
File was opened ok : codec_contexes, streams and av_format_context reserved (should be freed at some ...
Definition: fileframefilter.h:139
std::condition_variable condition
Condition variable for the mutex.
Definition: fileframefilter.h:154
std::mutex mutex
Mutex protecting the "active" boolean.
Definition: fileframefilter.h:153
void activate(const char *fname, long int zerotime=0)
Request streaming to disk asap (when config frames have arrived) // <pyapi>
Definition: fileframefilter.cpp:361
void go(Frame *frame)
Does the actual filtering/modification to the Frame. Define in subclass.
Definition: fileframefilter.cpp:126
std::vector< SetupFrame > setupframes
deep copies of the arrived setup frames
Definition: fileframefilter.h:157
~FileFrameFilter()
Default destructor.
Definition: fileframefilter.cpp:110
void closeFile()
Close file, dealloc codec_contexes, streams.
Definition: fileframefilter.cpp:300
FileFrameFilter(const char *name, FrameFilter *next=NULL)
Default constructor.
Definition: fileframefilter.cpp:97
BasicFrame internal_frame
copy of the arrived frame and payload
Definition: fileframefilter.h:158
The mother class of all frame filters! FrameFilters are used to create "filter chains".
Definition: framefilter.h:44
FrameFilter * next
The next frame filter in the chain to be applied.
Definition: framefilter.h:60
Frame: An abstract queueable class.
Definition: frame.h:112
Add state information to stream.
Definition: fileframefilter.h:70
std::vector< SetupFrame > setupframes
cached setupframes
Definition: fileframefilter.h:77
void run(Frame *frame)
Calls this->go(Frame* frame) and then calls the this->next->run(Frame* frame) (if this->next !...
Definition: fileframefilter.cpp:51
void go(Frame *frame)
Does the actual filtering/modification to the Frame. Define in subclass.
Definition: fileframefilter.cpp:47
Constant/default values, version numbers.
Definition of FrameFilter and derived classes for various purposes.