contrib: cargo: use the 0.6.13 cargo-c version
[vlc.git] / modules / access / screen / screen.h
blob2a46c54e3a5dff868642cdeaf363e572a581c1f2
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>
28 #ifdef __APPLE__
29 # define SCREEN_DISPLAY_ID
30 #endif
32 #define SCREEN_SUBSCREEN
33 #define SCREEN_MOUSE
35 #ifdef SCREEN_MOUSE
36 # include <vlc_image.h>
37 #endif
39 typedef struct screen_data_t screen_data_t;
41 typedef struct
43 es_format_t fmt;
44 es_out_id_t *es;
46 float f_fps;
47 vlc_tick_t i_next_date;
48 vlc_tick_t i_incr;
50 vlc_tick_t i_start;
52 #ifdef SCREEN_SUBSCREEN
53 bool b_follow_mouse;
54 unsigned int i_screen_height;
55 unsigned int i_screen_width;
57 unsigned int i_top;
58 unsigned int i_left;
59 unsigned int i_height;
60 unsigned int i_width;
61 #endif
63 #ifdef SCREEN_MOUSE
64 picture_t *p_mouse;
65 filter_t *p_blend;
66 picture_t dst;
67 #endif
69 #ifdef SCREEN_DISPLAY_ID
70 unsigned int i_display_id;
71 unsigned int i_screen_index;
72 #endif
74 screen_data_t *p_data;
75 } demux_sys_t;
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 );
83 #endif
84 #ifdef SCREEN_MOUSE
85 void RenderCursor( demux_t *, int, int, uint8_t * );
86 #endif