00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #include <stdlib.h>
00028 #include <string.h>
00029
00030 #include <vlc/vlc.h>
00031
00032 #include "dummy.h"
00033
00034
00035
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