Mercurial > mplayer.hg
comparison cfg-mencoder.h @ 4157:9ff9f6ce6799
extra NULL field appended
author | arpi |
---|---|
date | Mon, 14 Jan 2002 23:54:31 +0000 |
parents | a14b3a600b81 |
children | 479c7828edbb |
comparison
equal
deleted
inserted
replaced
4156:22fadd4022b5 | 4157:9ff9f6ce6799 |
---|---|
14 extern int sws_flags; | 14 extern int sws_flags; |
15 extern int readPPOpt(void *, char *arg); | 15 extern int readPPOpt(void *, char *arg); |
16 | 16 |
17 #ifdef HAVE_DIVX4ENCORE | 17 #ifdef HAVE_DIVX4ENCORE |
18 struct config divx4opts_conf[]={ | 18 struct config divx4opts_conf[]={ |
19 {"br", &divx4_param.bitrate, CONF_TYPE_INT, CONF_RANGE, 4, 24000000}, | 19 {"br", &divx4_param.bitrate, CONF_TYPE_INT, CONF_RANGE, 4, 24000000, NULL}, |
20 {"rc_period", &divx4_param.rc_period, CONF_TYPE_INT, 0,0,0}, | 20 {"rc_period", &divx4_param.rc_period, CONF_TYPE_INT, 0,0,0, NULL}, |
21 {"rc_reaction_period", &divx4_param.rc_reaction_period, CONF_TYPE_INT, 0,0,0}, | 21 {"rc_reaction_period", &divx4_param.rc_reaction_period, CONF_TYPE_INT, 0,0,0, NULL}, |
22 {"rc_reaction_ratio", &divx4_param.rc_reaction_ratio, CONF_TYPE_INT, 0,0,0}, | 22 {"rc_reaction_ratio", &divx4_param.rc_reaction_ratio, CONF_TYPE_INT, 0,0,0, NULL}, |
23 {"min_quant", &divx4_param.min_quantizer, CONF_TYPE_INT, CONF_RANGE,0,32}, | 23 {"min_quant", &divx4_param.min_quantizer, CONF_TYPE_INT, CONF_RANGE,0,32, NULL}, |
24 {"max_quant", &divx4_param.max_quantizer, CONF_TYPE_INT, CONF_RANGE,0,32}, | 24 {"max_quant", &divx4_param.max_quantizer, CONF_TYPE_INT, CONF_RANGE,0,32, NULL}, |
25 {"key", &divx4_param.max_key_interval, CONF_TYPE_INT, CONF_MIN,0,0}, | 25 {"key", &divx4_param.max_key_interval, CONF_TYPE_INT, CONF_MIN,0,0, NULL}, |
26 {"deinterlace", &divx4_param.deinterlace, CONF_TYPE_FLAG, 0,0,1}, | 26 {"deinterlace", &divx4_param.deinterlace, CONF_TYPE_FLAG, 0,0,1, NULL}, |
27 {"q", &divx4_param.quality, CONF_TYPE_INT, CONF_RANGE, 1, 5}, | 27 {"q", &divx4_param.quality, CONF_TYPE_INT, CONF_RANGE, 1, 5, NULL}, |
28 {"crispness", &divx4_crispness, CONF_TYPE_INT, CONF_RANGE,0,100}, | 28 {"crispness", &divx4_crispness, CONF_TYPE_INT, CONF_RANGE,0,100, NULL}, |
29 {"help", "TODO: divx4opts help!\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0}, | 29 {"help", "TODO: divx4opts help!\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, |
30 {NULL, NULL, 0, 0, 0, 0} | 30 {NULL, NULL, 0, 0, 0, 0, NULL} |
31 }; | 31 }; |
32 #endif | 32 #endif |
33 | 33 |
34 #ifdef HAVE_MP3LAME | 34 #ifdef HAVE_MP3LAME |
35 struct config lameopts_conf[]={ | 35 struct config lameopts_conf[]={ |
36 {"q", &lame_param_quality, CONF_TYPE_INT, CONF_RANGE, 0, 9}, | 36 {"q", &lame_param_quality, CONF_TYPE_INT, CONF_RANGE, 0, 9, NULL}, |
37 {"vbr", &lame_param_vbr, CONF_TYPE_INT, CONF_RANGE, 0, vbr_max_indicator}, | 37 {"vbr", &lame_param_vbr, CONF_TYPE_INT, CONF_RANGE, 0, vbr_max_indicator, NULL}, |
38 {"cbr", &lame_param_vbr, CONF_TYPE_FLAG, 0, 0, 0}, | 38 {"cbr", &lame_param_vbr, CONF_TYPE_FLAG, 0, 0, 0, NULL}, |
39 {"abr", &lame_param_vbr, CONF_TYPE_FLAG, 0, 0, vbr_abr}, | 39 {"abr", &lame_param_vbr, CONF_TYPE_FLAG, 0, 0, vbr_abr, NULL}, |
40 {"mode", &lame_param_mode, CONF_TYPE_INT, CONF_RANGE, 0, MAX_INDICATOR}, | 40 {"mode", &lame_param_mode, CONF_TYPE_INT, CONF_RANGE, 0, MAX_INDICATOR, NULL}, |
41 {"padding", &lame_param_padding, CONF_TYPE_INT, CONF_RANGE, 0, PAD_MAX_INDICATOR}, | 41 {"padding", &lame_param_padding, CONF_TYPE_INT, CONF_RANGE, 0, PAD_MAX_INDICATOR, NULL}, |
42 {"br", &lame_param_br, CONF_TYPE_INT, CONF_RANGE, 0, 1024}, | 42 {"br", &lame_param_br, CONF_TYPE_INT, CONF_RANGE, 0, 1024, NULL}, |
43 {"ratio", &lame_param_ratio, CONF_TYPE_INT, CONF_RANGE, 0, 100}, | 43 {"ratio", &lame_param_ratio, CONF_TYPE_INT, CONF_RANGE, 0, 100, NULL}, |
44 {"help", "TODO: lameopts help!\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0}, | 44 {"help", "TODO: lameopts help!\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, |
45 {NULL, NULL, 0, 0, 0, 0} | 45 {NULL, NULL, 0, 0, 0, 0, NULL} |
46 }; | 46 }; |
47 #endif | 47 #endif |
48 | 48 |
49 #ifdef USE_LIBAVCODEC | 49 #ifdef USE_LIBAVCODEC |
50 struct config lavcopts_conf[]={ | 50 struct config lavcopts_conf[]={ |
51 {"vcodec", &lavc_param_vcodec, CONF_TYPE_STRING, 0, 0, 0}, | 51 {"vcodec", &lavc_param_vcodec, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
52 {"vbitrate", &lavc_param_vbitrate, CONF_TYPE_INT, CONF_RANGE, 4, 24000000}, | 52 {"vbitrate", &lavc_param_vbitrate, CONF_TYPE_INT, CONF_RANGE, 4, 24000000, NULL}, |
53 {"vhq", &lavc_param_vhq, CONF_TYPE_FLAG, 0, 0, 1}, | 53 {"vhq", &lavc_param_vhq, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
54 {"keyint", &lavc_param_keyint, CONF_TYPE_INT, 0, 0, 0}, | 54 {"keyint", &lavc_param_keyint, CONF_TYPE_INT, 0, 0, 0, NULL}, |
55 {NULL, NULL, 0, 0, 0, 0} | 55 {NULL, NULL, 0, 0, 0, 0, NULL} |
56 }; | 56 }; |
57 #endif | 57 #endif |
58 | 58 |
59 #ifdef USE_WIN32DLL | 59 #ifdef USE_WIN32DLL |
60 struct config vfwopts_conf[]={ | 60 struct config vfwopts_conf[]={ |
61 {NULL, NULL, 0, 0, 0, 0} | 61 {NULL, NULL, 0, 0, 0, 0, NULL} |
62 }; | 62 }; |
63 #endif | 63 #endif |
64 | 64 |
65 struct config ovc_conf[]={ | 65 struct config ovc_conf[]={ |
66 {"copy", &out_video_codec, CONF_TYPE_FLAG, 0, 0, VCODEC_COPY}, | 66 {"copy", &out_video_codec, CONF_TYPE_FLAG, 0, 0, VCODEC_COPY, NULL}, |
67 {"frameno", &out_video_codec, CONF_TYPE_FLAG, 0, 0, VCODEC_FRAMENO}, | 67 {"frameno", &out_video_codec, CONF_TYPE_FLAG, 0, 0, VCODEC_FRAMENO, NULL}, |
68 {"divx4", &out_video_codec, CONF_TYPE_FLAG, 0, 0, VCODEC_DIVX4}, | 68 {"divx4", &out_video_codec, CONF_TYPE_FLAG, 0, 0, VCODEC_DIVX4, NULL}, |
69 {"raw", &out_video_codec, CONF_TYPE_FLAG, 0, 0, VCODEC_RAW}, | 69 {"raw", &out_video_codec, CONF_TYPE_FLAG, 0, 0, VCODEC_RAW, NULL}, |
70 {"lavc", &out_video_codec, CONF_TYPE_FLAG, 0, 0, VCODEC_LIBAVCODEC}, | 70 {"lavc", &out_video_codec, CONF_TYPE_FLAG, 0, 0, VCODEC_LIBAVCODEC, NULL}, |
71 {"help", "\nAvailable codecs:\n copy\n frameno\n divx4\n raw\n lavc\n\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0}, | 71 {"help", "\nAvailable codecs:\n copy\n frameno\n divx4\n raw\n lavc\n\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, |
72 {NULL, NULL, 0, 0, 0, 0} | 72 {NULL, NULL, 0, 0, 0, 0, NULL} |
73 }; | 73 }; |
74 | 74 |
75 struct config oac_conf[]={ | 75 struct config oac_conf[]={ |
76 {"copy", &out_audio_codec, CONF_TYPE_FLAG, 0, 0, ACODEC_COPY}, | 76 {"copy", &out_audio_codec, CONF_TYPE_FLAG, 0, 0, ACODEC_COPY, NULL}, |
77 {"pcm", &out_audio_codec, CONF_TYPE_FLAG, 0, 0, ACODEC_PCM}, | 77 {"pcm", &out_audio_codec, CONF_TYPE_FLAG, 0, 0, ACODEC_PCM, NULL}, |
78 #ifdef HAVE_MP3LAME | 78 #ifdef HAVE_MP3LAME |
79 {"mp3lame", &out_audio_codec, CONF_TYPE_FLAG, 0, 0, ACODEC_VBRMP3}, | 79 {"mp3lame", &out_audio_codec, CONF_TYPE_FLAG, 0, 0, ACODEC_VBRMP3, NULL}, |
80 {"help", "\nAvailable codecs:\n copy\n pcm\n mp3lame\n\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0}, | 80 {"help", "\nAvailable codecs:\n copy\n pcm\n mp3lame\n\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, |
81 #else | 81 #else |
82 {"mp3lame", "MPlayer was compiled without libmp3lame support!\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0}, | 82 {"mp3lame", "MPlayer was compiled without libmp3lame support!\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, |
83 {"help", "\nAvailable codecs:\n copy\n pcm\n\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0}, | 83 {"help", "\nAvailable codecs:\n copy\n pcm\n\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, |
84 #endif | 84 #endif |
85 {NULL, NULL, 0, 0, 0, 0} | 85 {NULL, NULL, 0, 0, 0, 0, NULL} |
86 }; | 86 }; |
87 | 87 |
88 struct config conf[]={ | 88 struct config mencoder_opts[]={ |
89 /* name, pointer, type, flags, min, max */ | 89 /* name, pointer, type, flags, min, max */ |
90 {"include", cfg_include, CONF_TYPE_FUNC_PARAM, 0, 0, 0}, /* this must be the first!!! */ | 90 {"include", cfg_include, CONF_TYPE_FUNC_PARAM, 0, 0, 0, NULL}, /* this must be the first!!! */ |
91 | 91 |
92 {"ofps", &force_ofps, CONF_TYPE_FLOAT, CONF_MIN, 0, 0}, | 92 {"ofps", &force_ofps, CONF_TYPE_FLOAT, CONF_MIN, 0, 0, NULL}, |
93 {"o", &out_filename, CONF_TYPE_STRING, 0, 0, 0}, | 93 {"o", &out_filename, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
94 | 94 |
95 {"x", &vo_w, CONF_TYPE_INT, CONF_RANGE, 0, 4096}, | 95 {"x", &vo_w, CONF_TYPE_INT, CONF_RANGE, 0, 4096, NULL}, |
96 {"y", &vo_h, CONF_TYPE_INT, CONF_RANGE, 0, 4096}, | 96 {"y", &vo_h, CONF_TYPE_INT, CONF_RANGE, 0, 4096, NULL}, |
97 | 97 |
98 {"mp3file", &mp3_filename, CONF_TYPE_STRING, 0, 0, 0}, | 98 {"mp3file", &mp3_filename, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
99 {"ac3file", &ac3_filename, CONF_TYPE_STRING, 0, 0, 0}, | 99 {"ac3file", &ac3_filename, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
100 | 100 |
101 // {"oac", &out_audio_codec, CONF_TYPE_STRING, 0, 0, 0}, | 101 // {"oac", &out_audio_codec, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
102 // {"ovc", &out_video_codec, CONF_TYPE_STRING, 0, 0, 0}, | 102 // {"ovc", &out_video_codec, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
103 {"oac", oac_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0}, | 103 {"oac", oac_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, |
104 {"ovc", ovc_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0}, | 104 {"ovc", ovc_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, |
105 | 105 |
106 {"ffourcc", &force_fourcc, CONF_TYPE_STRING, 0, 4, 4}, | 106 {"ffourcc", &force_fourcc, CONF_TYPE_STRING, 0, 4, 4, NULL}, |
107 | 107 |
108 #ifdef HAVE_DIVX4ENCORE | 108 #ifdef HAVE_DIVX4ENCORE |
109 {"pass", &pass, CONF_TYPE_INT, CONF_RANGE,0,2}, | 109 {"pass", &pass, CONF_TYPE_INT, CONF_RANGE,0,2, NULL}, |
110 {"passlogfile", &passtmpfile, CONF_TYPE_STRING, 0, 0, 0}, | 110 {"passlogfile", &passtmpfile, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
111 | 111 |
112 {"divx4opts", divx4opts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0}, | 112 {"divx4opts", divx4opts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, |
113 #endif | 113 #endif |
114 #ifdef HAVE_MP3LAME | 114 #ifdef HAVE_MP3LAME |
115 {"lameopts", lameopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0}, | 115 {"lameopts", lameopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, |
116 #endif | 116 #endif |
117 #ifdef USE_LIBAVCODEC | 117 #ifdef USE_LIBAVCODEC |
118 {"lavcopts", lavcopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0}, | 118 {"lavcopts", lavcopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, |
119 #endif | 119 #endif |
120 #ifdef USE_WIN32DLL | 120 #ifdef USE_WIN32DLL |
121 {"vfwopts", vfwopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0}, | 121 {"vfwopts", vfwopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, |
122 #endif | 122 #endif |
123 | 123 |
124 #define MAIN_CONF | 124 #define MAIN_CONF |
125 #include "cfg-common.h" | 125 #include "cfg-common.h" |
126 #undef MAIN_CONF | 126 #undef MAIN_CONF |
127 | 127 |
128 // {"quiet", &quiet, CONF_TYPE_FLAG, 0, 0, 1}, | 128 // {"quiet", &quiet, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
129 {"verbose", &verbose, CONF_TYPE_INT, CONF_RANGE, 0, 100}, | 129 {"verbose", &verbose, CONF_TYPE_INT, CONF_RANGE, 0, 100, NULL}, |
130 {"v", cfg_inc_verbose, CONF_TYPE_FUNC, 0, 0, 0}, | 130 {"v", cfg_inc_verbose, CONF_TYPE_FUNC, 0, 0, 0, NULL}, |
131 // {"-help", help_text, CONF_TYPE_PRINT, CONF_NOCFG, 0, 0}, | 131 // {"-help", help_text, CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, |
132 // {"help", help_text, CONF_TYPE_PRINT, CONF_NOCFG, 0, 0}, | 132 // {"help", help_text, CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, |
133 // {"h", help_text, CONF_TYPE_PRINT, CONF_NOCFG, 0, 0}, | 133 // {"h", help_text, CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, |
134 {NULL, NULL, 0, 0, 0, 0} | 134 {NULL, NULL, 0, 0, 0, 0, NULL} |
135 }; | 135 }; |