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

Replicates frame flow to arbitrary number of outputs. More...

#include <framefilter.h>

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

Public Member Functions

 ForkFrameFilterN (const char *name)
 Default ctor. More...
 
virtual ~ForkFrameFilterN ()
 Default virtual dtor.
 
void run (Frame *frame)
 called by other FrameFilter(s)
 
bool connect (const char *tag, FrameFilter *filter)
 Connect a new terminal FrameFilter. More...
 
bool disconnect (const char *tag)
 Disconnect a connection tagged with a name. More...
 
- Public Member Functions inherited from FrameFilter
 FrameFilter (const char *name, FrameFilter *next=NULL)
 Default constructor. More...
 
virtual ~FrameFilter ()
 Virtual destructor // <pyapi>
 
void setVoid ()
 nullifies the next framefilter in the chain -> cuts the framefilter chain
 

Protected Member Functions

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

Protected Attributes

std::mutex mutex
 
std::map< std::string, FrameFilter * > framefilters
 nametag to connecting FrameFilter mapping
 

Additional Inherited Members

- Public Attributes inherited from FrameFilter
std::string name
 
FrameFilternext
 The next frame filter in the chain to be applied.
 

Detailed Description

Replicates frame flow to arbitrary number of outputs.

Constructor & Destructor Documentation

◆ ForkFrameFilterN()

ForkFrameFilterN::ForkFrameFilterN ( const char *  name)

Default ctor.

Parameters
nameName identifying this FrameFilter

Member Function Documentation

◆ connect()

bool ForkFrameFilterN::connect ( const char *  tag,
FrameFilter filter 
)

Connect a new terminal FrameFilter.

Tag the connection with a name.

Parameters
tagNametag for this connection
filterFrameFilter for the connection

◆ disconnect()

bool ForkFrameFilterN::disconnect ( const char *  tag)

Disconnect a connection tagged with a name.

Parameters
tagNametag for this connection

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