Mercurial > mplayer.hg
comparison cfg-mplayer.h @ 27341:e7c989f7a7c9
Start unifying names of internal preprocessor directives.
Replace all USE_ prefixes by CONFIG_ prefixes to indicate
options which are configurable.
author | diego |
---|---|
date | Wed, 30 Jul 2008 12:01:30 +0000 |
parents | 4be280b64af9 |
children | 5fe6a8adf569 |
comparison
equal
deleted
inserted
replaced
27340:33274ce3cce0 | 27341:e7c989f7a7c9 |
---|---|
61 const m_option_t vd_conf[]={ | 61 const m_option_t vd_conf[]={ |
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}, | 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}, |
63 {NULL, NULL, 0, 0, 0, 0, NULL} | 63 {NULL, NULL, 0, 0, 0, 0, NULL} |
64 }; | 64 }; |
65 | 65 |
66 #ifdef USE_TV | 66 #ifdef CONFIG_TV |
67 const m_option_t tvscan_conf[]={ | 67 const m_option_t tvscan_conf[]={ |
68 {"autostart", &stream_tv_defaults.scan, CONF_TYPE_FLAG, 0, 0, 1, NULL}, | 68 {"autostart", &stream_tv_defaults.scan, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
69 {"threshold", &stream_tv_defaults.scan_threshold, CONF_TYPE_INT, CONF_RANGE, 1, 100, NULL}, | 69 {"threshold", &stream_tv_defaults.scan_threshold, CONF_TYPE_INT, CONF_RANGE, 1, 100, NULL}, |
70 {"period", &stream_tv_defaults.scan_period, CONF_TYPE_FLOAT, CONF_RANGE, 0.1, 2.0, NULL}, | 70 {"period", &stream_tv_defaults.scan_period, CONF_TYPE_FLOAT, CONF_RANGE, 0.1, 2.0, NULL}, |
71 {NULL, NULL, 0, 0, 0, 0, NULL} | 71 {NULL, NULL, 0, 0, 0, 0, NULL} |
257 {"menu-root", &menu_root, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL}, | 257 {"menu-root", &menu_root, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL}, |
258 {"menu-cfg", &menu_cfg, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL}, | 258 {"menu-cfg", &menu_cfg, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL}, |
259 {"menu-startup", &menu_startup, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL}, | 259 {"menu-startup", &menu_startup, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL}, |
260 {"menu-keepdir", &menu_keepdir, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL}, | 260 {"menu-keepdir", &menu_keepdir, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL}, |
261 {"menu-chroot", &menu_chroot, CONF_TYPE_STRING, 0, 0, 0, NULL}, | 261 {"menu-chroot", &menu_chroot, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
262 #ifdef USE_FRIBIDI | 262 #ifdef CONFIG_FRIBIDI |
263 {"menu-fribidi-charset", &menu_fribidi_charset, CONF_TYPE_STRING, 0, 0, 0, NULL}, | 263 {"menu-fribidi-charset", &menu_fribidi_charset, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
264 {"menu-flip-hebrew", &menu_flip_hebrew, CONF_TYPE_FLAG, 0, 0, 1, NULL}, | 264 {"menu-flip-hebrew", &menu_flip_hebrew, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
265 {"menu-noflip-hebrew", &menu_flip_hebrew, CONF_TYPE_FLAG, 0, 1, 0, NULL}, | 265 {"menu-noflip-hebrew", &menu_flip_hebrew, CONF_TYPE_FLAG, 0, 1, 0, NULL}, |
266 {"menu-flip-hebrew-commas", &menu_fribidi_flip_commas, CONF_TYPE_FLAG, 0, 1, 0, NULL}, | 266 {"menu-flip-hebrew-commas", &menu_fribidi_flip_commas, CONF_TYPE_FLAG, 0, 1, 0, NULL}, |
267 {"menu-noflip-hebrew-commas", &menu_fribidi_flip_commas, CONF_TYPE_FLAG, 0, 0, 1, NULL}, | 267 {"menu-noflip-hebrew-commas", &menu_fribidi_flip_commas, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
268 #endif /* USE_FRIBIDI */ | 268 #endif /* CONFIG_FRIBIDI */ |
269 #else | 269 #else |
270 {"menu", "OSD menu support was not compiled in.\n", CONF_TYPE_PRINT,0, 0, 0, NULL}, | 270 {"menu", "OSD menu support was not compiled in.\n", CONF_TYPE_PRINT,0, 0, 0, NULL}, |
271 #endif /* HAVE_MENU */ | 271 #endif /* HAVE_MENU */ |
272 | 272 |
273 // these should be moved to -common, and supported in MEncoder | 273 // these should be moved to -common, and supported in MEncoder |
274 {"vobsub", &vobsub_name, CONF_TYPE_STRING, 0, 0, 0, NULL}, | 274 {"vobsub", &vobsub_name, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
275 {"vobsubid", &vobsub_id, CONF_TYPE_INT, CONF_RANGE, 0, 31, NULL}, | 275 {"vobsubid", &vobsub_id, CONF_TYPE_INT, CONF_RANGE, 0, 31, NULL}, |
276 #ifdef USE_UNRAR_EXEC | 276 #ifdef CONFIG_UNRAR_EXEC |
277 {"unrarexec", &unrar_executable, CONF_TYPE_STRING, 0, 0, 0, NULL}, | 277 {"unrarexec", &unrar_executable, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
278 #endif | 278 #endif |
279 | 279 |
280 {"sstep", &step_sec, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL}, | 280 {"sstep", &step_sec, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL}, |
281 | 281 |
346 {"noconsolecontrols", &noconsolecontrols, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL}, | 346 {"noconsolecontrols", &noconsolecontrols, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL}, |
347 {"consolecontrols", &noconsolecontrols, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL}, | 347 {"consolecontrols", &noconsolecontrols, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL}, |
348 {"mouse-movements", &enable_mouse_movements, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL}, | 348 {"mouse-movements", &enable_mouse_movements, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL}, |
349 {"nomouse-movements", &enable_mouse_movements, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL}, | 349 {"nomouse-movements", &enable_mouse_movements, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL}, |
350 {"doubleclick-time", &doubleclick_time, CONF_TYPE_INT, CONF_RANGE, 0, 1000, NULL}, | 350 {"doubleclick-time", &doubleclick_time, CONF_TYPE_INT, CONF_RANGE, 0, 1000, NULL}, |
351 #ifdef USE_TV | 351 #ifdef CONFIG_TV |
352 {"tvscan", tvscan_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, | 352 {"tvscan", tvscan_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, |
353 #else | 353 #else |
354 {"tvscan", "MPlayer was compiled without TV interface support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL}, | 354 {"tvscan", "MPlayer was compiled without TV interface support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL}, |
355 #endif /* USE_TV */ | 355 #endif /* CONFIG_TV */ |
356 | 356 |
357 #include "cfg-common-opts.h" | 357 #include "cfg-common-opts.h" |
358 | 358 |
359 {"list-properties", &list_properties, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL}, | 359 {"list-properties", &list_properties, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL}, |
360 {"identify", &mp_msg_levels[MSGT_IDENTIFY], CONF_TYPE_FLAG, CONF_GLOBAL, 0, MSGL_V, NULL}, | 360 {"identify", &mp_msg_levels[MSGT_IDENTIFY], CONF_TYPE_FLAG, CONF_GLOBAL, 0, MSGL_V, NULL}, |