X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fmisc%2Fdummy%2Fdummy.c;h=3f61dd9ab9b02ae934c3ee96ebfa01451865f6a9;hb=e7da2d0afe9c3b3ff18292ddc6c51179a579c46a;hp=a568c80ffc0331a84859b2150c75357f06e6a53c;hpb=14b3f0cfa16fa0147dafd44b64bf94403a0095fb;p=vlc diff --git a/modules/misc/dummy/dummy.c b/modules/misc/dummy/dummy.c index a568c80ffc..3f61dd9ab9 100644 --- a/modules/misc/dummy/dummy.c +++ b/modules/misc/dummy/dummy.c @@ -1,8 +1,8 @@ /***************************************************************************** * dummy.c : dummy plugin for vlc ***************************************************************************** - * Copyright (C) 2000, 2001 VideoLAN - * $Id: dummy.c,v 1.9 2003/07/14 21:32:59 sigmunau Exp $ + * Copyright (C) 2000, 2001 the VideoLAN team + * $Id$ * * Authors: Samuel Hocevar * @@ -10,7 +10,7 @@ * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the @@ -18,19 +18,24 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ /***************************************************************************** * Preamble *****************************************************************************/ -#include /* malloc(), free() */ -#include -#include +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + +#include +#include #include "dummy.h" +static int OpenDummy(vlc_object_t *); + /***************************************************************************** * Module descriptor *****************************************************************************/ @@ -40,49 +45,86 @@ "format instead of trying to improve performances by using the most " \ "efficient one.") +#define SAVE_TEXT N_("Save raw codec data") +#define SAVE_LONGTEXT N_( \ + "Save the raw codec data if you have selected/forced the dummy " \ + "decoder in the main options." ) + #ifdef WIN32 -#define QUIET_TEXT N_("Don't open a dos command box interface") +#define QUIET_TEXT N_("Do not open a DOS command box interface") #define QUIET_LONGTEXT N_( \ - "By default the dummy interface plugin will start a dos command box. " \ + "By default the dummy interface plugin will start a DOS command box. " \ "Enabling the quiet mode will not bring this command box but can also " \ - "be pretty annoying when you want to stop vlc and no video window is " \ - "opened." ) + "be pretty annoying when you want to stop VLC and no video window is " \ + "open." ) #endif -vlc_module_begin(); - set_description( _("dummy interface function") ); - set_capability( "interface", 0 ); - add_shortcut( "vlc" ); - set_callbacks( E_(OpenIntf), NULL ); +vlc_module_begin () + set_shortname( N_("Dummy")) + set_description( N_("Dummy interface function") ) + set_capability( "interface", 0 ) + set_callbacks( OpenIntf, NULL ) #ifdef WIN32 - add_category_hint( N_("Interface"), NULL, VLC_FALSE ); - add_bool( "dummy-quiet", 0, NULL, QUIET_TEXT, QUIET_LONGTEXT, VLC_FALSE ); + set_section( N_( "Dummy Interface" ), NULL ) + add_category_hint( N_("Interface"), NULL, false ) + add_bool( "dummy-quiet", false, NULL, QUIET_TEXT, QUIET_LONGTEXT, false ) #endif - add_submodule(); - set_description( _("dummy access function") ); - set_capability( "access", 0 ); - set_callbacks( E_(OpenAccess), NULL ); - add_submodule(); - set_description( _("dummy demux function") ); - set_capability( "demux", 0 ); - set_callbacks( E_(OpenDemux), E_(CloseDemux) ); - add_submodule(); - set_description( _("dummy decoder function") ); - set_capability( "decoder", 0 ); - set_callbacks( E_(OpenDecoder), NULL ); - add_submodule(); - set_description( _("dummy audio output function") ); - set_capability( "audio output", 1 ); - set_callbacks( E_(OpenAudio), NULL ); - add_submodule(); - set_description( _("dummy video output function") ); - set_capability( "video output", 1 ); - set_callbacks( E_(OpenVideo), NULL ); - add_category_hint( N_("Video"), NULL, VLC_FALSE ); - add_string( "dummy-chroma", NULL, NULL, CHROMA_TEXT, CHROMA_LONGTEXT, VLC_FALSE ); - add_submodule(); - set_description( _("dummy font renderer function") ); - set_capability( "text renderer", 1 ); - set_callbacks( E_(OpenRenderer), NULL ); -vlc_module_end(); + add_submodule () + set_description( N_("Dummy demux function") ) + set_capability( "access_demux", 0 ) + set_callbacks( OpenDemux, CloseDemux ) + add_shortcut( "vlc" ) + add_submodule () + set_section( N_( "Dummy decoder" ), NULL ) + set_description( N_("Dummy decoder function") ) + set_capability( "decoder", 0 ) + set_callbacks( OpenDecoder, CloseDecoder ) + set_category( CAT_INPUT ) + set_subcategory( SUBCAT_INPUT_SCODEC ) + add_bool( "dummy-save-es", false, NULL, SAVE_TEXT, SAVE_LONGTEXT, true ) + add_submodule () + set_section( N_( "Dump decoder" ), NULL ) + set_description( N_("Dump decoder function") ) + set_capability( "decoder", -1 ) + set_callbacks( OpenDecoderDump, CloseDecoder ) + add_shortcut( "dump" ) + add_submodule () + set_description( N_("Dummy encoder function") ) + set_capability( "encoder", 0 ) + set_callbacks( OpenEncoder, CloseEncoder ) + add_submodule () + set_description( N_("Dummy audio output function") ) + set_capability( "audio output", 1 ) + set_callbacks( OpenAudio, NULL ) + add_submodule () + set_description( N_("Dummy video output function") ) + set_section( N_( "Dummy Video output" ), NULL ) + set_capability( "vout display", 1 ) + set_callbacks( OpenVideo, CloseVideo ) + set_category( CAT_VIDEO ) + set_subcategory( SUBCAT_VIDEO_VOUT ) + add_category_hint( N_("Video"), NULL, false ) + add_string( "dummy-chroma", NULL, NULL, CHROMA_TEXT, CHROMA_LONGTEXT, true ) + add_submodule () + set_section( N_( "Stats video output" ), NULL ) + set_description( N_("Stats video output function") ) + set_capability( "vout display", 0 ) + add_shortcut( "stats" ) + set_callbacks( OpenVideoStat, CloseVideo ) + add_submodule () + set_description( N_("Dummy font renderer function") ) + set_capability( "text renderer", 1 ) + set_callbacks( OpenRenderer, NULL ) + add_submodule () + set_description( N_("libc memcpy") ) + set_capability( "memcpy", 50 ) + set_callbacks( OpenDummy, NULL ) + add_shortcut( "c" ) + add_shortcut( "libc" ) +vlc_module_end () +static int OpenDummy( vlc_object_t *obj ) +{ + (void) obj; + return VLC_SUCCESS; +}