]> git.sesse.net Git - vlc/blob - include/vlc_codec_synchro.h
update module LIST file.
[vlc] / include / vlc_codec_synchro.h
1 /*****************************************************************************
2  * vlc_codec_synchro.h: frame-dropping structures
3  *****************************************************************************
4  * Copyright (C) 1999-2005 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Christophe Massiot <massiot@via.ecp.fr>
8  *          Jean-Marc Dressler <polux@via.ecp.fr>
9  *          Stéphane Borel <stef@via.ecp.fr>
10  *
11  * This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 2 of the License, or
14  * (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
24  *****************************************************************************/
25
26 #if !defined( __LIBVLC__ )
27   #error You are not libvlc or one of its plugins. You cannot include this file
28 #endif
29
30 /*****************************************************************************
31  * decoder_synchro_t : timers for the video synchro
32  *****************************************************************************/
33 /* Read the discussion on top of decoder_synchro.c for more information. */
34 /* Pictures types */
35 #define I_CODING_TYPE           1
36 #define P_CODING_TYPE           2
37 #define B_CODING_TYPE           3
38 #define D_CODING_TYPE           4 /* MPEG-1 ONLY */
39 /* other values are reserved */
40
41 /*****************************************************************************
42  * Prototypes
43  *****************************************************************************/
44 VLC_EXPORT( decoder_synchro_t *, decoder_SynchroInit, ( decoder_t *, int ) );
45 VLC_EXPORT( void, decoder_SynchroRelease,        ( decoder_synchro_t * ) );
46 VLC_EXPORT( void, decoder_SynchroReset,          ( decoder_synchro_t * ) );
47 VLC_EXPORT( vlc_bool_t, decoder_SynchroChoose,   ( decoder_synchro_t *, int, int, vlc_bool_t ) );
48 VLC_EXPORT( void, decoder_SynchroTrash,          ( decoder_synchro_t * ) );
49 VLC_EXPORT( void, decoder_SynchroDecode,         ( decoder_synchro_t * ) );
50 VLC_EXPORT( void, decoder_SynchroEnd,            ( decoder_synchro_t *, int, vlc_bool_t ) );
51 VLC_EXPORT( mtime_t, decoder_SynchroDate,        ( decoder_synchro_t * ) );
52 VLC_EXPORT( void, decoder_SynchroNewPicture,     ( decoder_synchro_t *, int, int, mtime_t, mtime_t, int, vlc_bool_t ) );
53