Valkka  1.6.1
OpenSource Video Management
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
FrameFilter Class Referenceabstract

The mother class of all frame filters!
FrameFilters are used to create "filter chains". More...

#include <framefilter.h>

Inheritance diagram for FrameFilter:
Inheritance graph
[legend]
Collaboration diagram for FrameFilter:
Collaboration graph
[legend]

Public Member Functions

 FrameFilter (const char *name, FrameFilter *next=NULL)
 Default constructor. More...
 
virtual ~FrameFilter ()
 Virtual destructor // <pyapi>
 
virtual void run (Frame *frame)
 Calls this->go(Frame* frame) and then calls the this->next->run(Frame* frame) (if this->next != NULL)
 
void setVoid ()
 nullifies the next framefilter in the chain -> cuts the framefilter chain
 

Public Attributes

std::string name
 
FrameFilternext
 The next frame filter in the chain to be applied.
 

Protected Member Functions

virtual void go (Frame *frame)=0
 Does the actual filtering/modification to the Frame. Define in subclass.
 

Detailed Description

The mother class of all frame filters!
FrameFilters are used to create "filter chains".

These chains can be used to manipulate the frames, feed them to fifo's, copy them, etc.

Constructor & Destructor Documentation

◆ FrameFilter()

FrameFilter::FrameFilter ( const char *  name,
FrameFilter next = NULL 
)

Default constructor.

Parameters
nameName of the filter
nextNext FrameFilter instance in the filter chain

The documentation for this class was generated from the following files: