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

Switch between two input streams. More...

#include <framefilterset.h>

Collaboration diagram for Switch:
Collaboration graph
[legend]

Public Member Functions

 Switch (const char *name, FrameFilter *next=NULL)
 Default ctor. More...
 
void setChannel (int i)
 
int getCurrentChannel ()
 
FrameFiltergetInputChannel (int i)
 

Protected Attributes

std::string name
 
CachingGateFrameFilter channel0
 Input framefilter for channel 0.
 
CachingGateFrameFilter channel1
 Input framefilter for channel 1.
 
int n_channel
 Current active channel.
 

Detailed Description

Switch between two input streams.

The idea is this:

*  filter_chain_0 ----> +--------+
*                       |        |
*                       | Switch | -----> output_filter_chain
*                       |        |
*  filter_chain_1 ----> +--------+
* 

Constructor & Destructor Documentation

◆ Switch()

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

Default ctor.

Parameters
nameName of the switch
nextOutput FrameFilter

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