Transport Stream Filter


Data Structures

struct  TSFilter_t
 Structure describing a Transport Stream Filter instance. More...

Defines

#define MAX_FILTERS   20
 Maximum number of filters supported by a TSFilter_t instance.
#define MAX_PACKETS   20
 Maximum number of packets to read from the DVB adapter in one go,.
#define TSFilterLock(tsfilter)   pthread_mutex_lock(&(tsfilter)->mutex)
 Lock access to the TSFilter_t structure to this thread.
#define TSFilterUnLock(tsfilter)   pthread_mutex_unlock(&(tsfilter)->mutex)
 Unlock access to the TSFilter_t structure.

Functions

TSFilter_tTSFilterCreate (DVBAdapter_t *adapter)
 Create a new TSFilter_t instance that is processing packets from the specified DVBAdapter instance.
void TSFilterDestroy (TSFilter_t *tsfilter)
 Stop and Destroy the specified TSFilter_t instance.
void TSFilterEnable (TSFilter_t *tsfilter, bool enable)
 Enable/Disable processing of packets by the specified TSFilter_t instance.
void TSFilterZeroStats (TSFilter_t *tsfilter)
 Zero total packets and bit rate fields as well as all packet statistics fields in all PIDFilters.
void TSFilterMultiplexChanged (TSFilter_t *tsfilter, Multiplex_t *newmultiplex)
 Informs all PID filters that the multiplex has changed to newmultiplex.
PIDFilter_tTSFilterFindPIDFilter (TSFilter_t *tsfilter, const char *name, const char *type)
 Find a PIDFilter_t of the given name and type associated with this TSFilter.

Define Documentation

#define TSFilterLock ( tsfilter   )     pthread_mutex_lock(&(tsfilter)->mutex)

Lock access to the TSFilter_t structure to this thread.

Parameters:
tsfilter The instance to lock access to.

#define TSFilterUnLock ( tsfilter   )     pthread_mutex_unlock(&(tsfilter)->mutex)

Unlock access to the TSFilter_t structure.

Parameters:
tsfilter The instance to unlock access to.


Function Documentation

TSFilter_t* TSFilterCreate ( DVBAdapter_t adapter  ) 

Create a new TSFilter_t instance that is processing packets from the specified DVBAdapter instance.

Parameters:
adapter The DVBAdapter to read packets from.
Returns:
A new TSFilter_t instance or NULL if one could not be created.

void TSFilterDestroy ( TSFilter_t tsfilter  ) 

Stop and Destroy the specified TSFilter_t instance.

Parameters:
tsfilter The TSFilter_t instance to destroy.

void TSFilterEnable ( TSFilter_t tsfilter,
bool  enable 
)

Enable/Disable processing of packets by the specified TSFilter_t instance.

Parameters:
tsfilter The instance to enable or disable packet processing on.
enable TRUE to enable processing packets, FALSE to disable processing.

PIDFilter_t* TSFilterFindPIDFilter ( TSFilter_t tsfilter,
const char *  name,
const char *  type 
)

Find a PIDFilter_t of the given name and type associated with this TSFilter.

Parameters:
tsfilter TSFilter to search.
name Name of the PIDFilter to find.
type Type of the PIDFilter to find.
Returns:
a PIDFilter_t instance or NULL if not found.

void TSFilterMultiplexChanged ( TSFilter_t tsfilter,
Multiplex_t newmultiplex 
)

Informs all PID filters that the multiplex has changed to newmultiplex.

Parameters:
tsfilter TSFilter_t instance to inform.
newmultiplex The new multiplex that the DVB adapter is now tuned to.

void TSFilterZeroStats ( TSFilter_t tsfilter  ) 

Zero total packets and bit rate fields as well as all packet statistics fields in all PIDFilters.

Parameters:
tsfilter TSFilter_t instance to zero the stats of.


Generated on Thu Jun 26 12:58:32 2008 for DVBStreamer by  doxygen 1.5.5