~ubuntu-branches/debian/sid/mplayer/sid

« back to all changes in this revision

Viewing changes to cfg-mplayer.h

  • Committer: Bazaar Package Importer
  • Author(s): A Mennucc1
  • Date: 2009-03-23 10:05:45 UTC
  • mfrom: (4.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090323100545-x8h79obawnnte7kk
Tags: 1.0~rc2+svn20090303-5
debian/control : move docbook-xml,docbook-xsl,xsltproc from 
Build-Depends-Indep to Build-Depends, since they are needed to run
configure

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef MPLAYER_CFG_MPLAYER_H
 
2
#define MPLAYER_CFG_MPLAYER_H
 
3
 
1
4
/*
2
5
 * config for cfgparser
3
6
 */
7
10
extern int key_fifo_size;
8
11
extern unsigned doubleclick_time;
9
12
 
10
 
#ifdef HAVE_FBDEV
11
13
extern char *fb_mode_cfgfile;
12
14
extern char *fb_mode_name;
13
 
#endif
14
 
#ifdef HAVE_DIRECTFB
15
15
extern char *dfb_params;
16
 
#endif
17
 
#ifdef USE_FAKE_MONO
18
 
extern int fakemono; // defined in dec_audio.c
19
 
#endif
20
16
 
21
 
#ifdef HAVE_LIRC
22
17
extern char *lirc_configfile;
23
 
#endif
24
18
 
25
19
extern float vo_panscanrange;
26
20
/* only used at startup (setting these values from configfile) */
34
28
extern char *ao_outputfilename;
35
29
extern int ao_pcm_waveheader;
36
30
 
37
 
#ifdef HAVE_X11
38
31
extern int fs_layer;
39
32
extern int stop_xscreensaver;
40
 
#endif
41
33
 
42
 
#ifdef HAVE_MENU
43
34
extern int menu_startup;
44
35
extern int menu_keepdir;
45
36
extern char *menu_chroot;
46
 
#ifdef  USE_FRIBIDI
47
37
extern char *menu_fribidi_charset;
48
38
extern int menu_flip_hebrew;
49
39
extern int menu_fribidi_flip_commas;
50
 
#endif
51
 
#endif /* HAVE_MENU */
52
 
 
53
 
#ifdef HAVE_ZR
54
 
extern int vo_zr_parseoption(m_option_t* conf, char *opt, char * param);
55
 
extern void vo_zr_revertoption(m_option_t* opt,char* pram);
56
 
#endif
57
 
 
58
 
#ifdef HAVE_DXR2
 
40
 
 
41
extern char *unrar_executable;
 
42
 
 
43
int vo_zr_parseoption(const m_option_t* conf, char *opt, char * param);
 
44
void vo_zr_revertoption(const m_option_t* opt,char* pram);
 
45
 
59
46
extern m_option_t dxr2_opts[];
60
 
#endif
61
47
 
62
 
#ifdef HAVE_NEW_GUI
63
48
extern char * skinName;
64
 
extern int enqueue;
65
49
extern int guiWinID;
66
 
#endif
67
50
 
68
51
 
69
52
/* from libvo/aspect.c */
71
54
extern float monitor_pixel_aspect;
72
55
 
73
56
extern int sws_flags;
74
 
extern int readPPOpt(void *conf, char *arg);
75
 
extern void revertPPOpt(void *conf, char* opt);
 
57
int readPPOpt(void *conf, char *arg);
 
58
void revertPPOpt(void *conf, char* opt);
76
59
extern char* pp_help;
77
60
 
78
 
m_option_t vd_conf[]={
 
61
const m_option_t vd_conf[]={
79
62
        {"help", "Use MPlayer with an appropriate video file instead of live partners to avoid vd.\n", CONF_TYPE_PRINT, CONF_NOCFG|CONF_GLOBAL, 0, 0, NULL},
80
63
        {NULL, NULL, 0, 0, 0, 0, NULL}
81
64
};
82
65
 
83
 
#ifdef USE_TV
84
 
m_option_t tvscan_conf[]={
 
66
#ifdef CONFIG_TV
 
67
const m_option_t tvscan_conf[]={
85
68
        {"autostart", &stream_tv_defaults.scan, CONF_TYPE_FLAG, 0, 0, 1, NULL},
86
69
        {"threshold", &stream_tv_defaults.scan_threshold, CONF_TYPE_INT, CONF_RANGE, 1, 100, NULL},
87
70
        {"period", &stream_tv_defaults.scan_period, CONF_TYPE_FLOAT, CONF_RANGE, 0.1, 2.0, NULL},
101
84
 * by Folke
102
85
 */
103
86
 
104
 
m_option_t mplayer_opts[]={
 
87
const m_option_t mplayer_opts[]={
105
88
        /* name, pointer, type, flags, min, max */
106
89
 
107
90
//---------------------- libao/libvo options ------------------------
125
108
        {"nosoftvol", &soft_vol, CONF_TYPE_FLAG, 0, 1, 0, NULL},
126
109
        {"softvol-max", &soft_vol_max, CONF_TYPE_FLOAT, CONF_RANGE, 10, 10000, NULL},
127
110
        {"volstep", &volstep, CONF_TYPE_INT, CONF_RANGE, 0, 100, NULL},
 
111
        {"volume", &start_volume, CONF_TYPE_FLOAT, CONF_RANGE, -1, 10000, NULL},
128
112
        {"master", "Option -master has been removed, use -af volume instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
129
113
        // override audio buffer size (used only by -ao oss, anyway obsolete...)
130
114
        {"abs", &ao_data.buffersize, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL},
140
124
            CONF_TYPE_PRINT, 0, 0, 0, NULL},
141
125
        {"edlout", &edl_output_filename,  CONF_TYPE_STRING, 0, 0, 0, NULL}, 
142
126
 
143
 
#ifdef HAVE_X11
 
127
#ifdef CONFIG_X11
144
128
        {"display", &mDisplayName, CONF_TYPE_STRING, 0, 0, 0, NULL},
145
129
#endif
146
130
 
147
131
        // -vo png only:
148
 
#ifdef HAVE_PNG
 
132
#ifdef CONFIG_PNG
149
133
        {"z", "-z has been removed. Use -vo png:z=<0-9> instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
150
134
#endif
151
135
        // -vo jpeg only:
152
 
#ifdef HAVE_JPEG
 
136
#ifdef CONFIG_JPEG
153
137
        {"jpeg", "-jpeg has been removed. Use -vo jpeg:<options> instead.\n",
154
138
            CONF_TYPE_PRINT, 0, 0, 0, NULL},
155
139
#endif
162
146
        {"sdla", "Use -ao sdl:driver instead of -ao sdl -sdla driver.\n",
163
147
            CONF_TYPE_PRINT, 0, 0, 0, NULL},
164
148
 
165
 
#if defined(HAVE_FBDEV)||defined(HAVE_VESA) 
 
149
#if defined(CONFIG_FBDEV) || defined(CONFIG_VESA)
166
150
       {"monitor-hfreq", &monitor_hfreq_str, CONF_TYPE_STRING, 0, 0, 0, NULL}, 
167
151
       {"monitor-vfreq", &monitor_vfreq_str, CONF_TYPE_STRING, 0, 0, 0, NULL}, 
168
152
       {"monitor-dotclock", &monitor_dotclock_str, CONF_TYPE_STRING, 0, 0, 0, NULL}, 
169
153
#endif 
170
154
 
171
 
#ifdef HAVE_FBDEV
 
155
#ifdef CONFIG_FBDEV
172
156
        {"fbmode", &fb_mode_name, CONF_TYPE_STRING, 0, 0, 0, NULL},
173
157
        {"fbmodeconfig", &fb_mode_cfgfile, CONF_TYPE_STRING, 0, 0, 0, NULL},
174
158
#endif
175
 
#ifdef HAVE_DIRECTFB
 
159
#ifdef CONFIG_DIRECTFB
176
160
#if DIRECTFBVERSION > 912
177
161
        {"dfbopts", "-dfbopts has been removed. Use -vf directfb:dfbopts=... instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
178
162
#endif
186
170
        {"screenh", &vo_screenheight, CONF_TYPE_INT, CONF_RANGE|CONF_OLD, 0, 4096, NULL},
187
171
        // Geometry string
188
172
        {"geometry", &vo_geometry, CONF_TYPE_STRING, 0, 0, 0, NULL},
189
 
        // set aspect ratio of monitor - useful for 16:9 TVout
 
173
        // set aspect ratio of monitor - useful for 16:9 TV-out
190
174
        {"monitoraspect", &force_monitor_aspect, CONF_TYPE_FLOAT, CONF_RANGE, 0.0, 9.0, NULL},
191
175
        {"monitorpixelaspect", &monitor_pixel_aspect, CONF_TYPE_FLOAT, CONF_RANGE, 0.2, 9.0, NULL},
192
176
        // video mode switching: (x11,xv,dga)
215
199
        
216
200
    {"adapter", &vo_adapter_num, CONF_TYPE_INT, CONF_RANGE, 0, 5, NULL},
217
201
    {"refreshrate",&vo_refresh_rate,CONF_TYPE_INT,CONF_RANGE, 0,100, NULL},
218
 
        {"wid", &WinID, CONF_TYPE_INT, 0, 0, 0, NULL},
219
 
#ifdef HAVE_X11
 
202
        {"wid", &WinID, CONF_TYPE_INT64, 0, 0, 0, NULL},
 
203
#ifdef CONFIG_X11
220
204
        // x11,xv,xmga,xvidix
221
205
        {"icelayer", "-icelayer has been removed. Use -fstype layer:<number> instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
222
206
        {"stop-xscreensaver", &stop_xscreensaver, CONF_TYPE_FLAG, 0, 0, 1, NULL},
224
208
        {"stop_xscreensaver", "Use -stop-xscreensaver instead, options with _ have been obsoleted.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
225
209
        {"fstype", &vo_fstype_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
226
210
#endif
 
211
        {"heartbeat-cmd", &heartbeat_cmd, CONF_TYPE_STRING, 0, 0, 0, NULL},
227
212
        {"mouseinput", &vo_nomouse_input, CONF_TYPE_FLAG, 0, 1, 0, NULL},
228
213
        {"nomouseinput", &vo_nomouse_input, CONF_TYPE_FLAG,0, 0, 1, NULL},
229
214
 
242
227
        {"vaa_dr", "-vaa_dr has been removed, use -dr.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
243
228
        {"vaa_nodr", "-vaa_nodr has been removed, use -nodr.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
244
229
 
245
 
#ifdef HAVE_AA
 
230
#ifdef CONFIG_AA
246
231
        // -vo aa
247
232
        {"aa*", "-aa* has been removed. Use -vo aa:suboption instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
248
233
#endif
249
234
 
250
 
#ifdef HAVE_ZR
 
235
#ifdef CONFIG_ZR
251
236
        // -vo zr
252
237
        {"zr*", vo_zr_parseoption, CONF_TYPE_FUNC_FULL, 0, 0, 0, &vo_zr_revertoption },
253
238
#endif
254
239
 
255
 
#ifdef HAVE_DXR2
 
240
#ifdef CONFIG_DXR2
256
241
        {"dxr2", &dxr2_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
257
242
#endif
258
243
 
261
246
 
262
247
        {"use-filedir-conf", &use_filedir_conf, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
263
248
        {"nouse-filedir-conf", &use_filedir_conf, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
264
 
#ifdef CRASH_DEBUG
 
249
#ifdef CONFIG_CRASH_DEBUG
265
250
        {"crash-debug", &crash_debug, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
266
251
        {"nocrash-debug", &crash_debug, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
267
252
#endif
268
253
        {"osdlevel", &osd_level, CONF_TYPE_INT, CONF_RANGE, 0, 3, NULL},
269
254
        {"osd-duration", &osd_duration, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL},
270
 
#ifdef HAVE_MENU
 
255
#ifdef CONFIG_MENU
271
256
        {"menu", &use_menu, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
272
257
        {"nomenu", &use_menu, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
273
258
        {"menu-root", &menu_root, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
275
260
        {"menu-startup", &menu_startup, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
276
261
        {"menu-keepdir", &menu_keepdir, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
277
262
        {"menu-chroot", &menu_chroot, CONF_TYPE_STRING, 0, 0, 0, NULL},
278
 
#ifdef USE_FRIBIDI
 
263
#ifdef CONFIG_FRIBIDI
279
264
        {"menu-fribidi-charset", &menu_fribidi_charset, CONF_TYPE_STRING, 0, 0, 0, NULL},
280
265
        {"menu-flip-hebrew", &menu_flip_hebrew, CONF_TYPE_FLAG, 0, 0, 1, NULL},
281
266
        {"menu-noflip-hebrew", &menu_flip_hebrew, CONF_TYPE_FLAG, 0, 1, 0, NULL},
282
267
        {"menu-flip-hebrew-commas", &menu_fribidi_flip_commas, CONF_TYPE_FLAG, 0, 1, 0, NULL},
283
268
        {"menu-noflip-hebrew-commas", &menu_fribidi_flip_commas, CONF_TYPE_FLAG, 0, 0, 1, NULL},
284
 
#endif /* USE_FRIBIDI */
 
269
#endif /* CONFIG_FRIBIDI */
285
270
#else
286
271
        {"menu", "OSD menu support was not compiled in.\n", CONF_TYPE_PRINT,0, 0, 0, NULL},
287
 
#endif /* HAVE_MENU */
 
272
#endif /* CONFIG_MENU */
288
273
 
289
274
        // these should be moved to -common, and supported in MEncoder
290
275
        {"vobsub", &vobsub_name, CONF_TYPE_STRING, 0, 0, 0, NULL},
291
276
        {"vobsubid", &vobsub_id, CONF_TYPE_INT, CONF_RANGE, 0, 31, NULL},
 
277
#ifdef CONFIG_UNRAR_EXEC
 
278
        {"unrarexec", &unrar_executable, CONF_TYPE_STRING, 0, 0, 0, NULL},
 
279
#endif
292
280
 
293
281
        {"sstep", &step_sec, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL},
294
282
 
313
301
        {"dumpjacosub", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 8, NULL},
314
302
        {"dumpsami", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 9, NULL},
315
303
 
316
 
#ifdef HAVE_LIRC
 
304
#ifdef CONFIG_LIRC
317
305
        {"lircconf", &lirc_configfile, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
318
306
#endif
319
307
 
320
308
        {"gui", "The -gui option will only work as the first command line argument.\n", CONF_TYPE_PRINT, 0, 0, 0, (void *)1},
321
309
        {"nogui", "The -nogui option will only work as the first command line argument.\n", CONF_TYPE_PRINT, 0, 0, 0, (void *)1},
322
310
      
323
 
#ifdef HAVE_NEW_GUI
 
311
#ifdef CONFIG_GUI
324
312
        {"skin", &skinName, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
325
313
        {"enqueue", &enqueue, CONF_TYPE_FLAG, 0, 0, 1, NULL},
326
314
        {"noenqueue", &enqueue, CONF_TYPE_FLAG, 0, 1, 0, NULL},
332
320
        {"playlist", NULL, CONF_TYPE_STRING, 0, 0, 0, NULL},
333
321
 
334
322
        // a-v sync stuff:
335
 
        {"correct-pts", &correct_pts, CONF_TYPE_FLAG, 0, 0, 1, NULL},
336
 
        {"no-correct-pts", &correct_pts, CONF_TYPE_FLAG, 0, 1, 0, NULL},
 
323
        {"correct-pts", &user_correct_pts, CONF_TYPE_FLAG, 0, 0, 1, NULL},
 
324
        {"nocorrect-pts", &user_correct_pts, CONF_TYPE_FLAG, 0, 1, 0, NULL},
337
325
        {"noautosync", &autosync, CONF_TYPE_FLAG, 0, 0, -1, NULL},
338
326
        {"autosync", &autosync, CONF_TYPE_INT, CONF_RANGE, 0, 10000, NULL},
339
327
//      {"dapsync", &dapsync, CONF_TYPE_FLAG, 0, 0, 1, NULL},
361
349
        {"mouse-movements", &enable_mouse_movements, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
362
350
        {"nomouse-movements", &enable_mouse_movements, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
363
351
        {"doubleclick-time", &doubleclick_time, CONF_TYPE_INT, CONF_RANGE, 0, 1000, NULL},
364
 
#ifdef USE_TV
 
352
#ifdef CONFIG_TV
365
353
        {"tvscan", tvscan_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
366
354
#else
367
355
        {"tvscan", "MPlayer was compiled without TV interface support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
368
 
#endif
369
 
 
370
 
#define MAIN_CONF
371
 
#include "cfg-common.h"
372
 
#undef MAIN_CONF
373
 
        
 
356
#endif /* CONFIG_TV */
 
357
 
 
358
#include "cfg-common-opts.h"
 
359
 
374
360
        {"list-properties", &list_properties, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
375
361
        {"identify", &mp_msg_levels[MSGT_IDENTIFY], CONF_TYPE_FLAG, CONF_GLOBAL, 0, MSGL_V, NULL},
376
362
        {"-help", help_text, CONF_TYPE_PRINT, CONF_NOCFG|CONF_GLOBAL, 0, 0, NULL},
380
366
        {"vd", vd_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
381
367
        {NULL, NULL, 0, 0, 0, 0, NULL}
382
368
};
 
369
 
 
370
#endif /* MPLAYER_CFG_MPLAYER_H */
 
371