2618
|
1 /*
|
|
2 * config for cfgparser
|
|
3 */
|
|
4
|
|
5 #ifdef USE_FAKE_MONO
|
|
6 extern int fakemono; // defined in dec_audio.c
|
|
7 #endif
|
|
8 #ifdef HAVE_ODIVX_POSTPROCESS
|
|
9 extern int use_old_pp;
|
|
10 #endif
|
|
11
|
2626
|
12 struct config divx4opts_conf[]={
|
|
13 {"br", &divx4_param.bitrate, CONF_TYPE_INT, CONF_RANGE, 4, 24000000},
|
|
14 {"rc_period", &divx4_param.rc_period, CONF_TYPE_INT, 0,0,0},
|
|
15 {"rc_reaction_period", &divx4_param.rc_reaction_period, CONF_TYPE_INT, 0,0,0},
|
|
16 {"rc_reaction_ratio", &divx4_param.rc_reaction_ratio, CONF_TYPE_INT, 0,0,0},
|
|
17 {"min_quant", &divx4_param.min_quantizer, CONF_TYPE_INT, CONF_RANGE,0,32},
|
|
18 {"max_quant", &divx4_param.max_quantizer, CONF_TYPE_INT, CONF_RANGE,0,32},
|
|
19 {"key", &divx4_param.max_key_interval, CONF_TYPE_INT, CONF_MIN,0,0},
|
|
20 {"deinterlace", &divx4_param.deinterlace, CONF_TYPE_FLAG, 0,0,1},
|
|
21 {"q", &divx4_param.quality, CONF_TYPE_INT, CONF_RANGE, 1, 5},
|
2643
|
22 {"crispness", &divx4_crispness, CONF_TYPE_INT, CONF_RANGE,0,100},
|
2626
|
23 {"help", "TODO: divx4opts help!\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
|
|
24 {NULL, NULL, 0, 0, 0, 0}
|
|
25 };
|
|
26
|
|
27 struct config lameopts_conf[]={
|
|
28 {"q", &lame_param_quality, CONF_TYPE_INT, CONF_RANGE, 0, 9},
|
|
29 {"vbr", &lame_param_vbr, CONF_TYPE_INT, CONF_RANGE, 0, vbr_max_indicator},
|
|
30 {"cbr", &lame_param_vbr, CONF_TYPE_FLAG, 0, 0, 0},
|
|
31 {"mode", &lame_param_mode, CONF_TYPE_INT, CONF_RANGE, 0, MAX_INDICATOR},
|
|
32 {"padding", &lame_param_padding, CONF_TYPE_INT, CONF_RANGE, 0, PAD_MAX_INDICATOR},
|
|
33 {"br", &lame_param_br, CONF_TYPE_INT, CONF_RANGE, 0, 1024},
|
|
34 {"ratio", &lame_param_ratio, CONF_TYPE_INT, CONF_RANGE, 0, 100},
|
2661
|
35 {"help", "TODO: lameopts help!\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
|
|
36 {NULL, NULL, 0, 0, 0, 0}
|
|
37 };
|
|
38
|
|
39 struct config ovc_conf[]={
|
|
40 {"copy", &out_video_codec, CONF_TYPE_FLAG, 0, 0, 0},
|
|
41 {"divx4", &out_video_codec, CONF_TYPE_FLAG, 0, 0, VCODEC_DIVX4},
|
|
42 {"help", "\nAvailable codecs:\n copy\n divx4\n\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
|
|
43 {NULL, NULL, 0, 0, 0, 0}
|
|
44 };
|
|
45
|
|
46 struct config oac_conf[]={
|
|
47 {"copy", &out_audio_codec, CONF_TYPE_FLAG, 0, 0, 0},
|
|
48 {"pcm", &out_audio_codec, CONF_TYPE_FLAG, 0, 0, ACODEC_PCM},
|
|
49 {"mp3lame", &out_audio_codec, CONF_TYPE_FLAG, 0, 0, ACODEC_VBRMP3},
|
|
50 {"help", "\nAvailable codecs:\n copy\n pcm\n mp3lame\n\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
|
2626
|
51 {NULL, NULL, 0, 0, 0, 0}
|
|
52 };
|
|
53
|
2618
|
54 struct config conf[]={
|
|
55 /* name, pointer, type, flags, min, max */
|
|
56 {"include", cfg_include, CONF_TYPE_FUNC_PARAM, 0, 0, 0}, /* this must be the first!!! */
|
|
57
|
2626
|
58 {"ofps", &force_ofps, CONF_TYPE_FLOAT, CONF_MIN, 0, 0},
|
|
59 {"o", &out_filename, CONF_TYPE_STRING, 0, 0, 0},
|
|
60
|
|
61 {"mp3file", &mp3_filename, CONF_TYPE_STRING, 0, 0, 0},
|
|
62 {"ac3file", &ac3_filename, CONF_TYPE_STRING, 0, 0, 0},
|
|
63
|
2661
|
64 // {"oac", &out_audio_codec, CONF_TYPE_STRING, 0, 0, 0},
|
|
65 // {"ovc", &out_video_codec, CONF_TYPE_STRING, 0, 0, 0},
|
|
66 {"oac", oac_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0},
|
|
67 {"ovc", ovc_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0},
|
2643
|
68
|
|
69 {"pass", &pass, CONF_TYPE_INT, CONF_RANGE,0,2},
|
2626
|
70
|
|
71 {"divx4opts", divx4opts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0},
|
|
72 {"lameopts", lameopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0},
|
2618
|
73
|
|
74 #include "cfg-common.h"
|
|
75
|
|
76 // {"quiet", &quiet, CONF_TYPE_FLAG, 0, 0, 1},
|
|
77 {"verbose", &verbose, CONF_TYPE_INT, CONF_RANGE, 0, 100},
|
|
78 {"v", cfg_inc_verbose, CONF_TYPE_FUNC, 0, 0, 0},
|
|
79 // {"-help", help_text, CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
|
|
80 // {"help", help_text, CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
|
|
81 // {"h", help_text, CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
|
|
82 {NULL, NULL, 0, 0, 0, 0}
|
|
83 };
|