1 /*****************************************************************************
2 * screen.h: Screen capture module.
3 *****************************************************************************
4 * Copyright (C) 2004-2008 the VideoLAN team
7 * Authors: Gildas Bazin <gbazin@videolan.org>
8 * Antoine Cellerier <dionoea at videolan dot org>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 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 General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23 *****************************************************************************/
25 #include <vlc_input.h>
26 #include <vlc_access.h>
27 #include <vlc_demux.h>
29 #if !defined( HAVE_DARWIN )
30 # define SCREEN_SUBSCREEN
35 # include <vlc_image.h>
38 typedef struct screen_data_t screen_data_t;
49 #ifdef SCREEN_SUBSCREEN
51 unsigned int i_screen_height;
52 unsigned int i_screen_width;
56 unsigned int i_height;
66 screen_data_t *p_data;
69 int screen_InitCapture ( demux_t * );
70 int screen_CloseCapture( demux_t * );
71 block_t *screen_Capture( demux_t * );
73 #ifdef SCREEN_SUBSCREEN
74 void FollowMouse( demux_sys_t *, int, int );
77 void RenderCursor( demux_t *, int, int, uint8_t * );