00001 /***************************************************************************** 00002 * screen.h: Screen capture module. 00003 ***************************************************************************** 00004 * Copyright (C) 2004 the VideoLAN team 00005 * $Id$ 00006 * 00007 * Authors: Gildas Bazin <gbazin@videolan.org> 00008 * 00009 * This program is free software; you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation; either version 2 of the License, or 00012 * (at your option) any later version. 00013 * 00014 * This program is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 * GNU General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this program; if not, write to the Free Software 00021 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. 00022 *****************************************************************************/ 00023 00024 #include <vlc_input.h> 00025 #include <vlc_access.h> 00026 #include <vlc_demux.h> 00027 00028 #if !defined( HAVE_WIN32 ) && !defined( HAVE_BEOS ) && !defined( HAVE_DARWIN ) 00029 # define SCREEN_SUBSCREEN 00030 #endif 00031 00032 typedef struct screen_data_t screen_data_t; 00033 00034 struct demux_sys_t 00035 { 00036 es_format_t fmt; 00037 es_out_id_t *es; 00038 00039 float f_fps; 00040 mtime_t i_next_date; 00041 int i_incr; 00042 00043 #ifdef SCREEN_SUBSCREEN 00044 bool b_follow_mouse; 00045 unsigned int i_screen_height; 00046 unsigned int i_screen_width; 00047 00048 unsigned int i_top; 00049 unsigned int i_left; 00050 unsigned int i_height; 00051 unsigned int i_width; 00052 #endif 00053 00054 screen_data_t *p_data; 00055 }; 00056 00057 int screen_InitCapture ( demux_t * ); 00058 int screen_CloseCapture( demux_t * ); 00059 block_t *screen_Capture( demux_t * ); 00060
1.5.1