comparison cfg-common.h @ 31368:f73663d84979

Replace common options template by a common options array. This solution works just as well, but avoids a separate template file that needs to be #included from multiple places. The end result is simpler since common options and those MPlayer and MEncoder are now in only one file.
author diego
date Wed, 16 Jun 2010 18:59:10 +0000
parents efe79d7c42ad
children aba3834b6411
comparison
equal deleted inserted replaced
31367:a5fcacd9ae65 31368:f73663d84979
24 #include "m_config.h" 24 #include "m_config.h"
25 #include "m_option.h" 25 #include "m_option.h"
26 26
27 #include "libmpcodecs/ad.h" 27 #include "libmpcodecs/ad.h"
28 #include "libmpcodecs/vd.h" 28 #include "libmpcodecs/vd.h"
29 #include "libmpdemux/demux_ts.h"
29 #include "osdep/priority.h" 30 #include "osdep/priority.h"
30 31
31 extern char *mp_msg_charset; 32 extern char *mp_msg_charset;
32 extern int mp_msg_color; 33 extern int mp_msg_color;
33 extern int mp_msg_module; 34 extern int mp_msg_module;
68 extern int ts_prog; 69 extern int ts_prog;
69 extern int ts_keep_broken; 70 extern int ts_keep_broken;
70 extern off_t ts_probe; 71 extern off_t ts_probe;
71 extern int audio_substream_id; 72 extern int audio_substream_id;
72 extern off_t ps_probe; 73 extern off_t ps_probe;
74
75 extern int sws_flags;
76 extern char* pp_help;
77
73 78
74 #include "stream/tv.h" 79 #include "stream/tv.h"
75 #include "stream/stream_radio.h" 80 #include "stream/stream_radio.h"
76 81
77 82
366 extern const m_option_t noconfig_opts[]; 371 extern const m_option_t noconfig_opts[];
367 372
368 extern const m_option_t lavc_decode_opts_conf[]; 373 extern const m_option_t lavc_decode_opts_conf[];
369 extern const m_option_t xvid_dec_opts[]; 374 extern const m_option_t xvid_dec_opts[];
370 375
376 const m_option_t common_opts[] = {
377 // ------------------------- common options --------------------
378 {"quiet", &quiet, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
379 {"noquiet", &quiet, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
380 {"really-quiet", &verbose, CONF_TYPE_FLAG, CONF_GLOBAL|CONF_PRE_PARSE, 0, -10, NULL},
381 {"v", cfg_inc_verbose, CONF_TYPE_FUNC, CONF_GLOBAL|CONF_NOSAVE, 0, 0, NULL},
382 {"msglevel", msgl_config, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
383 {"msgcolor", &mp_msg_color, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
384 {"nomsgcolor", &mp_msg_color, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
385 {"msgmodule", &mp_msg_module, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
386 {"nomsgmodule", &mp_msg_module, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
387 #ifdef CONFIG_ICONV
388 {"msgcharset", &mp_msg_charset, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
389 #endif
390 {"include", cfg_include, CONF_TYPE_FUNC_PARAM, CONF_NOSAVE, 0, 0, NULL},
391 #ifdef CONFIG_PRIORITY
392 {"priority", &proc_priority, CONF_TYPE_STRING, 0, 0, 0, NULL},
393 #endif
394 {"codecpath", &codec_path, CONF_TYPE_STRING, 0, 0, 0, NULL},
395 {"noconfig", noconfig_opts, CONF_TYPE_SUBCONFIG, CONF_GLOBAL|CONF_NOCFG|CONF_PRE_PARSE, 0, 0, NULL},
396
397 // ------------------------- stream options --------------------
398
399 #ifdef CONFIG_STREAM_CACHE
400 {"cache", &stream_cache_size, CONF_TYPE_INT, CONF_RANGE, 32, 1048576, NULL},
401 {"nocache", &stream_cache_size, CONF_TYPE_FLAG, 0, 1, 0, NULL},
402 {"cache-min", &stream_cache_min_percent, CONF_TYPE_FLOAT, CONF_RANGE, 0, 99, NULL},
403 {"cache-seek-min", &stream_cache_seek_min_percent, CONF_TYPE_FLOAT, CONF_RANGE, 0, 99, NULL},
404 #else
405 {"cache", "MPlayer was compiled without cache2 support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
406 #endif /* CONFIG_STREAM_CACHE */
407 {"vcd", "-vcd N has been removed, use vcd://N instead.\n", CONF_TYPE_PRINT, CONF_NOCFG ,0,0, NULL},
408 {"cuefile", "-cuefile has been removed, use cue://filename:N where N is the track number.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
409 {"cdrom-device", &cdrom_device, CONF_TYPE_STRING, 0, 0, 0, NULL},
410 #ifdef CONFIG_DVDREAD
411 {"dvd-device", &dvd_device, CONF_TYPE_STRING, 0, 0, 0, NULL},
412 {"dvd-speed", &dvd_speed, CONF_TYPE_INT, 0, 0, 0, NULL},
413 {"dvd", "-dvd N has been removed, use dvd://N instead.\n" , CONF_TYPE_PRINT, 0, 0, 0, NULL},
414 {"dvdangle", &dvd_angle, CONF_TYPE_INT, CONF_RANGE, 1, 99, NULL},
415 {"chapter", dvd_parse_chapter_range, CONF_TYPE_FUNC_PARAM, 0, 0, 0, NULL},
416 #else
417 {"dvd-device", "MPlayer was compiled without libdvdread support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
418 {"dvd-speed", "MPlayer was compiled without libdvdread support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
419 {"dvd", "MPlayer was compiled without libdvdread support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
420 #endif /* CONFIG_DVDREAD */
421 {"alang", &audio_lang, CONF_TYPE_STRING, 0, 0, 0, NULL},
422 {"slang", &dvdsub_lang, CONF_TYPE_STRING, 0, 0, 0, NULL},
423
424 {"dvdauth", "libcss is obsolete. Try libdvdread instead.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
425 {"dvdkey", "libcss is obsolete. Try libdvdread instead.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
426 {"csslib", "libcss is obsolete. Try libdvdread instead.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
427
428 #ifdef CONFIG_NETWORK
429 {"user", &network_username, CONF_TYPE_STRING, 0, 0, 0, NULL},
430 {"passwd", &network_password, CONF_TYPE_STRING, 0, 0, 0, NULL},
431 {"bandwidth", &network_bandwidth, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL},
432 {"user-agent", &network_useragent, CONF_TYPE_STRING, 0, 0, 0, NULL},
433 {"referrer", &network_referrer, CONF_TYPE_STRING, 0, 0, 0, NULL},
434 {"cookies", &network_cookies_enabled, CONF_TYPE_FLAG, 0, 0, 1, NULL},
435 {"nocookies", &network_cookies_enabled, CONF_TYPE_FLAG, 0, 1, 0, NULL},
436 {"cookies-file", &cookies_file, CONF_TYPE_STRING, 0, 0, 0, NULL},
437 {"prefer-ipv4", &network_prefer_ipv4, CONF_TYPE_FLAG, 0, 0, 1, NULL},
438 {"ipv4-only-proxy", &network_ipv4_only_proxy, CONF_TYPE_FLAG, 0, 0, 1, NULL},
439 {"reuse-socket", &reuse_socket, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
440 {"noreuse-socket", &reuse_socket, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
441 #ifdef HAVE_AF_INET6
442 {"prefer-ipv6", &network_prefer_ipv4, CONF_TYPE_FLAG, 0, 1, 0, NULL},
443 #else
444 {"prefer-ipv6", "MPlayer was compiled without IPv6 support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
445 #endif /* HAVE_AF_INET6 */
446
447 #else
448 {"user", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
449 {"passwd", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
450 {"bandwidth", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
451 {"user-agent", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
452 #endif /* CONFIG_NETWORK */
453
454 #ifdef CONFIG_LIVE555
455 {"sdp", "-sdp has been removed, use sdp://file instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
456 {"rtsp-stream-over-http", &rtsp_transport_http, CONF_TYPE_FLAG, 0, 0, 1, NULL},
457 #else
458 {"rtsp-stream-over-http", "-rtsp-stream-over-http requires the \"LIVE555 Streaming Media\" library.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
459 #endif /* CONFIG_LIVE555 */
460 #if defined(CONFIG_LIBNEMESI) || defined(CONFIG_LIVE555)
461 // -rtsp-stream-over-tcp option, specifying TCP streaming of RTP/RTCP
462 {"rtsp-stream-over-tcp", &rtsp_transport_tcp, CONF_TYPE_FLAG, 0, 0, 1, NULL},
463 #else
464 {"rtsp-stream-over-tcp", "-rtsp-stream-over-tcp requires the \"LIVE555 Streaming Media\" or \"libnemesi\" libraries.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
465 #endif /* defined(CONFIG_LIBNEMESI) || defined(CONFIG_LIVE555) */
466 #ifdef CONFIG_LIBNEMESI
467 {"rtsp-stream-over-sctp", &rtsp_transport_sctp, CONF_TYPE_FLAG, 0, 0, 1, NULL},
468 #else
469 {"rtsp-stream-over-sctp", "-rtsp-stream-over-sctp requires the \"libnemesi\" library\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
470 #endif /* CONFIG_LIBNEMESI */
471 #ifdef CONFIG_NETWORK
472 {"rtsp-port", &rtsp_port, CONF_TYPE_INT, CONF_RANGE, -1, 65535, NULL},
473 {"rtsp-destination", &rtsp_destination, CONF_TYPE_STRING, CONF_MIN, 0, 0, NULL},
474 #else
475 {"rtsp-port", "MPlayer was compiled without network support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
476 {"rtsp-destination", "MPlayer was compiled without network support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
477 #endif /* CONFIG_NETWORK */
478
479 // ------------------------- demuxer options --------------------
480
481 // number of frames to play/convert
482 {"frames", &play_n_frames_mf, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL},
483
484 // seek to byte/seconds position
485 {"sb", &seek_to_byte, CONF_TYPE_POSITION, CONF_MIN, 0, 0, NULL},
486 {"ss", &seek_to_sec, CONF_TYPE_TIME, 0, 0, 0, NULL},
487
488 // stop at given position
489 {"endpos", &end_at, CONF_TYPE_TIME_SIZE, 0, 0, 0, NULL},
490
491 {"edl", &edl_filename, CONF_TYPE_STRING, 0, 0, 0, NULL},
492
493 // AVI specific: force non-interleaved mode
494 {"ni", &force_ni, CONF_TYPE_FLAG, 0, 0, 1, NULL},
495 {"noni", &force_ni, CONF_TYPE_FLAG, 0, 1, 0, NULL},
496
497 // AVI and Ogg only: (re)build index at startup
498 {"noidx", &index_mode, CONF_TYPE_FLAG, 0, -1, 0, NULL},
499 {"idx", &index_mode, CONF_TYPE_FLAG, 0, -1, 1, NULL},
500 {"forceidx", &index_mode, CONF_TYPE_FLAG, 0, -1, 2, NULL},
501 {"saveidx", &index_file_save, CONF_TYPE_STRING, 0, 0, 0, NULL},
502 {"loadidx", &index_file_load, CONF_TYPE_STRING, 0, 0, 0, NULL},
503
504 // select audio/video/subtitle stream
505 {"aid", &audio_id, CONF_TYPE_INT, CONF_RANGE, -2, 8190, NULL},
506 {"ausid", &audio_substream_id, CONF_TYPE_INT, 0, 0, 0, NULL},
507 {"vid", &video_id, CONF_TYPE_INT, CONF_RANGE, -2, 8190, NULL},
508 {"sid", &dvdsub_id, CONF_TYPE_INT, CONF_RANGE, -2, 8190, NULL},
509 {"nosub", &dvdsub_id, CONF_TYPE_FLAG, 0, -1, -2, NULL},
510 {"novideo", &video_id, CONF_TYPE_FLAG, 0, -1, -2, NULL},
511
512 { "hr-mp3-seek", &hr_mp3_seek, CONF_TYPE_FLAG, 0, 0, 1, NULL },
513 { "nohr-mp3-seek", &hr_mp3_seek, CONF_TYPE_FLAG, 0, 1, 0, NULL},
514
515 { "rawaudio", &demux_rawaudio_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
516 { "rawvideo", &demux_rawvideo_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
517
518 #ifdef CONFIG_CDDA
519 { "cdda", &cdda_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
520 #endif
521
522 // demuxer.c - select audio/sub file/demuxer
523 { "audiofile", &audio_stream, CONF_TYPE_STRING, 0, 0, 0, NULL },
524 { "audiofile-cache", &audio_stream_cache, CONF_TYPE_INT, CONF_RANGE, 50, 65536, NULL},
525 { "subfile", &sub_stream, CONF_TYPE_STRING, 0, 0, 0, NULL },
526 { "demuxer", &demuxer_name, CONF_TYPE_STRING, 0, 0, 0, NULL },
527 { "audio-demuxer", &audio_demuxer_name, CONF_TYPE_STRING, 0, 0, 0, NULL },
528 { "sub-demuxer", &sub_demuxer_name, CONF_TYPE_STRING, 0, 0, 0, NULL },
529 { "extbased", &extension_parsing, CONF_TYPE_FLAG, 0, 0, 1, NULL },
530 { "noextbased", &extension_parsing, CONF_TYPE_FLAG, 0, 1, 0, NULL },
531
532 {"mf", mfopts_conf, CONF_TYPE_SUBCONFIG, 0,0,0, NULL},
533 #ifdef CONFIG_RADIO
534 {"radio", radioopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
535 #else
536 {"radio", "MPlayer was compiled without Radio interface support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
537 #endif /* CONFIG_RADIO */
538 #ifdef CONFIG_TV
539 {"tv", tvopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
540 #else
541 {"tv", "MPlayer was compiled without TV interface support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
542 #endif /* CONFIG_TV */
543 #ifdef CONFIG_PVR
544 {"pvr", pvropts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
545 #else
546 {"pvr", "MPlayer was compiled without V4L2/PVR interface support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
547 #endif /* CONFIG_PVR */
548 {"vivo", vivoopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
549 #ifdef CONFIG_DVBIN
550 {"dvbin", dvbin_opts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
551 #endif
552
553 // ------------------------- a-v sync options --------------------
554
555 // AVI specific: A-V sync mode (bps vs. interleaving)
556 {"bps", &pts_from_bps, CONF_TYPE_FLAG, 0, 0, 1, NULL},
557 {"nobps", &pts_from_bps, CONF_TYPE_FLAG, 0, 1, 0, NULL},
558
559 // set A-V sync correction speed (0=disables it):
560 {"mc", &default_max_pts_correction, CONF_TYPE_FLOAT, CONF_RANGE, 0, 100, NULL},
561
562 // force video/audio rate:
563 {"fps", &force_fps, CONF_TYPE_DOUBLE, CONF_MIN, 0, 0, NULL},
564 {"srate", &force_srate, CONF_TYPE_INT, CONF_RANGE, 1000, 8*48000, NULL},
565 {"channels", &audio_output_channels, CONF_TYPE_INT, CONF_RANGE, 1, 8, NULL},
566 {"format", &audio_output_format, CONF_TYPE_AFMT, 0, 0, 0, NULL},
567 {"speed", &playback_speed, CONF_TYPE_FLOAT, CONF_RANGE, 0.01, 100.0, NULL},
568
569 // set a-v distance
570 {"delay", &audio_delay, CONF_TYPE_FLOAT, CONF_RANGE, -100.0, 100.0, NULL},
571
572 // ignore header-specified delay (dwStart)
573 {"ignore-start", &ignore_start, CONF_TYPE_FLAG, 0, 0, 1, NULL},
574 {"noignore-start", &ignore_start, CONF_TYPE_FLAG, 0, 1, 0, NULL},
575
576 {"a52drc", &drc_level, CONF_TYPE_FLOAT, CONF_RANGE, 0, 2, NULL},
577
578 // ------------------------- codec/vfilter options --------------------
579
580 // MP3-only: select stereo/left/right
581 #ifdef CONFIG_FAKE_MONO
582 {"stereo", &fakemono, CONF_TYPE_INT, CONF_RANGE, 0, 2, NULL},
583 #endif
584
585 // disable audio
586 {"sound", &audio_id, CONF_TYPE_FLAG, 0, -2, -1, NULL},
587 {"nosound", &audio_id, CONF_TYPE_FLAG, 0, -1, -2, NULL},
588
589 {"af*", &af_cfg.list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
590 {"af-adv", audio_filter_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
591
592 {"vop", "-vop has been removed, use -vf instead.\n", CONF_TYPE_PRINT, CONF_NOCFG ,0,0, NULL},
593 {"vf*", &vf_settings, CONF_TYPE_OBJ_SETTINGS_LIST, 0, 0, 0, &vf_obj_list},
594 // select audio/video codec (by name) or codec family (by number):
595 {"afm", &audio_fm_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
596 {"vfm", &video_fm_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
597 {"ac", &audio_codec_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
598 {"vc", &video_codec_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
599
600 // postprocessing:
601 #ifdef CONFIG_LIBAVCODEC
602 {"pp", &divx_quality, CONF_TYPE_INT, 0, 0, 0, NULL},
603 #endif
604 #ifdef CONFIG_LIBPOSTPROC
605 {"pphelp", &pp_help, CONF_TYPE_PRINT_INDIRECT, CONF_NOCFG, 0, 0, NULL},
606 #endif
607
608 // scaling:
609 {"sws", &sws_flags, CONF_TYPE_INT, 0, 0, 2, NULL},
610 {"ssf", scaler_filter_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
611 {"zoom", &softzoom, CONF_TYPE_FLAG, 0, 0, 1, NULL},
612 {"nozoom", &softzoom, CONF_TYPE_FLAG, 0, 1, 0, NULL},
613 {"aspect", &movie_aspect, CONF_TYPE_FLOAT, CONF_RANGE, 0.2, 3.0, NULL},
614 {"noaspect", &movie_aspect, CONF_TYPE_FLAG, 0, 0, 0, NULL},
615 {"xy", &screen_size_xy, CONF_TYPE_FLOAT, CONF_RANGE, 0.001, 4096, NULL},
616
617 {"flip", &flip, CONF_TYPE_FLAG, 0, -1, 1, NULL},
618 {"noflip", &flip, CONF_TYPE_FLAG, 0, -1, 0, NULL},
619 {"tsfastparse", "-tsfastparse is no longer a valid option.\n", CONF_TYPE_PRINT, CONF_NOCFG ,0,0, NULL
620 },
621 {"tsprog", &ts_prog, CONF_TYPE_INT, CONF_RANGE, 0, 65534, NULL},
622 {"tsprobe", &ts_probe, CONF_TYPE_POSITION, 0, 0, TS_MAX_PROBE_SIZE, NULL},
623 {"psprobe", &ps_probe, CONF_TYPE_POSITION, 0, 0, TS_MAX_PROBE_SIZE, NULL},
624 {"tskeepbroken", &ts_keep_broken, CONF_TYPE_FLAG, 0, 0, 1, NULL},
625
626 // draw by slices or whole frame (useful with libmpeg2/libavcodec)
627 {"slices", &vd_use_slices, CONF_TYPE_FLAG, 0, 0, 1, NULL},
628 {"noslices", &vd_use_slices, CONF_TYPE_FLAG, 0, 1, 0, NULL},
629 {"field-dominance", &field_dominance, CONF_TYPE_INT, CONF_RANGE, -1, 1, NULL},
630
631 #ifdef CONFIG_LIBAVCODEC
632 {"lavdopts", lavc_decode_opts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
633 #endif
634 #ifdef CONFIG_LIBAVFORMAT
635 {"lavfdopts", lavfdopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
636 #endif
637 #ifdef CONFIG_XVID4
638 {"xvidopts", xvid_dec_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
639 #endif
640 {"codecs-file", &codecs_file, CONF_TYPE_STRING, 0, 0, 0, NULL},
641 // ------------------------- subtitles options --------------------
642
643 {"sub", &sub_name, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
644 #ifdef CONFIG_FRIBIDI
645 {"fribidi-charset", &fribidi_charset, CONF_TYPE_STRING, 0, 0, 0, NULL},
646 {"flip-hebrew", &flip_hebrew, CONF_TYPE_FLAG, 0, 0, 1, NULL},
647 {"noflip-hebrew", &flip_hebrew, CONF_TYPE_FLAG, 0, 1, 0, NULL},
648 {"flip-hebrew-commas", &fribidi_flip_commas, CONF_TYPE_FLAG, 0, 1, 0, NULL},
649 {"noflip-hebrew-commas", &fribidi_flip_commas, CONF_TYPE_FLAG, 0, 0, 1, NULL},
650 #else
651 {"fribidi-charset", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
652 {"flip-hebrew", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
653 {"noflip-hebrew", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
654 {"flip-hebrew-commas", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
655 {"noflip-hebrew-commas", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
656 #endif /* CONFIG_FRIBIDI */
657 #ifdef CONFIG_ICONV
658 {"subcp", &sub_cp, CONF_TYPE_STRING, 0, 0, 0, NULL},
659 #endif
660 {"subdelay", &sub_delay, CONF_TYPE_FLOAT, 0, 0.0, 10.0, NULL},
661 {"subfps", &sub_fps, CONF_TYPE_FLOAT, 0, 0.0, 10.0, NULL},
662 {"autosub", &sub_auto, CONF_TYPE_FLAG, 0, 0, 1, NULL},
663 {"noautosub", &sub_auto, CONF_TYPE_FLAG, 0, 1, 0, NULL},
664 {"unicode", &sub_unicode, CONF_TYPE_FLAG, 0, 0, 1, NULL},
665 {"nounicode", &sub_unicode, CONF_TYPE_FLAG, 0, 1, 0, NULL},
666 {"utf8", &sub_utf8, CONF_TYPE_FLAG, 0, 0, 1, NULL},
667 {"noutf8", &sub_utf8, CONF_TYPE_FLAG, 0, 1, 0, NULL},
668 {"forcedsubsonly", &forced_subs_only, CONF_TYPE_FLAG, 0, 0, 1, NULL},
669 // specify IFO file for VOBSUB subtitle
670 {"ifo", &spudec_ifo, CONF_TYPE_STRING, 0, 0, 0, NULL},
671 // enable Closed Captioning display
672 {"subcc", &subcc_enabled, CONF_TYPE_FLAG, 0, 0, 1, NULL},
673 {"nosubcc", &subcc_enabled, CONF_TYPE_FLAG, 0, 1, 0, NULL},
674 {"overlapsub", &suboverlap_enabled, CONF_TYPE_FLAG, 0, 0, 2, NULL},
675 {"nooverlapsub", &suboverlap_enabled, CONF_TYPE_FLAG, 0, 0, 0, NULL},
676 {"sub-bg-color", &sub_bg_color, CONF_TYPE_INT, CONF_RANGE, 0, 255, NULL},
677 {"sub-bg-alpha", &sub_bg_alpha, CONF_TYPE_INT, CONF_RANGE, 0, 255, NULL},
678 {"sub-no-text-pp", &sub_no_text_pp, CONF_TYPE_FLAG, 0, 0, 1, NULL},
679 {"sub-fuzziness", &sub_match_fuzziness, CONF_TYPE_INT, CONF_RANGE, 0, 2, NULL},
680 {"font", &font_name, CONF_TYPE_STRING, 0, 0, 0, NULL},
681 {"subfont", &sub_font_name, CONF_TYPE_STRING, 0, 0, 0, NULL},
682 {"ffactor", &font_factor, CONF_TYPE_FLOAT, CONF_RANGE, 0.0, 10.0, NULL},
683 {"subpos", &sub_pos, CONF_TYPE_INT, CONF_RANGE, 0, 100, NULL},
684 {"subalign", &sub_alignment, CONF_TYPE_INT, CONF_RANGE, 0, 2, NULL},
685 {"subwidth", &sub_width_p, CONF_TYPE_INT, CONF_RANGE, 10, 100, NULL},
686 {"spualign", &spu_alignment, CONF_TYPE_INT, CONF_RANGE, -1, 2, NULL},
687 {"spuaa", &spu_aamode, CONF_TYPE_INT, CONF_RANGE, 0, 31, NULL},
688 {"spugauss", &spu_gaussvar, CONF_TYPE_FLOAT, CONF_RANGE, 0.0, 3.0, NULL},
689 #ifdef CONFIG_FREETYPE
690 {"subfont-encoding", &subtitle_font_encoding, CONF_TYPE_STRING, 0, 0, 0, NULL},
691 {"subfont-text-scale", &text_font_scale_factor, CONF_TYPE_FLOAT, CONF_RANGE, 0, 100, NULL},
692 {"subfont-osd-scale", &osd_font_scale_factor, CONF_TYPE_FLOAT, CONF_RANGE, 0, 100, NULL},
693 {"subfont-blur", &subtitle_font_radius, CONF_TYPE_FLOAT, CONF_RANGE, 0, 8, NULL},
694 {"subfont-outline", &subtitle_font_thickness, CONF_TYPE_FLOAT, CONF_RANGE, 0, 8, NULL},
695 {"subfont-autoscale", &subtitle_autoscale, CONF_TYPE_INT, CONF_RANGE, 0, 3, NULL},
696 #endif
697 #ifdef CONFIG_ASS
698 {"ass", &ass_enabled, CONF_TYPE_FLAG, 0, 0, 1, NULL},
699 {"noass", &ass_enabled, CONF_TYPE_FLAG, 0, 1, 0, NULL},
700 {"ass-font-scale", &ass_font_scale, CONF_TYPE_FLOAT, CONF_RANGE, 0, 100, NULL},
701 {"ass-line-spacing", &ass_line_spacing, CONF_TYPE_FLOAT, CONF_RANGE, -1000, 1000, NULL},
702 {"ass-top-margin", &ass_top_margin, CONF_TYPE_INT, CONF_RANGE, 0, 2000, NULL},
703 {"ass-bottom-margin", &ass_bottom_margin, CONF_TYPE_INT, CONF_RANGE, 0, 2000, NULL},
704 {"ass-use-margins", &ass_use_margins, CONF_TYPE_FLAG, 0, 0, 1, NULL},
705 {"noass-use-margins", &ass_use_margins, CONF_TYPE_FLAG, 0, 1, 0, NULL},
706 {"embeddedfonts", &extract_embedded_fonts, CONF_TYPE_FLAG, 0, 0, 1, NULL},
707 {"noembeddedfonts", &extract_embedded_fonts, CONF_TYPE_FLAG, 0, 1, 0, NULL},
708 {"ass-force-style", &ass_force_style_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
709 {"ass-color", &ass_color, CONF_TYPE_STRING, 0, 0, 0, NULL},
710 {"ass-border-color", &ass_border_color, CONF_TYPE_STRING, 0, 0, 0, NULL},
711 {"ass-styles", &ass_styles_file, CONF_TYPE_STRING, 0, 0, 0, NULL},
712 {"ass-hinting", &ass_hinting, CONF_TYPE_INT, CONF_RANGE, 0, 7, NULL},
713 #endif
714 #ifdef CONFIG_FONTCONFIG
715 {"fontconfig", &font_fontconfig, CONF_TYPE_FLAG, 0, -1, 1, NULL},
716 {"nofontconfig", &font_fontconfig, CONF_TYPE_FLAG, 0, 1, -1, NULL},
717 #else
718 {"fontconfig", "MPlayer was compiled without fontconfig support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
719 {"nofontconfig", "MPlayer was compiled without fontconfig support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
720 #endif /* CONFIG_FONTCONFIG */
721 {NULL, NULL, 0, 0, 0, 0, NULL}
722 };
723
371 #endif /* MPLAYER_CFG_COMMON_H */ 724 #endif /* MPLAYER_CFG_COMMON_H */