vout_control.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * vout_control.h : Vout control function definitions
00003  *****************************************************************************
00004  * Copyright (C) 2008 VLC authors and VideoLAN
00005  * Copyright (C) 2008 Laurent Aimar
00006  * $Id: 12b057d1f77185ddb2c92a0d1437edf48d86d961 $
00007  *
00008  * Authors: Laurent Aimar < fenrir _AT_ videolan _DOT_ org >
00009  *
00010  * This program is free software; you can redistribute it and/or modify it
00011  * under the terms of the GNU Lesser General Public License as published by
00012  * the Free Software Foundation; either version 2.1 of the License, or
00013  * (at your option) any later version.
00014  *
00015  * This program is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00018  * GNU Lesser General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU Lesser General Public License
00021  * along with this program; if not, write to the Free Software Foundation,
00022  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
00023  *****************************************************************************/
00024 
00025 #ifndef LIBVLC_VOUT_CONTROL_H
00026 #define LIBVLC_VOUT_CONTROL_H 1
00027 
00028 /**
00029  * This function will (un)pause the display of pictures.
00030  * It is thread safe
00031  */
00032 void vout_ChangePause( vout_thread_t *, bool b_paused, mtime_t i_date );
00033 
00034 /**
00035  * This function will apply an offset on subtitle subpicture.
00036  */
00037 void spu_OffsetSubtitleDate( spu_t *p_spu, mtime_t i_duration );
00038 
00039 /**
00040  * This function will return and reset internal statistics.
00041  */
00042 void vout_GetResetStatistic( vout_thread_t *p_vout, int *pi_displayed, int *pi_lost );
00043 
00044 /**
00045  * This function will ensure that all ready/displayed pciture have at most
00046  * the provided dat
00047  */
00048 void vout_Flush( vout_thread_t *p_vout, mtime_t i_date );
00049 
00050 /**
00051  * This function will try to detect if pictures are being leaked. If so it
00052  * will release them.
00053  *
00054  * XXX This function is there to workaround bugs in decoder
00055  */
00056 void vout_FixLeaks( vout_thread_t *p_vout );
00057 
00058 /*
00059  * Reset the states of the vout.
00060  */
00061 void vout_Reset( vout_thread_t *p_vout );
00062 
00063 /**
00064  * This function will force to display the next picture while paused
00065  */
00066 void vout_NextPicture( vout_thread_t *p_vout, mtime_t *pi_duration );
00067 
00068 /**
00069  * This function will ask the display of the input title
00070  */
00071 void vout_DisplayTitle( vout_thread_t *p_vout, const char *psz_title );
00072 
00073 /**
00074  * This function will return true if no more pictures are to be displayed.
00075  */
00076 bool vout_IsEmpty( vout_thread_t *p_vout );
00077 
00078 #endif
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines