]> git.sesse.net Git - vlc/blob - include/config.h
* Makefile : ajout du nouveau d�codeur (comment�) ;
[vlc] / include / config.h
1 /*******************************************************************************
2  * config.h: limits and configuration
3  * (c)1999 VideoLAN
4  *******************************************************************************
5  * Defines all compilation-time configuration constants and size limits
6  *******************************************************************************
7  * required headers:
8  *  none
9  *******************************************************************************/
10
11 /*******************************************************************************
12  * Program information
13  *******************************************************************************/
14
15 /* Program version and copyright message */
16 #define PROGRAM_VERSION         "0.0.x"
17 #define COPYRIGHT_MESSAGE       "VideoLAN Client v" PROGRAM_VERSION " (" __DATE__ ") - (c)1999 VideoLAN\n"
18
19 /*******************************************************************************
20  * General compilation options
21  *******************************************************************************/
22
23 /* Define for DVB support - Note that some extensions or restrictions may be
24  * incompatible with native MPEG2 streams */
25 //#define DVB_EXTENSIONS
26 //#define DVB_RESTRICTIONS
27
28 /* Define to disable some obscure heuristics behind the video_parser and the
29  * video_decoder that improve performance but are not fully MPEG2 compliant
30  * and might cause problems with some very weird streams. */
31 //#define MPEG2_COMPLIANT
32
33 /* Define for profiling support */
34 //#define STATS
35
36 /* Define for unthreaded version of the program - ?? not yet implemented */
37 //#define NO_THREAD
38
39 /*******************************************************************************
40  * Debugging options - define or undefine symbols
41  *******************************************************************************/
42
43 /* General debugging support */
44 #define DEBUG
45
46 /* Modules specific debugging */
47 #define DEBUG_INTF
48 #define DEBUG_INPUT
49 #define DEBUG_AUDIO
50 #define DEBUG_VIDEO
51
52 /* Debugging log file - if defined, a file can be used to store all messages. If
53  * DEBUG_LOG_ONLY is defined, debug messages will only be printed to the log and
54  * will not appear on the screen */
55 //#define DEBUG_LOG       "vlc-debug.log"
56 //#define DEBUG_LOG_ONLY  
57
58 /* ?? VOUT_DEBUG and co have changed ! */
59
60 /*******************************************************************************
61  * Common settings
62  *******************************************************************************/
63
64 /* Automagically spawn input, audio and video threads ? */
65 #define AUTO_SPAWN
66
67 /* Startup script */
68 #define INIT_SCRIPT     "vlc.init"
69
70 /* ?? */
71 #define THREAD_SLEEP    100000
72
73 /*
74  * X11/XLib settings
75  */
76
77 /* Default font used when a wished font could not be loaded - note that this
78  * font should be universal, else the program will exit when it can't find
79  * a font */
80 #define X11_DEFAULT_FONT                "fixed"
81
82 /*
83  * Decoders FIFO configuration
84  */
85
86 /* Size of the FIFO. FIFO_SIZE+1 must be a multiple of 2 */
87 #define FIFO_SIZE                       1023
88
89 /*******************************************************************************
90  * Input thread configuration
91  *******************************************************************************/
92
93 /* ?? */
94 #define INPUT_IDLE_SLEEP                100000
95
96 /*
97  * General limitations
98  */
99
100 /* Broadcast address, in case of a broadcasted stream */
101 #define INPUT_BCAST_ADDR                "138.195.143.255"
102
103 /* Maximum number of input threads - this value is used exclusively by
104  * interface, and is in fact an interface limitation */
105 #define INPUT_MAX_THREADS               10
106
107 /* Maximum number of programs definitions in a TS stream */
108 #define INPUT_MAX_PGRM                  10
109
110 /* Maximum number of ES definitions in a TS stream */
111 #define INPUT_MAX_ES                    10
112
113 /* Maximum number of ES in a single program */
114 #define INPUT_MAX_PROGRAM_ES            10
115
116 /* Maximum number of selected ES in an input thread */
117 #define INPUT_MAX_SELECTED_ES           10
118
119 /* Maximum number of TS packets in the client at any time
120  * INPUT_MAX_TS + 1 must be a power of 2, to optimize the %(INPUT_MAX_TS+1)
121  * operation with a &INPUT_MAX_TS in the case of a fifo netlist.
122  * It should be > number of fifos * FIFO_SIZE to avoid input deadlock. */
123 #define INPUT_MAX_TS                    32767      /* INPUT_MAX_TS + 1 = 2^15 */
124
125 /* Same thing with PES packets */
126 #define INPUT_MAX_PES                   16383
127
128 /* Maximum number of TS packets we read from the socket in one readv().
129  * Since you can't put more than 7 TS packets in an Ethernet frame,
130  * the maximum value is 7. This number should also limit the stream server,
131  * otherwise any supplementary packet is lost. */
132 #define INPUT_TS_READ_ONCE              7
133
134 /* Use a LIFO or FIFO for TS netlist ? */
135 #undef INPUT_LIFO_TS_NETLIST
136
137 /* Use a LIFO or FIFO for PES netlist ? */
138 #undef INPUT_LIFO_PES_NETLIST
139
140 /* Maximum length of a hostname */
141 #define INPUT_MAX_HOSTNAME_LENGTH       100
142
143
144 /* Default input method */
145 #define INPUT_DEFAULT_METHOD            INPUT_METHOD_TS_UCAST
146
147 /* Default remote server */
148 #define VIDEOLAN_DEFAULT_SERVER         "vod.via.ecp.fr"
149
150 /* Default videolan port */
151 #define VIDEOLAN_DEFAULT_PORT           1234
152
153 /* Default videolan VLAN */
154 #define VIDEOLAN_DEFAULT_VLAN           3
155
156 /*
157  * Vlan method 
158  */ 
159
160 /* Default VLAN server */
161 #define VLAN_DEFAULT_SERVER             "vlanserver.via.ecp.fr"
162 #define VLAN_DEFAULT_SERVER_PORT        6010
163
164 /*******************************************************************************
165  * Audio output thread configuration
166  *******************************************************************************/
167
168 /*******************************************************************************
169  * Video output thread configuration
170  *******************************************************************************/
171
172 /*
173  * Default settings for video output threads
174  */
175
176 /* Title of the window */
177 #define VOUT_TITLE                      "VideoLAN Client: output"
178
179 /* Default use of XShm extension */
180 #define VOUT_SHM_EXT                    1
181
182 /* Dimensions for display window */
183 #define VOUT_WIDTH                      544
184 #define VOUT_HEIGHT                     576
185
186 /* Default heap size */
187 #define VOUT_HEAP_SIZE                  100
188
189 /*
190  * Limitations
191  */
192
193 /* Maximum number of video output threads - this value is used exclusively by
194  * interface, and is in fact an interface limitation */
195 #define VOUT_MAX_THREADS                10
196
197 /* Maximum number of video streams per video output thread */
198 #define VOUT_MAX_STREAMS                10
199
200 /* Maximum number of pictures which can be rendered in one loop, plus one */
201 #define VOUT_MAX_PICTURES               10
202
203 /*
204  * Other settings
205  */
206
207 /* Time during which the thread will sleep if it has nothing to 
208  * display (in micro-seconds) */
209 /* ?? this constant will probably evolve to a calculated value */
210 #define VOUT_IDLE_SLEEP                 50000
211
212 /* Maximum lap of time allowed between the beginning of rendering and
213  * display. If, compared to the current date, the next image is too
214  * late, the thread will perform an idle loop. This time should be
215  * at least VOUT_IDLE_SLEEP plus the time required to render a few
216  * images, to avoid trashing of decoded images */
217 /* ?? this constant will probably evolve to a calculated value */
218 #define VOUT_DISPLAY_DELAY              150000
219
220 /* Maximum lap of time during which images are rendered in the same 
221  * time. It should be greater than the maximum time between two succesive
222  * images to avoid useless renderings and calls to the display driver,
223  * but not to high to avoid desynchronization */
224 /* ?? this constant will probably evolve to a calculated value */
225 #define VOUT_DISPLAY_TOLERANCE          150000
226
227 /*******************************************************************************
228  * Video parser configuration
229  *******************************************************************************/
230
231 #define VPAR_IDLE_SLEEP                 100000
232
233 /* Number of macroblock buffers available. It should be always greater than
234  * twice the number of macroblocks in a picture. VFIFO_SIZE + 1 should also
235  * be a power of two. */
236 #define VFIFO_SIZE                      4095
237
238 /* Maximum number of macroblocks in a picture. */
239 #define MAX_MB                          2048
240
241 /*******************************************************************************
242  * Video decoder configuration
243  *******************************************************************************/
244
245 #define VDEC_IDLE_SLEEP                 100000
246
247 /* Number of video_decoder threads to launch on startup of the video_parser.
248  * It should always be less than half the number of macroblocks of a
249  * picture. */
250 #define NB_VDEC                         1
251
252 /*******************************************************************************
253  * Generic decoder configuration
254  *******************************************************************************/
255
256 #define GDEC_IDLE_SLEEP                 100000
257
258 /*******************************************************************************
259  * Interface (main) thread configuration
260  *******************************************************************************/
261
262 /*
263  * Interface configuration
264  */
265
266 /* Base delay in micro second for interface sleeps ?? */
267 #define INTF_IDLE_SLEEP                 100000
268
269 /* Maximal number of arguments on a command line, including the function name */
270 #define INTF_MAX_ARGS                   20
271
272 /* Maximal size of a command line in a script */
273 #define INTF_MAX_CMD_SIZE               240
274
275 /*
276  * Messages functions
277  */
278
279 /* Maximal size of the message queue - in case of overflow, all messages in the
280  * queue are printed by the calling thread */
281 #define INTF_MSG_QSIZE                  32
282
283 /* Define to enable messages queues - disabling messages queue can be usefull
284  * when debugging, since it allows messages which would not otherwise be printed,
285  * due to a crash, to be printed anyway */
286 /*#define INTF_MSG_QUEUE*/
287
288 /* Format of the header for debug messages. The arguments following this header
289  * are the file (char *), the function (char *) and the line (int) in which the
290  * message function was called */
291 #define INTF_MSG_DBG_FORMAT "## %s:%s(),%i: "
292
293 /* Filename to log message
294  * Note that messages are only logged when debugging */
295 //#define INTF_MSG_LOGFILE "vlc.log"
296
297 /*
298  * X11 console properties
299  */
300
301 /* Title of the X11 console interface window */
302 #define INTF_XCONSOLE_TITLE             "VideoLAN Client: console"
303
304 /* Welcome message: this message is always displayed when a new console is
305  * openned */
306 #define INTF_XCONSOLE_WELCOME_MSG       COPYRIGHT_MESSAGE "try `help' to have a list of available commands"
307
308 /* Background pixmap - if not defined, no pixmap is used */
309 #define INTF_XCONSOLE_BACKGROUND_PIXMAP "Resources/background.xpm"
310
311 /* Default X11 console interface window geometry. It should at least give a
312  * default size */
313 #define INTF_XCONSOLE_GEOMETRY          "400x100"
314
315 /* Font used in console. If first font is not found, the fallback font is
316  * used. Therefore, the fallback font should be a universal one. */
317 #define INTF_XCONSOLE_FONT              "-*-helvetica-medium-r-normal-*-18-*-*-*-*-*-iso8859-1"
318
319 /* Number of memorized lines in X11 console window text zone */
320 #define INTF_XCONSOLE_MAX_LINES         100
321
322 /* Maximal number of commands which can be saved in history list */
323 #define INTF_XCONSOLE_HISTORY_SIZE      20
324
325 /* Maximum width of a line in an X11 console window. If a larger line is
326  * printed, it will be wrapped. */
327 #define INTF_XCONSOLE_MAX_LINE_WIDTH    120
328
329
330 /*******************************************************************************
331  * Network and VLAN management
332  *******************************************************************************/
333 /* Default network interface to use */
334 #define NET_DFLT_IF                     "eth0"
335
336 /* Default VLANserver address */
337 #define VLAN_DFLT_VLANSRV               "vlanserver"
338
339 /* Default VLANserver port */
340 #define VLAN_DFLT_VLANPORT              "6010"
341
342 /* Client identification */
343 #define VLAN_LOGIN                      "guest"
344 #define VLAN_PASSWD                     "none"