vlc_config_cat.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * vlc_config_cat.h : Definition of configuration categories
00003  *****************************************************************************
00004  * Copyright (C) 2003 VLC authors and VideoLAN
00005  * $Id: f2bece6c6833360d3bfc4cb82b192aea7870f18b $
00006  *
00007  * Authors: Clément Stenac <zorglub@videolan.org>
00008  *          Anil Daoud <anil@videolan.org>
00009  *
00010  * This program is free software; you can redistribute it and/or modify it
00011  * under the terms of the GNU Lesser General Public License as published by
00012  * the Free Software Foundation; either version 2.1 of the License, or
00013  * (at your option) any later version.
00014  *
00015  * This program is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00018  * GNU Lesser General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU Lesser General Public License
00021  * along with this program; if not, write to the Free Software Foundation,
00022  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
00023  *****************************************************************************/
00024 
00025 #ifndef VLC_HELP_H
00026 #define VLC_HELP_H 1
00027 # include <vlc_plugin.h>
00028 
00029 /*
00030  *  First, we need help strings for the General Settings and for the
00031  *  Plugins screen
00032  */
00033 #define MAIN_TITLE N_( "VLC preferences" )
00034 #define MAIN_HELP N_( \
00035     "Select \"Advanced Options\" to see all options." )
00036 
00037 /* Interface */
00038 #define INTF_TITLE N_("Interface")
00039 #define INTF_HELP  N_( "Settings for VLC's interfaces" )
00040 
00041 #define INTF_GENERAL_HELP N_( "Main interfaces settings" )
00042 
00043 #define INTF_MAIN_TITLE  N_( "Main interfaces" )
00044 #define INTF_MAIN_HELP N_( "Settings for the main interface" )
00045 
00046 #define INTF_CONTROL_TITLE N_( "Control interfaces" )
00047 #define INTF_CONTROL_HELP N_( "Settings for VLC's control interfaces" )
00048 
00049 #define INTF_HOTKEYS_TITLE N_( "Hotkeys settings" )
00050 #define INTF_HOTKEYS_HELP N_( "Hotkeys settings" )
00051 
00052 /* Audio */
00053 #define AUDIO_TITLE N_( "Audio" )
00054 #define AUDIO_HELP N_( "Audio settings" )
00055 
00056 #define AUDIO_GENERAL_HELP N_("General audio settings")
00057 
00058 #define AFILTER_TITLE N_("Filters")
00059 #define AFILTER_HELP N_( "Audio filters are used to process the audio stream." )
00060 
00061 #define AVISUAL_TITLE N_("Visualizations")
00062 #define AVISUAL_HELP N_( "Audio visualizations" )
00063 
00064 #define AOUT_TITLE N_( "Output modules" )
00065 #define AOUT_HELP N_("General settings for audio output modules.")
00066 
00067 #define AMISC_TITLE N_("Miscellaneous")
00068 #define AMISC_HELP N_( "Miscellaneous audio settings and modules." )
00069 
00070 /* Video */
00071 #define VIDEO_TITLE N_("Video")
00072 #define VIDEO_HELP N_("Video settings")
00073 
00074 #define VIDEO_GENERAL_HELP N_( "General video settings" )
00075 
00076 #define _VOUT_TITLE N_("Output modules" )
00077 #define VOUT_HELP N_( \
00078     "Choose your preferred video output and configure it here." )
00079 
00080 #define VFILTER_TITLE N_("Filters" )
00081 #define VFILTER_HELP N_( \
00082     "Video filters are used to process the video stream." )
00083 
00084 #define SUBPIC_TITLE N_( "Subtitles / OSD")
00085 #define SUBPIC_HELP N_( "Settings related to On-Screen-Display,"\
00086         " subtitles and \"overlay subpictures\"")
00087 /*
00088 #define TEXT_TITLE N_("Text rendering")
00089 #define TEXT_HELP N_( \
00090     "Use the settings of the \"freetype\" module to choose the font you " \
00091     "want VLC to use for text rendering (to display subtitles for example).")
00092 */
00093 /* Input */
00094 #define INPUT_TITLE N_( "Input / Codecs" )
00095 #define INPUT_HELP N_( "Settings for input, demultiplexing, " \
00096          "decoding and encoding")
00097 
00098 #define ACCESS_TITLE N_( "Access modules" )
00099 #define ACCESS_HELP N_( \
00100     "Settings related to the various access methods. " \
00101     "Common settings you may want to alter are HTTP proxy or " \
00102     "caching settings." )
00103 
00104 #define STREAM_FILTER_TITLE N_( "Stream filters" )
00105 #define STREAM_FILTER_HELP N_( \
00106     "Stream filters are special modules that allow advanced operations on " \
00107     "the input side of VLC. Use with care..." )
00108 
00109 #define DEMUX_TITLE N_("Demuxers")
00110 #define DEMUX_HELP N_( "Demuxers are used to separate audio and video streams." )
00111 
00112 #define VDEC_TITLE  N_( "Video codecs" )
00113 #define VDEC_HELP N_( "Settings for the video, images or video+audio decoders and encoders." )
00114 
00115 #define ADEC_TITLE  N_( "Audio codecs" )
00116 #define ADEC_HELP N_( "Settings for the audio-only decoders and encoders." )
00117 
00118 #define SDEC_TITLE N_( "Subtitles codecs")
00119 #define SDEC_HELP N_( "Settings for subtitles, teletext and CC decoders and encoders." )
00120 
00121 #define ADVANCED_TITLE N_("General Input" )
00122 #define ADVANCED_HELP N_( "General input settings. Use with care..." )
00123 
00124 /* Sout */
00125 #define SOUT_TITLE N_( "Stream output" )
00126 #define SOUT_HELP N_( \
00127       "Stream output settings are used when acting as a streaming server " \
00128       "or when saving incoming streams.\n" \
00129       "Streams are first muxed and then sent through an \"access output\" "\
00130       "module that can either save the stream to a file, or stream " \
00131       "it (UDP, HTTP, RTP/RTSP).\n" \
00132       "Sout streams modules allow advanced stream processing (transcoding, "\
00133       "duplicating...).")
00134 
00135 #define SOUT_GENERAL_HELP N_( "General stream output settings")
00136 
00137 #define SOUT_MUX_TITLE N_( "Muxers" )
00138 #define SOUT_MUX_HELP N_( \
00139        "Muxers create the encapsulation formats that are used to " \
00140        "put all the elementary streams (video, audio, ...) " \
00141        "together. This setting allows you to always force a specific muxer. " \
00142        "You should probably not do that.\n" \
00143        "You can also set default parameters for each muxer." )
00144 
00145 #define SOUT_ACO_TITLE N_( "Access output" )
00146 #define SOUT_ACO_HELP N_( \
00147    "Access output modules control the ways the muxed streams are sent. " \
00148    "This setting allows you to always force a specific access output method. " \
00149    "You should probably not do that.\n" \
00150    "You can also set default parameters for each access output.")
00151 
00152 #define SOUT_PACKET_TITLE N_( "Packetizers" )
00153 #define SOUT_PACKET_HELP N_( \
00154         "Packetizers are used to \"preprocess\" the elementary "\
00155         "streams before muxing. " \
00156         "This setting allows you to always force a packetizer. " \
00157         "You should probably not do that.\n" \
00158         "You can also set default parameters for each packetizer." )
00159 
00160 #define SOUT_STREAM_TITLE N_("Sout stream")
00161 #define SOUT_STREAM_HELP N_( "Sout stream modules allow to build a sout " \
00162                 "processing chain. Please refer to the Streaming Howto for " \
00163                 "more information. You can configure default options for " \
00164                 "each sout stream module here.")
00165 
00166 #define SOUT_SAP_TITLE N_( "SAP" )
00167 #define SOUT_SAP_HELP N_( \
00168                  "SAP is a way to publically announce streams that are being "\
00169                  "sent using multicast UDP or RTP." )
00170 
00171 #define SOUT_VOD_TITLE N_( "VOD" )
00172 #define SOUT_VOD_HELP N_( "VLC's implementation of Video On Demand" )
00173 
00174 
00175 /* Playlist */
00176 #define PLAYLIST_TITLE N_( "Playlist" )
00177 #define PLAYLIST_HELP N_( "Settings related to playlist behaviour " \
00178         "(e.g. playback mode) and to modules that automatically add "\
00179         "items to the playlist (\"service discovery\" modules).")
00180 
00181 #define PGENERAL_HELP N_( "General playlist behaviour")
00182 #define SD_TITLE N_("Services discovery")
00183 #define SD_HELP N_("Services discovery modules are facilities "\
00184         "that automatically add items to playlist.")
00185 
00186 /* Advanced */
00187 #define AADVANCED_TITLE N_( "Advanced" )
00188 #define AADVANCED_HELP N_( "Advanced settings. Use with care...")
00189 
00190 #define CPU_TITLE N_( "CPU features" )
00191 #define CPU_HELP N_( "You can choose to disable some CPU accelerations " \
00192         "here. Use with extreme care!" )
00193 
00194 #define MISC_TITLE N_( "Advanced settings" )
00195 
00196 
00197 /* OLD */
00198 #if 0
00199 #define NETWORK_TITLE N_( "Network" )
00200 #define NETWORK_HELP N_( "These modules provide network functions to all " \
00201                 "other parts of VLC." )
00202 
00203 #define CHROMA_TITLE N_("Chroma modules settings")
00204 #define CHROMA_HELP N_("These settings affect chroma transformation modules.")
00205 
00206 #define PACKETIZER_TITLE  N_("Packetizer modules settings" )
00207 #define PACKETIZER_HELP "These are general settings for the "\
00208         "packetizers used in VLC's stream output subsystem."
00209 
00210 #define ENCODER_TITLE N_("Encoders settings")
00211 #define ENCODER_HELP N_( \
00212     "These are general settings for video/audio/subtitles encoding modules.")
00213 
00214 
00215 #define DIALOGS_TITLE N_("Dialog providers settings")
00216 #define DIALOGS_HELP  N_( \
00217     "Dialog providers can be configured here.")
00218 
00219 #define SUBTITLE_DEMUX_TITLE N_("Subtitle demuxer settings")
00220 #define SUBTITLE_DEMUX_HELP N_( \
00221     "In this section you can force the behavior of the subtitle demuxer, " \
00222     "for example by setting the subtitles type or file name.")
00223 
00224 /*
00225  *  A little help for modules with unknown capabilities
00226  */
00227 
00228 #define UNKNOWN_TITLE N_("No help available" )
00229 #define UNKNOWN_HELP N_("There is no help available for these modules.")
00230 #endif
00231 
00232 /* This function is deprecated and is kept only for compatibility */
00233 static const struct config_category_t categories_array[] =
00234 {
00235     /* Interface */
00236     { CAT_INTERFACE, INTF_TITLE, INTF_HELP },
00237     { SUBCAT_INTERFACE_GENERAL, INTF_TITLE, INTF_GENERAL_HELP },
00238     { SUBCAT_INTERFACE_MAIN, INTF_MAIN_TITLE, INTF_MAIN_HELP },
00239     { SUBCAT_INTERFACE_CONTROL, INTF_CONTROL_TITLE, INTF_CONTROL_HELP },
00240     { SUBCAT_INTERFACE_HOTKEYS, INTF_HOTKEYS_TITLE, INTF_HOTKEYS_HELP },
00241 
00242     { CAT_AUDIO, AUDIO_TITLE, AUDIO_HELP },
00243     { SUBCAT_AUDIO_GENERAL, AUDIO_TITLE, AUDIO_GENERAL_HELP },
00244     { SUBCAT_AUDIO_AOUT, AOUT_TITLE, AOUT_HELP },
00245     { SUBCAT_AUDIO_AFILTER, AFILTER_TITLE, AFILTER_HELP },
00246     { SUBCAT_AUDIO_VISUAL, AVISUAL_TITLE, AVISUAL_HELP },
00247     { SUBCAT_AUDIO_MISC, AMISC_TITLE, AMISC_HELP },
00248 
00249     { CAT_VIDEO, VIDEO_TITLE, VIDEO_HELP },
00250     { SUBCAT_VIDEO_GENERAL, VIDEO_TITLE, VIDEO_GENERAL_HELP },
00251     { SUBCAT_VIDEO_VOUT, _VOUT_TITLE, VOUT_HELP },
00252     { SUBCAT_VIDEO_VFILTER, VFILTER_TITLE, VFILTER_HELP },
00253     { SUBCAT_VIDEO_SUBPIC, SUBPIC_TITLE, SUBPIC_HELP },
00254 
00255     { CAT_INPUT, INPUT_TITLE, INPUT_HELP },
00256     { SUBCAT_INPUT_GENERAL, INPUT_TITLE, INPUT_HELP },
00257     { SUBCAT_INPUT_ACCESS, ACCESS_TITLE, ACCESS_HELP },
00258     { SUBCAT_INPUT_DEMUX, DEMUX_TITLE, DEMUX_HELP },
00259     { SUBCAT_INPUT_VCODEC, VDEC_TITLE, VDEC_HELP },
00260     { SUBCAT_INPUT_ACODEC, ADEC_TITLE, ADEC_HELP },
00261     { SUBCAT_INPUT_SCODEC, SDEC_TITLE, SDEC_HELP },
00262     { SUBCAT_INPUT_STREAM_FILTER, STREAM_FILTER_TITLE, STREAM_FILTER_HELP },
00263 
00264     { CAT_SOUT, SOUT_TITLE, SOUT_HELP },
00265     { SUBCAT_SOUT_GENERAL, SOUT_TITLE, SOUT_GENERAL_HELP },
00266     { SUBCAT_SOUT_STREAM, SOUT_STREAM_TITLE, SOUT_STREAM_HELP },
00267     { SUBCAT_SOUT_MUX, SOUT_MUX_TITLE, SOUT_MUX_HELP },
00268     { SUBCAT_SOUT_ACO, SOUT_ACO_TITLE, SOUT_ACO_HELP },
00269     { SUBCAT_SOUT_PACKETIZER, SOUT_PACKET_TITLE, SOUT_PACKET_HELP },
00270     { SUBCAT_SOUT_SAP, SOUT_SAP_TITLE, SOUT_SAP_HELP },
00271     { SUBCAT_SOUT_VOD, SOUT_VOD_TITLE, SOUT_VOD_HELP },
00272 
00273     { CAT_PLAYLIST, PLAYLIST_TITLE , PLAYLIST_HELP },
00274     { SUBCAT_PLAYLIST_GENERAL, PLAYLIST_TITLE, PGENERAL_HELP },
00275     { SUBCAT_PLAYLIST_SD, SD_TITLE, SD_HELP },
00276 
00277     { CAT_ADVANCED, AADVANCED_TITLE, AADVANCED_HELP },
00278     { SUBCAT_ADVANCED_CPU, CPU_TITLE, CPU_HELP },
00279     { SUBCAT_ADVANCED_MISC, MISC_TITLE, AADVANCED_HELP },
00280 
00281     { -1, NULL, NULL }
00282 };
00283 
00284 VLC_USED
00285 static inline const char *config_CategoryNameGet( int i_value )
00286 {
00287     int i = 0;
00288     while( categories_array[i].psz_name != NULL )
00289     {
00290         if( categories_array[i].i_id == i_value )
00291         {
00292             return vlc_gettext(categories_array[i].psz_name);
00293         }
00294         i++;
00295     }
00296     return NULL;
00297 }
00298 
00299 VLC_USED
00300 static inline const char *config_CategoryHelpGet( int i_value )
00301 {
00302     int i = 0;
00303     while( categories_array[i].psz_help != NULL )
00304     {
00305         if( categories_array[i].i_id == i_value )
00306         {
00307             return vlc_gettext(categories_array[i].psz_help);
00308         }
00309         i++;
00310     }
00311     return NULL;
00312 }
00313 
00314 #endif /* VLC_HELP_H */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines