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