libdvbpsi 0.2.0
Data Structures | Defines | Typedefs | Functions | Variables
pmt.h File Reference

Application interface for the PMT decoder and the PMT generator. More...

Go to the source code of this file.

Data Structures

struct  dvbpsi_pmt_es_s
 PMT ES structure. More...
struct  dvbpsi_pmt_s
 PMT structure. More...

Defines

#define dvbpsi_NewPMT(p_pmt, i_program_number,i_version, b_current_next, i_pcr_pid)
 Allocate and initialize a new dvbpsi_pmt_t structure.
#define dvbpsi_DeletePMT(p_pmt)
 Clean and free a dvbpsi_pmt_t structure.

Typedefs

typedef struct dvbpsi_pmt_es_s dvbpsi_pmt_es_t
 dvbpsi_pmt_es_t type definition.
typedef struct dvbpsi_pmt_s dvbpsi_pmt_t
 dvbpsi_pmt_t type definition.
typedef void(* dvbpsi_pmt_callback )(void *p_cb_data, dvbpsi_pmt_t *p_new_pmt)
 Callback type definition.

Functions

 __attribute__ ((deprecated)) dvbpsi_handle dvbpsi_AttachPMT(uint16_t i_program_number

Variables

dvbpsi_pmt_callback pf_callback
dvbpsi_pmt_callback void * p_cb_data
uint16_t i_program_number
uint16_t uint8_t i_version
uint16_t uint8_t int b_current_next
uint16_t uint8_t int uint16_t i_pcr_pid
uint8_t i_tag
uint8_t uint8_t i_length
uint8_t uint8_t uint8_t * p_data
uint8_t i_type
uint8_t uint16_t i_pid

Detailed Description

Application interface for the PMT decoder and the PMT generator.

>

Author:
Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr> Application interface for the PMT decoder and the PMT generator. New decoded PMT tables are sent by callback to the application.

Define Documentation

#define dvbpsi_DeletePMT (   p_pmt)
Value:
do {                                                                    \
  dvbpsi_EmptyPMT(p_pmt);                                               \
  free(p_pmt);                                                          \
} while(0);

Clean and free a dvbpsi_pmt_t structure.

Parameters:
p_pmtpointer to the PMT structure
Returns:
nothing.
#define dvbpsi_NewPMT (   p_pmt,
  i_program_number,
  i_version,
  b_current_next,
  i_pcr_pid 
)
Value:
do {                                                                    \
  p_pmt = (dvbpsi_pmt_t*)malloc(sizeof(dvbpsi_pmt_t));                  \
  if(p_pmt != NULL)                                                     \
    dvbpsi_InitPMT(p_pmt, i_program_number, i_version, b_current_next,  \
                   i_pcr_pid);                                          \
} while(0);

Allocate and initialize a new dvbpsi_pmt_t structure.

Parameters:
p_pmtpointer to the PMT structure
i_program_numberprogram number
i_versionPMT version
b_current_nextcurrent next indicator
i_pcr_pidPCR_PID
Returns:
nothing.