1 /*****************************************************************************
2 * macosx.m: Mac OS X module for vlc
3 *****************************************************************************
4 * Copyright (C) 2001-2003 VideoLAN
7 * Authors: Colin Delacroix <colin@zoy.org>
8 * Eugenio Jarosiewicz <ej0@cise.ufl.edu>
9 * Florian G. Pflug <fgp@phlo.org>
10 * Jon Lech Johansen <jon-vl@nanocrew.net>
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
25 *****************************************************************************/
27 /*****************************************************************************
29 *****************************************************************************/
30 #include <stdlib.h> /* malloc(), free() */
35 /*****************************************************************************
37 *****************************************************************************/
38 int E_(OpenIntf) ( vlc_object_t * );
39 void E_(CloseIntf) ( vlc_object_t * );
41 int E_(OpenVideoQT) ( vlc_object_t * );
42 void E_(CloseVideoQT) ( vlc_object_t * );
44 int E_(OpenVideoGL) ( vlc_object_t * );
45 void E_(CloseVideoGL) ( vlc_object_t * );
47 /*****************************************************************************
49 *****************************************************************************/
50 #define VDEV_TEXT N_("Video device")
51 #define VDEV_LONGTEXT N_("Choose a number corresponding to " \
52 "a screen in you video device selection menu and this screen " \
53 "will be used by default as the screen for 'fullscreen'.")
55 #define OPAQUENESS_TEXT N_("Opaqueness")
56 #define OPAQUENESS_LONGTEXT N_( \
57 "Set the transparency of the video output. 1 is non-transparent (default) " \
58 "0 is fully transparent.")
60 #define STRETCH_TEXT N_("Stretch Aspect Ratio")
61 #define STRETCH_LONGTEXT N_("Instead of keeping the aspect ratio " \
62 "of the movie when resizing the video, stretch the video " \
63 "to fill the entire window." )
65 #define FILL_TEXT N_("Fill fullscreen")
66 #define FILL_LONGTEXT N_("In fullscreen mode, crop the picture if " \
67 "necessary in order to fill the screen without black " \
68 "borders (OpenGL only)." )
71 set_description( _("Mac OS X interface, sound and video") );
72 set_capability( "interface", 100 );
73 set_callbacks( E_(OpenIntf), E_(CloseIntf) );
75 set_capability( "video output", 100 );
76 set_callbacks( E_(OpenVideoQT), E_(CloseVideoQT) );
77 add_integer( "macosx-vdev", 0, NULL, VDEV_TEXT, VDEV_LONGTEXT,
79 add_bool( "macosx-stretch", 0, NULL, STRETCH_TEXT, STRETCH_LONGTEXT,
81 add_float_with_range( "macosx-opaqueness", 1, 0, 1, NULL,
82 OPAQUENESS_TEXT, OPAQUENESS_LONGTEXT, VLC_TRUE );
83 add_bool( "macosx-fill", 0, NULL, FILL_TEXT, FILL_LONGTEXT,
86 set_capability( "opengl provider", 100 );
87 set_callbacks( E_(OpenVideoGL), E_(CloseVideoGL) );