]> git.sesse.net Git - vlc/blob - modules/access/screen/screen.h
Update LGPL license blurb, choosing v2.1+.
[vlc] / modules / access / screen / screen.h
1 /*****************************************************************************
2  * screen.h: Screen capture module.
3  *****************************************************************************
4  * Copyright (C) 2004-2008 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Gildas Bazin <gbazin@videolan.org>
8  *          Antoine Cellerier <dionoea at videolan dot org>
9  *
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.
14  *
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.
19  *
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  *****************************************************************************/
24
25 #include <vlc_input.h>
26 #include <vlc_access.h>
27 #include <vlc_demux.h>
28
29 #if !defined( HAVE_BEOS ) && !defined( HAVE_DARWIN )
30 #   define SCREEN_SUBSCREEN
31 #   define SCREEN_MOUSE
32 #endif
33
34 #ifdef SCREEN_MOUSE
35 #   include <vlc_image.h>
36 #endif
37
38 typedef struct screen_data_t screen_data_t;
39
40 struct demux_sys_t
41 {
42     es_format_t fmt;
43     es_out_id_t *es;
44
45     float f_fps;
46     mtime_t i_next_date;
47     int i_incr;
48
49 #ifdef SCREEN_SUBSCREEN
50     bool b_follow_mouse;
51     unsigned int i_screen_height;
52     unsigned int i_screen_width;
53
54     unsigned int i_top;
55     unsigned int i_left;
56     unsigned int i_height;
57     unsigned int i_width;
58 #endif
59
60 #ifdef SCREEN_MOUSE
61     picture_t *p_mouse;
62     filter_t *p_blend;
63     picture_t dst;
64 #endif
65
66     screen_data_t *p_data;
67 };
68
69 int      screen_InitCapture ( demux_t * );
70 int      screen_CloseCapture( demux_t * );
71 block_t *screen_Capture( demux_t * );
72
73 #ifdef SCREEN_SUBSCREEN
74 void FollowMouse( demux_sys_t *, int, int );
75 #endif
76 #ifdef SCREEN_MOUSE
77 void RenderCursor( demux_t *, int, int, uint8_t * );
78 #endif