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_t * | TSFilterCreate (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_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. |
#define TSFilterLock | ( | tsfilter | ) | pthread_mutex_lock(&(tsfilter)->mutex) |
Lock access to the TSFilter_t structure to this thread.
tsfilter | The instance to lock access to. |
#define TSFilterUnLock | ( | tsfilter | ) | pthread_mutex_unlock(&(tsfilter)->mutex) |
TSFilter_t* TSFilterCreate | ( | DVBAdapter_t * | adapter | ) |
Create a new TSFilter_t instance that is processing packets from the specified DVBAdapter instance.
adapter | The DVBAdapter to read packets from. |
void TSFilterDestroy | ( | TSFilter_t * | tsfilter | ) |
Stop and Destroy the specified TSFilter_t instance.
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.
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.
tsfilter | TSFilter to search. | |
name | Name of the PIDFilter to find. | |
type | Type of the PIDFilter to find. |
void TSFilterMultiplexChanged | ( | TSFilter_t * | tsfilter, | |
Multiplex_t * | newmultiplex | |||
) |
Informs all PID filters that the multiplex has changed to newmultiplex.
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.
tsfilter | TSFilter_t instance to zero the stats of. |