Mercurial > mplayer.hg
comparison cfg-mencoder.h @ 2626:da9777831e1b
divx4 and lame subconfig support
author | arpi |
---|---|
date | Fri, 02 Nov 2001 03:22:33 +0000 |
parents | 47a338888698 |
children | 9d0a638e211a |
comparison
equal
deleted
inserted
replaced
2625:a8145a712f25 | 2626:da9777831e1b |
---|---|
7 #endif | 7 #endif |
8 #ifdef HAVE_ODIVX_POSTPROCESS | 8 #ifdef HAVE_ODIVX_POSTPROCESS |
9 extern int use_old_pp; | 9 extern int use_old_pp; |
10 #endif | 10 #endif |
11 | 11 |
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}, | |
22 {"help", "TODO: divx4opts help!\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0}, | |
23 {NULL, NULL, 0, 0, 0, 0} | |
24 }; | |
25 | |
26 struct config lameopts_conf[]={ | |
27 {"q", &lame_param_quality, CONF_TYPE_INT, CONF_RANGE, 0, 9}, | |
28 {"vbr", &lame_param_vbr, CONF_TYPE_INT, CONF_RANGE, 0, vbr_max_indicator}, | |
29 {"cbr", &lame_param_vbr, CONF_TYPE_FLAG, 0, 0, 0}, | |
30 {"mode", &lame_param_mode, CONF_TYPE_INT, CONF_RANGE, 0, MAX_INDICATOR}, | |
31 {"padding", &lame_param_padding, CONF_TYPE_INT, CONF_RANGE, 0, PAD_MAX_INDICATOR}, | |
32 {"br", &lame_param_br, CONF_TYPE_INT, CONF_RANGE, 0, 1024}, | |
33 {"ratio", &lame_param_ratio, CONF_TYPE_INT, CONF_RANGE, 0, 100}, | |
34 {NULL, NULL, 0, 0, 0, 0} | |
35 }; | |
36 | |
12 struct config conf[]={ | 37 struct config conf[]={ |
13 /* name, pointer, type, flags, min, max */ | 38 /* name, pointer, type, flags, min, max */ |
14 {"include", cfg_include, CONF_TYPE_FUNC_PARAM, 0, 0, 0}, /* this must be the first!!! */ | 39 {"include", cfg_include, CONF_TYPE_FUNC_PARAM, 0, 0, 0}, /* this must be the first!!! */ |
15 | 40 |
41 {"ofps", &force_ofps, CONF_TYPE_FLOAT, CONF_MIN, 0, 0}, | |
42 {"o", &out_filename, CONF_TYPE_STRING, 0, 0, 0}, | |
43 | |
44 {"mp3file", &mp3_filename, CONF_TYPE_STRING, 0, 0, 0}, | |
45 {"ac3file", &ac3_filename, CONF_TYPE_STRING, 0, 0, 0}, | |
46 | |
47 {"oac", &out_audio_codec, CONF_TYPE_STRING, 0, 0, 0}, | |
48 {"ovc", &out_video_codec, CONF_TYPE_STRING, 0, 0, 0}, | |
49 | |
50 {"divx4opts", divx4opts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0}, | |
51 {"lameopts", lameopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0}, | |
16 | 52 |
17 #include "cfg-common.h" | 53 #include "cfg-common.h" |
18 | 54 |
19 // {"quiet", &quiet, CONF_TYPE_FLAG, 0, 0, 1}, | 55 // {"quiet", &quiet, CONF_TYPE_FLAG, 0, 0, 1}, |
20 {"verbose", &verbose, CONF_TYPE_INT, CONF_RANGE, 0, 100}, | 56 {"verbose", &verbose, CONF_TYPE_INT, CONF_RANGE, 0, 100}, |