1 #ifndef framefilter_HEADER_GUARD 2 #define framefilter_HEADER_GUARD 64 virtual void go(
Frame* frame) = 0;
233 bool connect (
const char* tag,
FrameFilter* filter);
239 bool disconnect (
const char* tag);
325 long int mstime_delta;
343 long int mstime_delta;
345 long int savedtimestamp;
416 void passConfigFrames();
417 void noConfigFrames();
520 void setSlot(SlotNumber n=0);
541 long int mstimedelta;
542 long int prevmstimestamp;
virtual ~FrameFilter()
Virtual destructor // <pyapi>
Definition: framefilter.cpp:42
Custom payload Frame.
Definition: frame.h:160
Changes the slot number of the Frame.
Definition: framefilter.h:507
Thread safe system of fifo and a stack.
virtual void go(Frame *frame)=0
Does the actual filtering/modification to the Frame. Define in subclass.
A "hello world" demo class: prints its own name if verbose is set to true.
Definition: framefilter.h:76
A thread-safe combination of a fifo (first-in-first-out) queue and an associated stack.
Definition: framefifo.h:72
For H264, some cameras don't send sps and pps packets again before every keyframe.
Definition: framefilter.h:371
int target_height
target frame height
Definition: framefilter.h:616
Corrects erroneous timestamps (while preserving timestamp distances).
Definition: framefilter.h:337
Passes frames to a multiprocessing fifo.
Definition: framefilter.h:585
FrameFilter * next
The next frame filter in the chain to be applied.
Definition: framefilter.h:60
SwsContext * sws_ctx
FFmpeg scaling context structure.
Definition: framefilter.h:620
Interpolate from YUV bitmap to RGB.
Definition: framefilter.h:608
FrameFilter s that are fed from various different threads, should be protected with this...
Definition: framefilter.h:125
Passes through frames of certain type only.
Definition: framefilter.h:454
FrameFilter(const char *name, FrameFilter *next=NULL)
Default constructor.
Definition: framefilter.cpp:39
Replicates frame flow to arbitrary number of outputs.
Definition: framefilter.h:203
Passes frame to one of the two terminals.
Definition: framefilter.h:425
virtual void run(Frame *frame)
Calls this->go(Frame* frame) and then calls the this->next->run(Frame* frame) (if this->next != NULL)...
Definition: framefilter.cpp:45
Sets the frame slot value.
Definition: framefilter.h:248
Dumps each received packet to a file: use with care! For debugging purposes only. ...
Definition: framefilter.h:285
FrameClass
Enumeration of Frame classes used by Valkka.
Definition: frame.h:51
Replicates frame flow to three filters Use this frame filter to create frame filter tree structures...
Definition: framefilter.h:174
Passes through frames with a certain slot number only.
Definition: framefilter.h:266
Counts frames passed through this filter.
Definition: framefilter.h:302
When turned on, passes frames.
Definition: framefilter.h:397
Substitute timestamps with the time they arrive to the client.
Definition: framefilter.h:355
int target_width
target frame width
Definition: framefilter.h:615
Caches SetupFrame s.
Definition: framefilter.h:474
Setup frame.
Definition: frame.h:270
Decoded YUV frame in a non-planar format (thus "NP")
Definition: frame.h:430
Corrects erroneous timestamps (while preserving timestamp distances).
Definition: framefilter.h:319
Frame: An abstract queueable class.
Definition: frame.h:108
Passes frames to a FrameFifo.
Definition: framefilter.h:560
std::map< std::string, FrameFilter * > framefilters
nametag to connecting FrameFilter mapping
Definition: framefilter.h:218
Dump the beginning of Frame's payload into stdout.
Definition: framefilter.h:93
The mother class of all frame filters! FrameFilters are used to create "filter chains".
Definition: framefilter.h:46
Pass frames, but not all of them - only on regular intervals.
Definition: framefilter.h:535
Replicates frame flow to two filters Use this frame filter to create frame filter tree structures...
Definition: framefilter.h:149
Dump the beginning of Frame's payload into stdout in a one-liner.
Definition: framefilter.h:106