VLC  4.0.0-dev
vlc_config_cat.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * vlc_config_cat.h : Definition of configuration categories
3  *****************************************************************************
4  * Copyright (C) 2003 VLC authors and VideoLAN
5  *
6  * Authors: ClĂ©ment Stenac <zorglub@videolan.org>
7  * Anil Daoud <anil@videolan.org>
8  *
9  * This program is free software; you can redistribute it and/or modify it
10  * under the terms of the GNU Lesser General Public License as published by
11  * the Free Software Foundation; either version 2.1 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public License
20  * along with this program; if not, write to the Free Software Foundation,
21  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22  *****************************************************************************/
23 
24 #ifndef VLC_HELP_H
25 #define VLC_HELP_H 1
26 # include <vlc_plugin.h>
27 
28 /*
29  * First, we need help strings for the General Settings and for the
30  * Plugins screen
31  */
32 #define MAIN_TITLE N_( "VLC preferences" )
33 #define MAIN_HELP N_( \
34  "Select \"Advanced Options\" to see all options." )
35 
36 /* Interface */
37 #define INTF_TITLE N_("Interface")
38 #define INTF_HELP N_( "Settings for VLC's interfaces" )
39 
40 #define INTF_GENERAL_HELP N_( "Main interfaces settings" )
41 
42 #define INTF_MAIN_TITLE N_( "Main interfaces" )
43 #define INTF_MAIN_HELP N_( "Settings for the main interface" )
44 
45 #define INTF_CONTROL_TITLE N_( "Control interfaces" )
46 #define INTF_CONTROL_HELP N_( "Settings for VLC's control interfaces" )
47 
48 #define INTF_HOTKEYS_TITLE N_( "Hotkeys settings" )
49 #define INTF_HOTKEYS_HELP N_( "Hotkeys settings" )
50 
51 /* Audio */
52 #define AUDIO_TITLE N_( "Audio" )
53 #define AUDIO_HELP N_( "Audio settings" )
54 
55 #define AUDIO_GENERAL_HELP N_("General audio settings")
56 
57 #define AFILTER_TITLE N_("Filters")
58 #define AFILTER_HELP N_( "Audio filters are used to process the audio stream." )
59 
60 #define ARESAMPLER_TITLE N_("Audio resampler")
61 
62 #define AVISUAL_TITLE N_("Visualizations")
63 #define AVISUAL_HELP N_( "Audio visualizations" )
64 
65 #define AOUT_TITLE N_( "Output modules" )
66 #define AOUT_HELP N_("General settings for audio output modules.")
67 
68 #define AMISC_TITLE N_("Miscellaneous")
69 #define AMISC_HELP N_( "Miscellaneous audio settings and modules." )
70 
71 /* Video */
72 #define VIDEO_TITLE N_("Video")
73 #define VIDEO_HELP N_("Video settings")
74 
75 #define VIDEO_GENERAL_HELP N_( "General video settings" )
76 
77 #define _VOUT_TITLE N_("Output modules" )
78 #define VOUT_HELP N_("General settings for video output modules.")
79 
80 #define VFILTER_TITLE N_("Filters" )
81 #define VFILTER_HELP N_("Video filters are used to process the video stream." )
82 
83 #define SUBPIC_TITLE N_( "Subtitles / OSD")
84 #define SUBPIC_HELP N_( "Settings related to On-Screen-Display,"\
85  " subtitles and \"overlay subpictures\"")
86 
87 #define SPLITTER_TITLE N_("Splitters")
88 #define SPLITTER_HELP N_("Video splitters separate the stream into multiple videos.")
89 
90 /*
91 #define TEXT_HELP N_( \
92  "Use the settings of the \"freetype\" module to choose the font you " \
93  "want VLC to use for text rendering (to display subtitles for example).")
94 */
95 /* Input */
96 #define INPUT_TITLE N_( "Input / Codecs" )
97 #define INPUT_HELP N_( "Settings for input, demultiplexing, " \
98  "decoding and encoding")
99 
100 #define ACCESS_TITLE N_( "Access modules" )
101 #define ACCESS_HELP N_( \
102  "Settings related to the various access methods. " \
103  "Common settings you may want to alter are HTTP proxy or " \
104  "caching settings." )
105 
106 #define STREAM_FILTER_TITLE N_( "Stream filters" )
107 #define STREAM_FILTER_HELP N_( \
108  "Stream filters are special modules that allow advanced operations on " \
109  "the input side of VLC. Use with care..." )
110 
111 #define DEMUX_TITLE N_("Demuxers")
112 #define DEMUX_HELP N_( "Demuxers are used to separate audio and video streams." )
114 #define VDEC_TITLE N_( "Video codecs" )
115 #define VDEC_HELP N_( "Settings for the video, images or video+audio decoders and encoders." )
117 #define ADEC_TITLE N_( "Audio codecs" )
118 #define ADEC_HELP N_( "Settings for the audio-only decoders and encoders." )
120 #define SDEC_TITLE N_( "Subtitle codecs")
121 #define SDEC_HELP N_( "Settings for subtitle, teletext and CC decoders and encoders." )
123 #define ADVANCED_HELP N_( "General input settings. Use with care..." )
125 /* Sout */
126 #define SOUT_TITLE N_( "Stream output" )
127 #define SOUT_HELP N_( \
128  "Stream output settings are used when acting as a streaming server " \
129  "or when saving incoming streams.\n" \
130  "Streams are first muxed and then sent through an \"access output\" "\
131  "module that can either save the stream to a file, or stream " \
132  "it (UDP, HTTP, RTP/RTSP).\n" \
133  "Sout streams modules allow advanced stream processing (transcoding, "\
134  "duplicating...).")
135 
136 #define SOUT_GENERAL_HELP N_( "General stream output settings")
138 #define SOUT_MUX_TITLE N_( "Muxers" )
139 #define SOUT_MUX_HELP N_( \
140  "Muxers create the encapsulation formats that are used to " \
141  "put all the elementary streams (video, audio, ...) " \
142  "together. This setting allows you to always force a specific muxer. " \
143  "You should probably not do that.\n" \
144  "You can also set default parameters for each muxer." )
145 
146 #define SOUT_ACO_TITLE N_( "Access output" )
147 #define SOUT_ACO_HELP N_( \
148  "Access output modules control the ways the muxed streams are sent. " \
149  "This setting allows you to always force a specific access output method. " \
150  "You should probably not do that.\n" \
151  "You can also set default parameters for each access output.")
152 
153 #define SOUT_PACKET_TITLE N_( "Packetizers" )
154 #define SOUT_PACKET_HELP N_( \
155  "Packetizers are used to \"preprocess\" the elementary "\
156  "streams before muxing. " \
157  "This setting allows you to always force a packetizer. " \
158  "You should probably not do that.\n" \
159  "You can also set default parameters for each packetizer." )
160 
161 #define SOUT_STREAM_TITLE N_("Sout stream")
162 #define SOUT_STREAM_HELP N_( "Sout stream modules allow to build a sout " \
163  "processing chain. Please refer to the Streaming Howto for " \
164  "more information. You can configure default options for " \
165  "each sout stream module here.")
166 
167 #define SOUT_VOD_TITLE N_( "VOD" )
168 #define SOUT_VOD_HELP N_( "VLC's implementation of Video On Demand" )
170 
171 /* Playlist */
172 #define PLAYLIST_TITLE N_( "Playlist" )
173 #define PLAYLIST_HELP N_( "Settings related to playlist behaviour " \
174  "(e.g. playback mode) and to modules that automatically add "\
175  "items to the playlist (\"service discovery\" modules).")
176 
177 #define PGENERAL_HELP N_( "General playlist behaviour")
178 #define SD_TITLE N_("Services discovery")
179 #define SD_HELP N_("Services discovery modules are facilities "\
180  "that automatically add items to playlist.")
181 
182 /* Advanced */
183 #define AADVANCED_TITLE N_( "Advanced" )
184 #define AADVANCED_HELP N_( "Advanced settings. Use with care...")
186 #define MISC_TITLE N_( "Advanced settings" )
188 /* This function is deprecated and is kept only for compatibility */
189 static const struct config_category_t categories_array[] =
190 {
191  /* Interface */
197 
202  { SUBCAT_AUDIO_RESAMPLER, ARESAMPLER_TITLE, AFILTER_HELP },
205 
212 
214  { SUBCAT_INPUT_GENERAL, INPUT_TITLE, INPUT_HELP },
221 
229 
233 
235  { SUBCAT_ADVANCED_MISC, MISC_TITLE, AADVANCED_HELP },
236 
237  { -1, NULL, NULL }
238 };
239 
240 VLC_USED
241 static inline const char *config_CategoryNameGet( int i_value )
242 {
243  int i = 0;
244  while( categories_array[i].psz_name != NULL )
245  {
246  if( categories_array[i].i_id == i_value )
247  {
248  return vlc_gettext(categories_array[i].psz_name);
249  }
250  i++;
251  }
252  return NULL;
253 }
254 
255 VLC_USED
256 static inline const char *config_CategoryHelpGet( int i_value )
257 {
258  int i = 0;
259  while( categories_array[i].psz_help != NULL )
260  {
261  if( categories_array[i].i_id == i_value )
262  {
263  return vlc_gettext(categories_array[i].psz_help);
264  }
265  i++;
266  }
267  return NULL;
268 }
269 
270 #endif /* VLC_HELP_H */
int i_id
Definition: vlc_configuration.h:55
#define SUBCAT_SOUT_GENERAL
Definition: vlc_plugin.h:170
#define SOUT_MUX_TITLE
Definition: vlc_config_cat.h:139
#define SOUT_VOD_TITLE
Definition: vlc_config_cat.h:168
#define VFILTER_TITLE
Definition: vlc_config_cat.h:81
#define SOUT_STREAM_TITLE
Definition: vlc_config_cat.h:162
#define INPUT_HELP
Definition: vlc_config_cat.h:98
#define INTF_GENERAL_HELP
Definition: vlc_config_cat.h:41
#define SUBCAT_SOUT_MUX
Definition: vlc_plugin.h:172
#define AUDIO_TITLE
Definition: vlc_config_cat.h:53
#define VDEC_HELP
Definition: vlc_config_cat.h:116
#define AMISC_TITLE
Definition: vlc_config_cat.h:69
#define SOUT_ACO_HELP
Definition: vlc_config_cat.h:148
#define INTF_HELP
Definition: vlc_config_cat.h:39
#define DEMUX_TITLE
Definition: vlc_config_cat.h:112
Definition: vlc_configuration.h:53
#define ADEC_TITLE
Definition: vlc_config_cat.h:118
#define SUBCAT_VIDEO_VOUT
Definition: vlc_plugin.h:155
#define SUBCAT_PLAYLIST_GENERAL
Definition: vlc_plugin.h:183
#define AADVANCED_HELP
Definition: vlc_config_cat.h:185
#define AVISUAL_HELP
Definition: vlc_config_cat.h:64
#define SOUT_MUX_HELP
Definition: vlc_config_cat.h:140
#define CAT_AUDIO
Definition: vlc_plugin.h:145
uint32_t i_value
Definition: text_style.c:34
#define SOUT_GENERAL_HELP
Definition: vlc_config_cat.h:137
#define INTF_CONTROL_TITLE
Definition: vlc_config_cat.h:46
#define SUBCAT_SOUT_ACO
Definition: vlc_plugin.h:173
#define SD_TITLE
Definition: vlc_config_cat.h:179
#define SUBCAT_AUDIO_GENERAL
Definition: vlc_plugin.h:146
#define SUBCAT_INPUT_ACODEC
Definition: vlc_plugin.h:165
const char * vlc_gettext(const char *msgid)
In-tree plugins share their gettext domain with LibVLC.
Definition: textdomain.c:79
#define INTF_CONTROL_HELP
Definition: vlc_config_cat.h:47
#define VDEC_TITLE
Definition: vlc_config_cat.h:115
#define SUBCAT_AUDIO_MISC
Definition: vlc_plugin.h:150
#define SPLITTER_HELP
Definition: vlc_config_cat.h:89
#define AFILTER_TITLE
Definition: vlc_config_cat.h:58
#define SUBCAT_INPUT_VCODEC
Definition: vlc_plugin.h:164
#define SUBCAT_INPUT_DEMUX
Definition: vlc_plugin.h:163
#define SDEC_TITLE
Definition: vlc_config_cat.h:121
#define SUBCAT_INTERFACE_HOTKEYS
Definition: vlc_plugin.h:143
#define AOUT_HELP
Definition: vlc_config_cat.h:67
#define PLAYLIST_TITLE
Definition: vlc_config_cat.h:173
#define SUBCAT_INTERFACE_GENERAL
Definition: vlc_plugin.h:140
#define ACCESS_HELP
Definition: vlc_config_cat.h:102
#define VFILTER_HELP
Definition: vlc_config_cat.h:82
const char * psz_name
Definition: text_style.c:33
#define STREAM_FILTER_HELP
Definition: vlc_config_cat.h:108
#define AVISUAL_TITLE
Definition: vlc_config_cat.h:63
#define MISC_TITLE
Definition: vlc_config_cat.h:187
#define CAT_INPUT
Definition: vlc_plugin.h:160
#define VIDEO_GENERAL_HELP
Definition: vlc_config_cat.h:76
#define STREAM_FILTER_TITLE
Definition: vlc_config_cat.h:107
#define SUBPIC_HELP
Definition: vlc_config_cat.h:85
This file implements plugin (module) macros used to define a vlc module.
#define AMISC_HELP
Definition: vlc_config_cat.h:70
#define SUBCAT_INPUT_STREAM_FILTER
Definition: vlc_plugin.h:167
#define SOUT_PACKET_TITLE
Definition: vlc_config_cat.h:154
#define INTF_HOTKEYS_HELP
Definition: vlc_config_cat.h:50
#define SUBCAT_INTERFACE_MAIN
Definition: vlc_plugin.h:141
#define SUBCAT_SOUT_VOD
Definition: vlc_plugin.h:175
#define ACCESS_TITLE
Definition: vlc_config_cat.h:101
#define SUBCAT_VIDEO_SUBPIC
Definition: vlc_plugin.h:157
#define CAT_INTERFACE
Definition: vlc_plugin.h:139
#define PGENERAL_HELP
Definition: vlc_config_cat.h:178
#define AUDIO_GENERAL_HELP
Definition: vlc_config_cat.h:56
#define CAT_ADVANCED
Definition: vlc_plugin.h:178
#define SUBCAT_INPUT_GENERAL
Definition: vlc_plugin.h:161
#define AFILTER_HELP
Definition: vlc_config_cat.h:59
#define _VOUT_TITLE
Definition: vlc_config_cat.h:78
#define PLAYLIST_HELP
Definition: vlc_config_cat.h:174
#define AUDIO_HELP
Definition: vlc_config_cat.h:54
#define SUBCAT_AUDIO_VISUAL
Definition: vlc_plugin.h:149
#define SUBCAT_INTERFACE_CONTROL
Definition: vlc_plugin.h:142
#define INTF_MAIN_HELP
Definition: vlc_config_cat.h:44
#define SPLITTER_TITLE
Definition: vlc_config_cat.h:88
#define INPUT_TITLE
Definition: vlc_config_cat.h:97
#define SDEC_HELP
Definition: vlc_config_cat.h:122
#define INTF_MAIN_TITLE
Definition: vlc_config_cat.h:43
#define SOUT_VOD_HELP
Definition: vlc_config_cat.h:169
#define SOUT_STREAM_HELP
Definition: vlc_config_cat.h:163
#define SUBCAT_PLAYLIST_SD
Definition: vlc_plugin.h:184
#define SUBCAT_VIDEO_SPLITTER
Definition: vlc_plugin.h:158
#define SD_HELP
Definition: vlc_config_cat.h:180
#define VIDEO_HELP
Definition: vlc_config_cat.h:74
const char * psz_help
Definition: vlc_configuration.h:57
static const char * config_CategoryNameGet(int i_value)
Definition: vlc_config_cat.h:242
#define INTF_TITLE
Definition: vlc_config_cat.h:38
#define SUBCAT_INPUT_ACCESS
Definition: vlc_plugin.h:162
#define SUBCAT_AUDIO_AFILTER
Definition: vlc_plugin.h:148
#define SOUT_HELP
Definition: vlc_config_cat.h:128
#define SUBCAT_AUDIO_RESAMPLER
Definition: vlc_plugin.h:151
#define VOUT_HELP
Definition: vlc_config_cat.h:79
#define DEMUX_HELP
Definition: vlc_config_cat.h:113
#define SUBCAT_SOUT_PACKETIZER
Definition: vlc_plugin.h:174
#define SOUT_PACKET_HELP
Definition: vlc_config_cat.h:155
#define SUBCAT_VIDEO_VFILTER
Definition: vlc_plugin.h:156
static const char * config_CategoryHelpGet(int i_value)
Definition: vlc_config_cat.h:257
#define INTF_HOTKEYS_TITLE
Definition: vlc_config_cat.h:49
#define ARESAMPLER_TITLE
Definition: vlc_config_cat.h:61
#define VIDEO_TITLE
Definition: vlc_config_cat.h:73
#define SUBCAT_AUDIO_AOUT
Definition: vlc_plugin.h:147
#define SOUT_TITLE
Definition: vlc_config_cat.h:127
#define SUBPIC_TITLE
Definition: vlc_config_cat.h:84
#define ADEC_HELP
Definition: vlc_config_cat.h:119
#define AOUT_TITLE
Definition: vlc_config_cat.h:66
#define SUBCAT_SOUT_STREAM
Definition: vlc_plugin.h:171
#define SUBCAT_INPUT_SCODEC
Definition: vlc_plugin.h:166
#define SUBCAT_VIDEO_GENERAL
Definition: vlc_plugin.h:154
#define VLC_USED
Definition: fourcc_gen.c:32
#define SUBCAT_ADVANCED_MISC
Definition: vlc_plugin.h:179
#define CAT_VIDEO
Definition: vlc_plugin.h:153
#define CAT_PLAYLIST
Definition: vlc_plugin.h:182
#define AADVANCED_TITLE
Definition: vlc_config_cat.h:184
#define CAT_SOUT
Definition: vlc_plugin.h:169
#define SOUT_ACO_TITLE
Definition: vlc_config_cat.h:147