input_pcr.h 1.13 KB
Newer Older
Michel Kaempf's avatar
Michel Kaempf committed
1 2 3 4 5 6 7 8 9 10 11
/*******************************************************************************
 * input_pcr.h: PCR management interface
 * (c)1999 VideoLAN
 *******************************************************************************/

/* Maximum number of samples used to compute the dynamic average value,
 * it is also the maximum of c_average in the pcr_descriptor_struct.
 * We use the following formula :
 * new_average = (old_average * c_average + new_sample_value) / (c_average +1) */
#define PCR_MAX_AVERAGE_COUNTER 40

12
/* Maximum gap allowed between two PCRs. */
Jean-Marc Dressler's avatar
 
Jean-Marc Dressler committed
13 14
#define PCR_MAX_GAP 1000000

15 16 17 18 19
/* synchro states */
#define SYNCHRO_NOT_STARTED 1
#define SYNCHRO_START       2
#define SYNCHRO_REINIT      3

Michel Kaempf's avatar
Michel Kaempf committed
20 21 22 23 24 25
/******************************************************************************
 * Prototypes
 ******************************************************************************/
int            input_PcrInit        ( input_thread_t *p_input );
void           input_PcrDecode      ( input_thread_t *p_input, es_descriptor_t* p_es, 
                                       u8* p_pcr_data );
26
void           input_PcrEnd         ( input_thread_t *p_input );