1 /*****************************************************************************
2 * screen.h: Screen capture module.
3 *****************************************************************************
4 * Copyright (C) 2004-2008 VLC authors and VideoLAN
6 * Authors: Gildas Bazin <gbazin@videolan.org>
7 * Antoine Cellerier <dionoea at videolan dot org>
9 * This program is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU Lesser General Public License as published by
11 * the Free Software Foundation; either version 2.1 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public License
20 * along with this program; if not, write to the Free Software Foundation,
21 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
24 #include <vlc_input.h>
25 #include <vlc_access.h>
26 #include <vlc_demux.h>
29 # define SCREEN_DISPLAY_ID
32 #define SCREEN_SUBSCREEN
36 # include <vlc_image.h>
39 typedef struct screen_data_t screen_data_t
;
47 vlc_tick_t i_next_date
;
52 #ifdef SCREEN_SUBSCREEN
54 unsigned int i_screen_height
;
55 unsigned int i_screen_width
;
59 unsigned int i_height
;
69 #ifdef SCREEN_DISPLAY_ID
70 unsigned int i_display_id
;
71 unsigned int i_screen_index
;
74 screen_data_t
*p_data
;
77 int screen_InitCapture ( demux_t
* );
78 int screen_CloseCapture( demux_t
* );
79 block_t
*screen_Capture( demux_t
* );
81 #ifdef SCREEN_SUBSCREEN
82 void FollowMouse( demux_sys_t
*, int, int );
85 void RenderCursor( demux_t
*, int, int, uint8_t * );