]> git.sesse.net Git - vlc/blob - include/input_pcr.h
b25dff0cde4a735d0cc4f915c6dfdbd9b62b57d7
[vlc] / include / input_pcr.h
1 /*****************************************************************************
2  * input_pcr.h: PCR management interface
3  * (c)1999 VideoLAN
4  *****************************************************************************/
5
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
11
12 /* Maximum gap allowed between two PCRs. */
13 #define PCR_MAX_GAP 1000000
14
15 /* synchro states */
16 #define SYNCHRO_NOT_STARTED 1
17 #define SYNCHRO_START       2
18 #define SYNCHRO_REINIT      3
19
20 /*****************************************************************************
21  * Prototypes
22  *****************************************************************************/
23 int            input_PcrInit        ( input_thread_t *p_input );
24 void           input_PcrDecode      ( input_thread_t *p_input, es_descriptor_t* p_es,
25                                        u8* p_pcr_data );
26 void           input_PcrEnd         ( input_thread_t *p_input );