1 /*****************************************************************************
2 * vout_control.h : Vout control function definitions
3 *****************************************************************************
4 * Copyright (C) 2008 VLC authors and VideoLAN
5 * Copyright (C) 2008 Laurent Aimar
8 * Authors: Laurent Aimar < fenrir _AT_ videolan _DOT_ org >
10 * This program is free software; you can redistribute it and/or modify it
11 * under the terms of the GNU Lesser General Public License as published by
12 * the Free Software Foundation; either version 2.1 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License for more details.
20 * You should have received a copy of the GNU Lesser General Public License
21 * along with this program; if not, write to the Free Software Foundation,
22 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23 *****************************************************************************/
25 #ifndef LIBVLC_VOUT_CONTROL_H
26 #define LIBVLC_VOUT_CONTROL_H 1
28 typedef struct vout_window_mouse_event_t vout_window_mouse_event_t
;
31 * This function will (un)pause the display of pictures.
34 void vout_ChangePause( vout_thread_t
*, bool b_paused
, mtime_t i_date
);
37 * This function will apply an offset on subtitle subpicture.
39 void spu_OffsetSubtitleDate( spu_t
*p_spu
, mtime_t i_duration
);
42 * This function will return and reset internal statistics.
44 void vout_GetResetStatistic( vout_thread_t
*p_vout
, unsigned *pi_displayed
,
48 * This function will ensure that all ready/displayed pictures have at most
51 void vout_Flush( vout_thread_t
*p_vout
, mtime_t i_date
);
54 * Cancel the vout, if cancel is true, it won't return any pictures after this
57 void vout_Cancel( vout_thread_t
*p_vout
, bool b_canceled
);
60 * This function will force to display the next picture while paused
62 void vout_NextPicture( vout_thread_t
*p_vout
, mtime_t
*pi_duration
);
65 * This function will ask the display of the input title
67 void vout_DisplayTitle( vout_thread_t
*p_vout
, const char *psz_title
);
69 void vout_WindowMouseEvent( vout_thread_t
*p_vout
,
70 const vout_window_mouse_event_t
*mouse
);
73 * This function will return true if no more pictures are to be displayed.
75 bool vout_IsEmpty( vout_thread_t
*p_vout
);