]> git.sesse.net Git - vlc/blob - src/input/input_pcr.h
Encore un commit venu tout droit des abysses de l'enfer, d�sol� pour
[vlc] / src / input / input_pcr.h
1 /*****************************************************************************
2  * input_pcr.h: PCR management interface
3  *****************************************************************************
4  * Copyright (C) 1999, 2000 VideoLAN
5  *
6  * Authors:
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public
19  * License along with this program; if not, write to the
20  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21  * Boston, MA 02111-1307, USA.
22  *****************************************************************************/
23
24 /* Maximum number of samples used to compute the dynamic average value,
25  * it is also the maximum of c_average in the pcr_descriptor_struct.
26  * We use the following formula :
27  * new_average = (old_average * c_average + new_sample_value) / (c_average +1) */
28 #define PCR_MAX_AVERAGE_COUNTER 40
29
30 /* Maximum gap allowed between two PCRs. */
31 #define PCR_MAX_GAP 1000000
32
33 /* synchro states */
34 #define SYNCHRO_NOT_STARTED 1
35 #define SYNCHRO_START       2
36 #define SYNCHRO_REINIT      3
37
38 /*****************************************************************************
39  * Prototypes
40  *****************************************************************************/
41 int            input_PcrInit        ( input_thread_t *p_input );
42 void           input_PcrDecode      ( input_thread_t *p_input, es_descriptor_t* p_es,
43                                        u8* p_pcr_data );
44 void           input_PcrEnd         ( input_thread_t *p_input );