1 /*****************************************************************************
2 * macosx.m: MacOS X plugin for vlc
3 *****************************************************************************
4 * Copyright (C) 2001-2003 VideoLAN
5 * $Id: macosx.m,v 1.12 2003/05/24 02:48:55 hartman Exp $
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_(OpenVideo) ( vlc_object_t * );
42 void E_(CloseVideo) ( vlc_object_t * );
44 /*****************************************************************************
46 *****************************************************************************/
47 #define VDEV_TEXT N_("Video device")
49 #define OPAQUENESS_TEXT N_("Opaqueness")
50 #define OPAQUENESS_LONGTEXT N_( \
51 "Set the transparency of the video output. 1 is non-transparent (default) " \
52 "0 is fully transparent.")
54 #define FLOAT_TEXT N_("Altijd op de Voorgrond")
55 #define FLOAT_LONGTEXT N_( \
56 "Let the video window float on top of other windows.")
59 set_description( _("MacOS X interface, sound and video") );
61 set_capability( "interface", 100 );
62 set_callbacks( E_(OpenIntf), E_(CloseIntf) );
64 set_capability( "video output", 200 );
65 set_callbacks( E_(OpenVideo), E_(CloseVideo) );
66 add_category_hint( N_("Video"), NULL, VLC_FALSE );
67 add_integer( "macosx-vdev", 0, NULL, VDEV_TEXT, VDEV_TEXT, VLC_FALSE );
68 add_float_with_range( "macosx-opaqueness", 1, 0, 1, NULL, OPAQUENESS_TEXT,
69 OPAQUENESS_LONGTEXT, VLC_TRUE );
70 add_bool( "macosx-float", 0, NULL, FLOAT_TEXT, FLOAT_LONGTEXT, VLC_FALSE );