X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=include%2Fvlc_codec_synchro.h;fp=include%2Fvlc_codec_synchro.h;h=ce07fb263895f74446b70824b3bcbf2432601967;hb=6546eb710a172ee3cf0e772584b485da4983d44d;hp=0000000000000000000000000000000000000000;hpb=02d8f9e7b189521fff5379f8b24f7ebb48eefa6c;p=vlc diff --git a/include/vlc_codec_synchro.h b/include/vlc_codec_synchro.h new file mode 100644 index 0000000000..ce07fb2638 --- /dev/null +++ b/include/vlc_codec_synchro.h @@ -0,0 +1,53 @@ +/***************************************************************************** + * vlc_codec_synchro.h: frame-dropping structures + ***************************************************************************** + * Copyright (C) 1999-2005 the VideoLAN team + * $Id$ + * + * Authors: Christophe Massiot + * Jean-Marc Dressler + * Stéphane Borel + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. + *****************************************************************************/ + +#if !defined( __LIBVLC__ ) + #error You are not libvlc or one of its plugins. You cannot include this file +#endif + +/***************************************************************************** + * decoder_synchro_t : timers for the video synchro + *****************************************************************************/ +/* Read the discussion on top of decoder_synchro.c for more information. */ +/* Pictures types */ +#define I_CODING_TYPE 1 +#define P_CODING_TYPE 2 +#define B_CODING_TYPE 3 +#define D_CODING_TYPE 4 /* MPEG-1 ONLY */ +/* other values are reserved */ + +/***************************************************************************** + * Prototypes + *****************************************************************************/ +VLC_EXPORT( decoder_synchro_t *, decoder_SynchroInit, ( decoder_t *, int ) ); +VLC_EXPORT( void, decoder_SynchroRelease, ( decoder_synchro_t * ) ); +VLC_EXPORT( void, decoder_SynchroReset, ( decoder_synchro_t * ) ); +VLC_EXPORT( vlc_bool_t, decoder_SynchroChoose, ( decoder_synchro_t *, int, int, vlc_bool_t ) ); +VLC_EXPORT( void, decoder_SynchroTrash, ( decoder_synchro_t * ) ); +VLC_EXPORT( void, decoder_SynchroDecode, ( decoder_synchro_t * ) ); +VLC_EXPORT( void, decoder_SynchroEnd, ( decoder_synchro_t *, int, vlc_bool_t ) ); +VLC_EXPORT( mtime_t, decoder_SynchroDate, ( decoder_synchro_t * ) ); +VLC_EXPORT( void, decoder_SynchroNewPicture, ( decoder_synchro_t *, int, int, mtime_t, mtime_t, int, vlc_bool_t ) ); +