1 /*******************************************************************************
2 * input_pcr.h: PCR management interface
4 *******************************************************************************/
6 /* Maximum number of samples used to compute the dynamic average value,
7 * it is also the maximum of c_average in the pcr_descriptor_struct.
8 * We use the following formula :
9 * new_average = (old_average * c_average + new_sample_value) / (c_average +1) */
10 #define PCR_MAX_AVERAGE_COUNTER 40
12 /* Maximum gap allowed between two PCRs. */
13 #define PCR_MAX_GAP 1000000
16 #define SYNCHRO_NOT_STARTED 1
17 #define SYNCHRO_START 2
18 #define SYNCHRO_REINIT 3
20 /******************************************************************************
22 ******************************************************************************/
23 int input_PcrInit ( input_thread_t *p_input );
24 void input_PcrDecode ( input_thread_t *p_input, es_descriptor_t* p_es,
26 void input_PcrEnd ( input_thread_t *p_input );