Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

dummy.c

00001 /*****************************************************************************
00002  * dummy.c : dummy plugin for vlc
00003  *****************************************************************************
00004  * Copyright (C) 2000, 2001 the VideoLAN team
00005  * $Id: dummy.c 11664 2005-07-09 06:17:09Z courmisch $
00006  *
00007  * Authors: Samuel Hocevar <[email protected]>
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., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
00022  *****************************************************************************/
00023 
00024 /*****************************************************************************
00025  * Preamble
00026  *****************************************************************************/
00027 #include <stdlib.h>                                      /* malloc(), free() */
00028 #include <string.h>
00029 
00030 #include <vlc/vlc.h>
00031 
00032 #include "dummy.h"
00033 
00034 /*****************************************************************************
00035  * Module descriptor
00036  *****************************************************************************/
00037 #define CHROMA_TEXT N_("Dummy image chroma format")
00038 #define CHROMA_LONGTEXT N_( \
00039     "Force the dummy video output to create images using a specific chroma " \
00040     "format instead of trying to improve performances by using the most " \
00041     "efficient one.")
00042 
00043 #define SAVE_TEXT N_("Save raw codec data")
00044 #define SAVE_LONGTEXT N_( \
00045     "This option allows you to save the raw codec data if you have " \
00046     "selected/forced the dummy decoder in the main options." )
00047 
00048 #ifdef WIN32
00049 #define QUIET_TEXT N_("Do not open a DOS command box interface")
00050 #define QUIET_LONGTEXT N_( \
00051     "By default the dummy interface plugin will start a DOS command box. " \
00052     "Enabling the quiet mode will not bring this command box but can also " \
00053     "be pretty annoying when you want to stop VLC and no video window is " \
00054     "open." )
00055 #endif
00056 
00057 vlc_module_begin();
00058     set_shortname( _("Dummy"));
00059     set_description( _("Dummy interface function") );
00060     set_capability( "interface", 0 );
00061     set_category( CAT_INTERFACE );
00062     set_subcategory( SUBCAT_INTERFACE_GENERAL );
00063     add_shortcut( "vlc" );
00064     set_callbacks( E_(OpenIntf), NULL );
00065 #ifdef WIN32
00066     set_section( N_( "Dummy Interface" ), NULL );
00067     add_category_hint( N_("Interface"), NULL, VLC_FALSE );
00068     add_bool( "dummy-quiet", 0, NULL, QUIET_TEXT, QUIET_LONGTEXT, VLC_FALSE );
00069 #endif
00070     add_submodule();
00071         set_description( _("Dummy access function") );
00072         set_capability( "access2", 0 );
00073         set_callbacks( E_(OpenAccess), NULL );
00074     add_submodule();
00075         set_description( _("Dummy demux function") );
00076         set_capability( "demux2", 0 );
00077         set_callbacks( E_(OpenDemux), E_(CloseDemux) );
00078     add_submodule();
00079         set_section( N_( "Dummy decoder" ), NULL );
00080         set_description( _("Dummy decoder function") );
00081         set_capability( "decoder", 0 );
00082         set_callbacks( E_(OpenDecoder), E_(CloseDecoder) );
00083         add_bool( "dummy-save-es", 0, NULL, SAVE_TEXT, SAVE_LONGTEXT, VLC_TRUE );
00084     add_submodule();
00085         set_description( _("Dummy encoder function") );
00086         set_capability( "encoder", 0 );
00087         set_callbacks( E_(OpenEncoder), E_(CloseEncoder) );
00088     add_submodule();
00089         set_description( _("Dummy audio output function") );
00090         set_capability( "audio output", 1 );
00091         set_callbacks( E_(OpenAudio), NULL );
00092     add_submodule();
00093         set_description( _("Dummy video output function") );
00094         set_section( N_( "Dummy Video output" ), NULL );
00095         set_capability( "video output", 1 );
00096         set_callbacks( E_(OpenVideo), NULL );
00097         add_category_hint( N_("Video"), NULL, VLC_FALSE );
00098         add_string( "dummy-chroma", NULL, NULL, CHROMA_TEXT, CHROMA_LONGTEXT, VLC_TRUE );
00099     add_submodule();
00100         set_description( _("Dummy font renderer function") );
00101         set_capability( "text renderer", 1 );
00102         set_callbacks( E_(OpenRenderer), NULL );
00103 vlc_module_end();
00104 

Generated on Tue Dec 20 10:14:27 2005 for vlc-0.8.4a by  doxygen 1.4.2