Mercurial > mplayer.hg
annotate cfg-common.h @ 31393:496c8a6d045b
Move extern variable declarations for network.c to network.h.
author | diego |
---|---|
date | Fri, 18 Jun 2010 09:44:58 +0000 |
parents | aba3834b6411 |
children | f6864e52d6be |
rev | line source |
---|---|
30429
c1a3f1bbba26
Add license header to all top-level files missing them.
diego
parents:
29809
diff
changeset
|
1 /* |
c1a3f1bbba26
Add license header to all top-level files missing them.
diego
parents:
29809
diff
changeset
|
2 * This file is part of MPlayer. |
c1a3f1bbba26
Add license header to all top-level files missing them.
diego
parents:
29809
diff
changeset
|
3 * |
c1a3f1bbba26
Add license header to all top-level files missing them.
diego
parents:
29809
diff
changeset
|
4 * MPlayer is free software; you can redistribute it and/or modify |
c1a3f1bbba26
Add license header to all top-level files missing them.
diego
parents:
29809
diff
changeset
|
5 * it under the terms of the GNU General Public License as published by |
c1a3f1bbba26
Add license header to all top-level files missing them.
diego
parents:
29809
diff
changeset
|
6 * the Free Software Foundation; either version 2 of the License, or |
c1a3f1bbba26
Add license header to all top-level files missing them.
diego
parents:
29809
diff
changeset
|
7 * (at your option) any later version. |
c1a3f1bbba26
Add license header to all top-level files missing them.
diego
parents:
29809
diff
changeset
|
8 * |
c1a3f1bbba26
Add license header to all top-level files missing them.
diego
parents:
29809
diff
changeset
|
9 * MPlayer is distributed in the hope that it will be useful, |
c1a3f1bbba26
Add license header to all top-level files missing them.
diego
parents:
29809
diff
changeset
|
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
c1a3f1bbba26
Add license header to all top-level files missing them.
diego
parents:
29809
diff
changeset
|
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
c1a3f1bbba26
Add license header to all top-level files missing them.
diego
parents:
29809
diff
changeset
|
12 * GNU General Public License for more details. |
c1a3f1bbba26
Add license header to all top-level files missing them.
diego
parents:
29809
diff
changeset
|
13 * |
c1a3f1bbba26
Add license header to all top-level files missing them.
diego
parents:
29809
diff
changeset
|
14 * You should have received a copy of the GNU General Public License along |
c1a3f1bbba26
Add license header to all top-level files missing them.
diego
parents:
29809
diff
changeset
|
15 * with MPlayer; if not, write to the Free Software Foundation, Inc., |
c1a3f1bbba26
Add license header to all top-level files missing them.
diego
parents:
29809
diff
changeset
|
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
c1a3f1bbba26
Add license header to all top-level files missing them.
diego
parents:
29809
diff
changeset
|
17 */ |
c1a3f1bbba26
Add license header to all top-level files missing them.
diego
parents:
29809
diff
changeset
|
18 |
26360
a48df598c055
Split cfg-common.h into two separate header files. It was being included twice
diego
parents:
26130
diff
changeset
|
19 #ifndef MPLAYER_CFG_COMMON_H |
a48df598c055
Split cfg-common.h into two separate header files. It was being included twice
diego
parents:
26130
diff
changeset
|
20 #define MPLAYER_CFG_COMMON_H |
2790 | 21 |
27061 | 22 #include <sys/types.h> |
2790 | 23 #include "config.h" |
27061 | 24 #include "m_config.h" |
25 #include "m_option.h" | |
31392
aba3834b6411
Move mp_msg-related extern variable declarations to mp_msg.h.
diego
parents:
31368
diff
changeset
|
26 #include "mp_msg.h" |
2790 | 27 |
31220
002cdc635c03
Use the -a52drc option also for the libavcodec decoder.
reimar
parents:
31184
diff
changeset
|
28 #include "libmpcodecs/ad.h" |
002cdc635c03
Use the -a52drc option also for the libavcodec decoder.
reimar
parents:
31184
diff
changeset
|
29 #include "libmpcodecs/vd.h" |
31368
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
30 #include "libmpdemux/demux_ts.h" |
31220
002cdc635c03
Use the -a52drc option also for the libavcodec decoder.
reimar
parents:
31184
diff
changeset
|
31 #include "osdep/priority.h" |
31393
496c8a6d045b
Move extern variable declarations for network.c to network.h.
diego
parents:
31392
diff
changeset
|
32 #include "stream/network.h" |
31220
002cdc635c03
Use the -a52drc option also for the libavcodec decoder.
reimar
parents:
31184
diff
changeset
|
33 |
11759
29eea271490e
add -codecs-file for selecting a specific codecs.conf on the comand line
attila
parents:
11592
diff
changeset
|
34 /* defined in codec-cfg.c */ |
29eea271490e
add -codecs-file for selecting a specific codecs.conf on the comand line
attila
parents:
11592
diff
changeset
|
35 extern char * codecs_file; |
29eea271490e
add -codecs-file for selecting a specific codecs.conf on the comand line
attila
parents:
11592
diff
changeset
|
36 |
22086
8bf15e2ca61e
Add global field dominance flag instead of duplicating this "everywhere"
reimar
parents:
22037
diff
changeset
|
37 /* defined in dec_video.c */ |
8bf15e2ca61e
Add global field dominance flag instead of duplicating this "everywhere"
reimar
parents:
22037
diff
changeset
|
38 extern int field_dominance; |
8bf15e2ca61e
Add global field dominance flag instead of duplicating this "everywhere"
reimar
parents:
22037
diff
changeset
|
39 |
12408
ad1a2bad9248
typos, wording and mistakes pointed out by the wanderer
diego
parents:
12407
diff
changeset
|
40 /* from dec_audio, currently used for ac3surround decoder only */ |
7604
32efb806436e
aufio filter layer (libaf) integration to libmpcodecs, mplayer and mencoder
arpi
parents:
7529
diff
changeset
|
41 extern int audio_output_channels; |
25231
ee5eccc1206d
Move fakemono extern to cfg-common.h where it is actually used.
reimar
parents:
25230
diff
changeset
|
42 extern int fakemono; |
7604
32efb806436e
aufio filter layer (libaf) integration to libmpcodecs, mplayer and mencoder
arpi
parents:
7529
diff
changeset
|
43 |
9691
ed72c158215d
Added IPv6 support, patch by Dave Lambley <mplayer-dev-eng@dlambley.freeserve.co.uk>
bertrand
parents:
9663
diff
changeset
|
44 extern int network_prefer_ipv4; |
22473
011d1adc0133
optionally reuse the socket if -reuse-socket is selected; patch by Yong Hwan (sio4 users sf net) simplified by me
nicodvb
parents:
22316
diff
changeset
|
45 extern int reuse_socket; |
9691
ed72c158215d
Added IPv6 support, patch by Dave Lambley <mplayer-dev-eng@dlambley.freeserve.co.uk>
bertrand
parents:
9663
diff
changeset
|
46 |
21636
1e8b1b5b1ccc
support for limiting dvd speed; patch by Tobias Diedrich (ranma tdiedrich se)
nicodvb
parents:
21430
diff
changeset
|
47 extern int dvd_speed; /* stream/stream_dvd.c */ |
1e8b1b5b1ccc
support for limiting dvd speed; patch by Tobias Diedrich (ranma tdiedrich se)
nicodvb
parents:
21430
diff
changeset
|
48 |
7867 | 49 /* defined in libmpdemux: */ |
50 extern int hr_mp3_seek; | |
25241
bb7c65f2a289
Make m_option_t arrays referenced by cfg-common.h const
reimar
parents:
25233
diff
changeset
|
51 extern const m_option_t demux_rawaudio_opts[]; |
bb7c65f2a289
Make m_option_t arrays referenced by cfg-common.h const
reimar
parents:
25233
diff
changeset
|
52 extern const m_option_t demux_rawvideo_opts[]; |
bb7c65f2a289
Make m_option_t arrays referenced by cfg-common.h const
reimar
parents:
25233
diff
changeset
|
53 extern const m_option_t cdda_opts[]; |
7867 | 54 |
55 extern char* sub_stream; | |
56 extern int demuxer_type, audio_demuxer_type, sub_demuxer_type; | |
10688
c2331e3ef96a
- re-added the old and (no more used) option -tsfastparse with a
arpi
parents:
10649
diff
changeset
|
57 extern int ts_prog; |
11190 | 58 extern int ts_keep_broken; |
59 extern off_t ts_probe; | |
28210
6fc5386a8b6b
added support for manual audio substream selection out of 0xFD PES streams (Blueray, multistream in the same pid)
nicodvb
parents:
27727
diff
changeset
|
60 extern int audio_substream_id; |
22037
489b443a8ecf
added code to scan the video stream to search the actual video codec used;
nicodvb
parents:
21636
diff
changeset
|
61 extern off_t ps_probe; |
7867 | 62 |
31368
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
63 extern int sws_flags; |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
64 extern char* pp_help; |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
65 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
66 |
19271
64d82a45a05d
introduce new 'stream' directory for all stream layer related components and split them from libmpdemux
ben
parents:
19082
diff
changeset
|
67 #include "stream/tv.h" |
19568
bd821fd3e244
Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
19563
diff
changeset
|
68 #include "stream/stream_radio.h" |
2790 | 69 |
8531
1aa2c9b460af
Merged EDL 0.5 patch - it's something like Quicktime's edit lists.
arpi
parents:
8361
diff
changeset
|
70 |
19568
bd821fd3e244
Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
19563
diff
changeset
|
71 |
27341
e7c989f7a7c9
Start unifying names of internal preprocessor directives.
diego
parents:
27061
diff
changeset
|
72 #ifdef CONFIG_RADIO |
25233 | 73 const m_option_t radioopts_conf[]={ |
23890 | 74 {"device", &stream_radio_defaults.device, CONF_TYPE_STRING, 0, 0 ,0, NULL}, |
75 {"driver", &stream_radio_defaults.driver, CONF_TYPE_STRING, 0, 0 ,0, NULL}, | |
20985 | 76 #ifdef RADIO_BSDBT848_HDR |
23890 | 77 {"freq_min", &stream_radio_defaults.freq_min, CONF_TYPE_FLOAT, 0, 0 ,0, NULL}, |
78 {"freq_max", &stream_radio_defaults.freq_max, CONF_TYPE_FLOAT, 0, 0 ,0, NULL}, | |
20985 | 79 #endif |
23890 | 80 {"channels", &stream_radio_defaults.channels, CONF_TYPE_STRING_LIST, 0, 0 ,0, NULL}, |
81 {"volume", &stream_radio_defaults.volume, CONF_TYPE_INT, CONF_RANGE, 0 ,100, NULL}, | |
82 {"adevice", &stream_radio_defaults.adevice, CONF_TYPE_STRING, 0, 0 ,0, NULL}, | |
83 {"arate", &stream_radio_defaults.arate, CONF_TYPE_INT, CONF_MIN, 0 ,0, NULL}, | |
84 {"achannels", &stream_radio_defaults.achannels, CONF_TYPE_INT, CONF_MIN, 0 ,0, NULL}, | |
19568
bd821fd3e244
Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
19563
diff
changeset
|
85 {NULL, NULL, 0, 0, 0, 0, NULL} |
bd821fd3e244
Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
19563
diff
changeset
|
86 }; |
27341
e7c989f7a7c9
Start unifying names of internal preprocessor directives.
diego
parents:
27061
diff
changeset
|
87 #endif /* CONFIG_RADIO */ |
19568
bd821fd3e244
Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
19563
diff
changeset
|
88 |
27341
e7c989f7a7c9
Start unifying names of internal preprocessor directives.
diego
parents:
27061
diff
changeset
|
89 #ifdef CONFIG_TV |
25233 | 90 const m_option_t tvopts_conf[]={ |
31077 | 91 {"on", "-tv on has been removed, use tv:// instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL}, |
92 {"immediatemode", &stream_tv_defaults.immediate, CONF_TYPE_INT, CONF_RANGE, 0, 1, NULL}, | |
93 {"noaudio", &stream_tv_defaults.noaudio, CONF_TYPE_FLAG, 0, 0, 1, NULL}, | |
94 {"audiorate", &stream_tv_defaults.audiorate, CONF_TYPE_INT, 0, 0, 0, NULL}, | |
95 {"driver", &stream_tv_defaults.driver, CONF_TYPE_STRING, 0, 0, 0, NULL}, | |
96 {"device", &stream_tv_defaults.device, CONF_TYPE_STRING, 0, 0, 0, NULL}, | |
97 {"freq", &stream_tv_defaults.freq, CONF_TYPE_STRING, 0, 0, 0, NULL}, | |
98 {"channel", &stream_tv_defaults.channel, CONF_TYPE_STRING, 0, 0, 0, NULL}, | |
99 {"chanlist", &stream_tv_defaults.chanlist, CONF_TYPE_STRING, 0, 0, 0, NULL}, | |
100 {"norm", &stream_tv_defaults.norm, CONF_TYPE_STRING, 0, 0, 0, NULL}, | |
101 {"automute", &stream_tv_defaults.automute, CONF_TYPE_INT, CONF_RANGE, 0, 255, NULL}, | |
27370
14c5017f40d2
Change a bunch of video/audio-output-specific preprocessor directives from
diego
parents:
27341
diff
changeset
|
102 #if defined(CONFIG_TV_V4L2) || defined(CONFIG_TV_DSHOW) |
31077 | 103 {"normid", &stream_tv_defaults.normid, CONF_TYPE_INT, 0, 0, 0, NULL}, |
10537 | 104 #endif |
31077 | 105 {"width", &stream_tv_defaults.width, CONF_TYPE_INT, 0, 0, 4096, NULL}, |
106 {"height", &stream_tv_defaults.height, CONF_TYPE_INT, 0, 0, 4096, NULL}, | |
107 {"input", &stream_tv_defaults.input, CONF_TYPE_INT, 0, 0, 20, NULL}, | |
108 {"outfmt", &stream_tv_defaults.outfmt, CONF_TYPE_IMGFMT, 0, 0, 0, NULL}, | |
109 {"fps", &stream_tv_defaults.fps, CONF_TYPE_FLOAT, 0, 0, 100.0, NULL}, | |
110 {"channels", &stream_tv_defaults.channels, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL}, | |
111 {"brightness", &stream_tv_defaults.brightness, CONF_TYPE_INT, CONF_RANGE, -100, 100, NULL}, | |
112 {"contrast", &stream_tv_defaults.contrast, CONF_TYPE_INT, CONF_RANGE, -100, 100, NULL}, | |
113 {"hue", &stream_tv_defaults.hue, CONF_TYPE_INT, CONF_RANGE, -100, 100, NULL}, | |
114 {"saturation", &stream_tv_defaults.saturation, CONF_TYPE_INT, CONF_RANGE, -100, 100, NULL}, | |
115 {"gain", &stream_tv_defaults.gain, CONF_TYPE_INT, CONF_RANGE, -1, 100, NULL}, | |
27370
14c5017f40d2
Change a bunch of video/audio-output-specific preprocessor directives from
diego
parents:
27341
diff
changeset
|
116 #if defined(CONFIG_TV_V4L) || defined(CONFIG_TV_V4L2) || defined(CONFIG_TV_DSHOW) |
31077 | 117 {"buffersize", &stream_tv_defaults.buffer_size, CONF_TYPE_INT, CONF_RANGE, 16, 1024, NULL}, |
118 {"amode", &stream_tv_defaults.amode, CONF_TYPE_INT, CONF_RANGE, 0, 3, NULL}, | |
119 {"volume", &stream_tv_defaults.volume, CONF_TYPE_INT, CONF_RANGE, 0, 65535, NULL}, | |
24744 | 120 #endif |
27370
14c5017f40d2
Change a bunch of video/audio-output-specific preprocessor directives from
diego
parents:
27341
diff
changeset
|
121 #if defined(CONFIG_TV_V4L) || defined(CONFIG_TV_V4L2) |
31077 | 122 {"bass", &stream_tv_defaults.bass, CONF_TYPE_INT, CONF_RANGE, 0, 65535, NULL}, |
123 {"treble", &stream_tv_defaults.treble, CONF_TYPE_INT, CONF_RANGE, 0, 65535, NULL}, | |
124 {"balance", &stream_tv_defaults.balance, CONF_TYPE_INT, CONF_RANGE, 0, 65535, NULL}, | |
125 {"forcechan", &stream_tv_defaults.forcechan, CONF_TYPE_INT, CONF_RANGE, 1, 2, NULL}, | |
126 {"forceaudio", &stream_tv_defaults.force_audio, CONF_TYPE_FLAG, 0, 0, 1, NULL}, | |
127 {"buffersize", &stream_tv_defaults.buffer_size, CONF_TYPE_INT, CONF_RANGE, 16, 1024, NULL}, | |
128 {"mjpeg", &stream_tv_defaults.mjpeg, CONF_TYPE_FLAG, 0, 0, 1, NULL}, | |
129 {"decimation", &stream_tv_defaults.decimation, CONF_TYPE_INT, CONF_RANGE, 1, 4, NULL}, | |
130 {"quality", &stream_tv_defaults.quality, CONF_TYPE_INT, CONF_RANGE, 0, 100, NULL}, | |
27390
9d95dc936e66
Introduce CONFIG_ALSA preprocessor directive for ALSA 0.9 and 1.x.
diego
parents:
27387
diff
changeset
|
131 #ifdef CONFIG_ALSA |
31077 | 132 {"alsa", &stream_tv_defaults.alsa, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
27390
9d95dc936e66
Introduce CONFIG_ALSA preprocessor directive for ALSA 0.9 and 1.x.
diego
parents:
27387
diff
changeset
|
133 #endif /* CONFIG_ALSA */ |
27370
14c5017f40d2
Change a bunch of video/audio-output-specific preprocessor directives from
diego
parents:
27341
diff
changeset
|
134 #endif /* defined(CONFIG_TV_V4L) || defined(CONFIG_TV_V4L2) */ |
31077 | 135 {"adevice", &stream_tv_defaults.adevice, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
136 {"tdevice", &stream_tv_defaults.teletext.device, CONF_TYPE_STRING, 0, 0, 0, NULL}, | |
137 {"tpage", &stream_tv_defaults.teletext.page, CONF_TYPE_INT, CONF_RANGE, 100, 899, NULL}, | |
138 {"tformat", &stream_tv_defaults.teletext.format, CONF_TYPE_INT, CONF_RANGE, 0, 3, NULL}, | |
139 {"tlang", &stream_tv_defaults.teletext.lang, CONF_TYPE_INT, CONF_RANGE, -1, 0x7f, NULL}, | |
140 {"audioid", &stream_tv_defaults.audio_id, CONF_TYPE_INT, CONF_RANGE, 0, 9, NULL}, | |
27370
14c5017f40d2
Change a bunch of video/audio-output-specific preprocessor directives from
diego
parents:
27341
diff
changeset
|
141 #ifdef CONFIG_TV_DSHOW |
31077 | 142 {"hidden_video_renderer", &stream_tv_defaults.hidden_video_renderer, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
143 {"nohidden_video_renderer", &stream_tv_defaults.hidden_video_renderer, CONF_TYPE_FLAG, 0, 0, 0, NULL}, | |
144 {"hidden_vp_renderer", &stream_tv_defaults.hidden_vp_renderer, CONF_TYPE_FLAG, 0, 0, 1, NULL}, | |
145 {"nohidden_vp_renderer", &stream_tv_defaults.hidden_vp_renderer, CONF_TYPE_FLAG, 0, 0, 0, NULL}, | |
146 {"system_clock", &stream_tv_defaults.system_clock, CONF_TYPE_FLAG, 0, 0, 1, NULL}, | |
147 {"nosystem_clock", &stream_tv_defaults.system_clock, CONF_TYPE_FLAG, 0, 0, 0, NULL}, | |
148 {"normalize_audio_chunks", &stream_tv_defaults.normalize_audio_chunks, CONF_TYPE_FLAG, 0, 0, 1, NULL}, | |
149 {"nonormalize_audio_chunks", &stream_tv_defaults.normalize_audio_chunks, CONF_TYPE_FLAG, 0, 0, 0, NULL}, | |
24744 | 150 #endif |
31077 | 151 {NULL, NULL, 0, 0, 0, 0, NULL} |
2790 | 152 }; |
27341
e7c989f7a7c9
Start unifying names of internal preprocessor directives.
diego
parents:
27061
diff
changeset
|
153 #endif /* CONFIG_TV */ |
2790 | 154 |
18997 | 155 extern int pvr_param_aspect_ratio; |
156 extern int pvr_param_sample_rate; | |
157 extern int pvr_param_audio_layer; | |
158 extern int pvr_param_audio_bitrate; | |
159 extern char *pvr_param_audio_mode; | |
160 extern int pvr_param_bitrate; | |
161 extern char *pvr_param_bitrate_mode; | |
162 extern int pvr_param_bitrate_peak; | |
163 extern char *pvr_param_stream_type; | |
164 | |
27426
89812cdbc1b8
Remove pointless #ifdefs around extern declarations.
diego
parents:
27425
diff
changeset
|
165 #ifdef CONFIG_PVR |
25233 | 166 const m_option_t pvropts_conf[]={ |
31077 | 167 {"aspect", &pvr_param_aspect_ratio, CONF_TYPE_INT, 0, 1, 4, NULL}, |
168 {"arate", &pvr_param_sample_rate, CONF_TYPE_INT, 0, 32000, 48000, NULL}, | |
169 {"alayer", &pvr_param_audio_layer, CONF_TYPE_INT, 0, 1, 2, NULL}, | |
170 {"abitrate", &pvr_param_audio_bitrate, CONF_TYPE_INT, 0, 32, 448, NULL}, | |
171 {"amode", &pvr_param_audio_mode, CONF_TYPE_STRING, 0, 0, 0, NULL}, | |
172 {"vbitrate", &pvr_param_bitrate, CONF_TYPE_INT, 0, 0, 0, NULL}, | |
173 {"vmode", &pvr_param_bitrate_mode, CONF_TYPE_STRING, 0, 0, 0, NULL}, | |
174 {"vpeak", &pvr_param_bitrate_peak, CONF_TYPE_INT, 0, 0, 0, NULL}, | |
175 {"fmt", &pvr_param_stream_type, CONF_TYPE_STRING, 0, 0, 0, NULL}, | |
176 {NULL, NULL, 0, 0, 0, 0, NULL} | |
18997 | 177 }; |
27370
14c5017f40d2
Change a bunch of video/audio-output-specific preprocessor directives from
diego
parents:
27341
diff
changeset
|
178 #endif /* CONFIG_PVR */ |
18997 | 179 |
25241
bb7c65f2a289
Make m_option_t arrays referenced by cfg-common.h const
reimar
parents:
25233
diff
changeset
|
180 extern const m_config_t dvbin_opts_conf[]; |
bb7c65f2a289
Make m_option_t arrays referenced by cfg-common.h const
reimar
parents:
25233
diff
changeset
|
181 extern const m_option_t lavfdopts_conf[]; |
19598 | 182 |
24564
e4a38a7cdb81
libnemesi support, yet another rtsp/rtp library...
lu_zero
parents:
24553
diff
changeset
|
183 extern int rtsp_transport_tcp; |
31281 | 184 extern int rtsp_transport_http; |
24564
e4a38a7cdb81
libnemesi support, yet another rtsp/rtp library...
lu_zero
parents:
24553
diff
changeset
|
185 extern int rtsp_transport_sctp; |
18135
ebb9806d7dda
rtsp options should be available for mencoder as well
reimar
parents:
17959
diff
changeset
|
186 extern int rtsp_port; |
18874
57bb217e71a4
new rtsp-destination option which allows forcing destination ip address (fixes some issues with some reluctant rtsp servers)
ben
parents:
18829
diff
changeset
|
187 extern char *rtsp_destination; |
18135
ebb9806d7dda
rtsp options should be available for mencoder as well
reimar
parents:
17959
diff
changeset
|
188 |
11111
5c5579281819
10l found by Raindel Shachar <raindel@techunix.technion.ac.il>
alex
parents:
10822
diff
changeset
|
189 |
9711
f7295ec4fb17
New option -audiofile-cache to enable a cache for the stream used by
albeu
parents:
9691
diff
changeset
|
190 extern int audio_stream_cache; |
9610 | 191 |
4294
21dbbbbd5479
a few filters (should be removed/merged when arpis videofilter stuff is finished)
michael
parents:
4291
diff
changeset
|
192 extern int sws_chr_vshift; |
21dbbbbd5479
a few filters (should be removed/merged when arpis videofilter stuff is finished)
michael
parents:
4291
diff
changeset
|
193 extern int sws_chr_hshift; |
21dbbbbd5479
a few filters (should be removed/merged when arpis videofilter stuff is finished)
michael
parents:
4291
diff
changeset
|
194 extern float sws_chr_gblur; |
21dbbbbd5479
a few filters (should be removed/merged when arpis videofilter stuff is finished)
michael
parents:
4291
diff
changeset
|
195 extern float sws_lum_gblur; |
4297
29fef3982238
15/16 bit dithering in C (5% slower, can be disabled by comenting #define DITHER1XBPP out)
michael
parents:
4294
diff
changeset
|
196 extern float sws_chr_sharpen; |
29fef3982238
15/16 bit dithering in C (5% slower, can be disabled by comenting #define DITHER1XBPP out)
michael
parents:
4294
diff
changeset
|
197 extern float sws_lum_sharpen; |
4294
21dbbbbd5479
a few filters (should be removed/merged when arpis videofilter stuff is finished)
michael
parents:
4291
diff
changeset
|
198 |
25233 | 199 const m_option_t scaler_filter_conf[]={ |
31077 | 200 {"lgb", &sws_lum_gblur, CONF_TYPE_FLOAT, 0, 0, 100.0, NULL}, |
201 {"cgb", &sws_chr_gblur, CONF_TYPE_FLOAT, 0, 0, 100.0, NULL}, | |
202 {"cvs", &sws_chr_vshift, CONF_TYPE_INT, 0, 0, 0, NULL}, | |
203 {"chs", &sws_chr_hshift, CONF_TYPE_INT, 0, 0, 0, NULL}, | |
204 {"ls", &sws_lum_sharpen, CONF_TYPE_FLOAT, 0, -100.0, 100.0, NULL}, | |
205 {"cs", &sws_chr_sharpen, CONF_TYPE_FLOAT, 0, -100.0, 100.0, NULL}, | |
206 {NULL, NULL, 0, 0, 0, 0, NULL} | |
4294
21dbbbbd5479
a few filters (should be removed/merged when arpis videofilter stuff is finished)
michael
parents:
4291
diff
changeset
|
207 }; |
21dbbbbd5479
a few filters (should be removed/merged when arpis videofilter stuff is finished)
michael
parents:
4291
diff
changeset
|
208 |
3502 | 209 /* VIVO demuxer options: */ |
3503 | 210 extern int vivo_param_version; |
3502 | 211 extern char *vivo_param_acodec; |
212 extern int vivo_param_abitrate; | |
213 extern int vivo_param_samplerate; | |
214 extern int vivo_param_bytesperblock; | |
215 extern int vivo_param_width; | |
216 extern int vivo_param_height; | |
217 extern int vivo_param_vformat; | |
9753
cd3b8691e930
-vcd, -dvd, -dvdnav, -tv on, -cuefile and -mf on are deprecated
albeu
parents:
9711
diff
changeset
|
218 extern char *dvd_device, *cdrom_device; |
3502 | 219 |
25233 | 220 const m_option_t vivoopts_conf[]={ |
31077 | 221 {"version", &vivo_param_version, CONF_TYPE_INT, 0, 0, 0, NULL}, |
222 /* audio options */ | |
223 {"acodec", &vivo_param_acodec, CONF_TYPE_STRING, 0, 0, 0, NULL}, | |
224 {"abitrate", &vivo_param_abitrate, CONF_TYPE_INT, 0, 0, 0, NULL}, | |
225 {"samplerate", &vivo_param_samplerate, CONF_TYPE_INT, 0, 0, 0, NULL}, | |
226 {"bytesperblock", &vivo_param_bytesperblock, CONF_TYPE_INT, 0, 0, 0, NULL}, | |
227 /* video options */ | |
228 {"width", &vivo_param_width, CONF_TYPE_INT, 0, 0, 0, NULL}, | |
229 {"height", &vivo_param_height, CONF_TYPE_INT, 0, 0, 0, NULL}, | |
230 {"vformat", &vivo_param_vformat, CONF_TYPE_INT, 0, 0, 0, NULL}, | |
231 {NULL, NULL, 0, 0, 0, 0, NULL} | |
3502 | 232 }; |
233 | |
4551 | 234 extern int mf_w; |
235 extern int mf_h; | |
25964 | 236 extern double mf_fps; |
4551 | 237 extern char * mf_type; |
9593
e9a2af584986
Add the new -vf option wich is the same as vop in reverse order.
albeu
parents:
9531
diff
changeset
|
238 extern m_obj_settings_t* vf_settings; |
e9a2af584986
Add the new -vf option wich is the same as vop in reverse order.
albeu
parents:
9531
diff
changeset
|
239 extern m_obj_list_t vf_obj_list; |
4551 | 240 |
25233 | 241 const m_option_t mfopts_conf[]={ |
31077 | 242 {"on", "-mf on has been removed, use mf:// instead.\n", CONF_TYPE_PRINT, 0, 0, 1, NULL}, |
243 {"w", &mf_w, CONF_TYPE_INT, 0, 0, 0, NULL}, | |
244 {"h", &mf_h, CONF_TYPE_INT, 0, 0, 0, NULL}, | |
245 {"fps", &mf_fps, CONF_TYPE_DOUBLE, 0, 0, 0, NULL}, | |
246 {"type", &mf_type, CONF_TYPE_STRING, 0, 0, 0, NULL}, | |
247 {NULL, NULL, 0, 0, 0, 0, NULL} | |
4551 | 248 }; |
5507
d0d029fda134
video filter layer - written from scratch, but inspired a lot by Fredrik Kuivinen's patch
arpi
parents:
5475
diff
changeset
|
249 |
9349 | 250 #include "libaf/af.h" |
251 extern af_cfg_t af_cfg; // Audio filter configuration, defined in libmpcodecs/dec_audio.c | |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
28485
diff
changeset
|
252 const m_option_t audio_filter_conf[]={ |
31077 | 253 {"list", &af_cfg.list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL}, |
254 {"force", &af_cfg.force, CONF_TYPE_INT, CONF_RANGE, 0, 7, NULL}, | |
255 {NULL, NULL, 0, 0, 0, 0, NULL} | |
9349 | 256 }; |
257 | |
25233 | 258 const m_option_t msgl_config[]={ |
31077 | 259 { "all", &mp_msg_level_all, CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL}, |
17106
05af35012e4f
new -msglevel option, constrols msg level for every msg module
ods15
parents:
16175
diff
changeset
|
260 |
31077 | 261 { "global", &mp_msg_levels[MSGT_GLOBAL], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, |
262 { "cplayer", &mp_msg_levels[MSGT_CPLAYER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
263 { "gplayer", &mp_msg_levels[MSGT_GPLAYER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
264 { "vo", &mp_msg_levels[MSGT_VO], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
265 { "ao", &mp_msg_levels[MSGT_AO], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
266 { "demuxer", &mp_msg_levels[MSGT_DEMUXER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
267 { "ds", &mp_msg_levels[MSGT_DS], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
268 { "demux", &mp_msg_levels[MSGT_DEMUX], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
269 { "header", &mp_msg_levels[MSGT_HEADER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
270 { "avsync", &mp_msg_levels[MSGT_AVSYNC], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
271 { "autoq", &mp_msg_levels[MSGT_AUTOQ], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
272 { "cfgparser", &mp_msg_levels[MSGT_CFGPARSER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
273 { "decaudio", &mp_msg_levels[MSGT_DECAUDIO], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
274 { "decvideo", &mp_msg_levels[MSGT_DECVIDEO], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
275 { "seek", &mp_msg_levels[MSGT_SEEK], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
276 { "win32", &mp_msg_levels[MSGT_WIN32], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
277 { "open", &mp_msg_levels[MSGT_OPEN], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
278 { "dvd", &mp_msg_levels[MSGT_DVD], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
279 { "parsees", &mp_msg_levels[MSGT_PARSEES], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
280 { "lirc", &mp_msg_levels[MSGT_LIRC], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
281 { "stream", &mp_msg_levels[MSGT_STREAM], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
282 { "cache", &mp_msg_levels[MSGT_CACHE], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
283 { "mencoder", &mp_msg_levels[MSGT_MENCODER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
284 { "xacodec", &mp_msg_levels[MSGT_XACODEC], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
285 { "tv", &mp_msg_levels[MSGT_TV], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
286 { "radio", &mp_msg_levels[MSGT_RADIO], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
287 { "osdep", &mp_msg_levels[MSGT_OSDEP], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
288 { "spudec", &mp_msg_levels[MSGT_SPUDEC], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
289 { "playtree", &mp_msg_levels[MSGT_PLAYTREE], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
290 { "input", &mp_msg_levels[MSGT_INPUT], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
291 { "vfilter", &mp_msg_levels[MSGT_VFILTER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
292 { "osd", &mp_msg_levels[MSGT_OSD], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
293 { "network", &mp_msg_levels[MSGT_NETWORK], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
294 { "cpudetect", &mp_msg_levels[MSGT_CPUDETECT], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
295 { "codeccfg", &mp_msg_levels[MSGT_CODECCFG], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
296 { "sws", &mp_msg_levels[MSGT_SWS], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
297 { "vobsub", &mp_msg_levels[MSGT_VOBSUB], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
298 { "subreader", &mp_msg_levels[MSGT_SUBREADER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
299 { "afilter", &mp_msg_levels[MSGT_AFILTER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
300 { "netst", &mp_msg_levels[MSGT_NETST], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
301 { "muxer", &mp_msg_levels[MSGT_MUXER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
302 { "osd-menu", &mp_msg_levels[MSGT_OSD_MENU], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
303 { "identify", &mp_msg_levels[MSGT_IDENTIFY], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
304 { "ass", &mp_msg_levels[MSGT_ASS], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
305 { "statusline", &mp_msg_levels[MSGT_STATUSLINE], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL }, | |
306 {"help", "Available msg modules:\n" | |
307 " global - common player errors/information\n" | |
308 " cplayer - console player (mplayer.c)\n" | |
309 " gplayer - gui player\n" | |
31158
e1db21f14dd2
cosmetics: vertical alignment in msg module help output
diego
parents:
31077
diff
changeset
|
310 " vo - libvo\n" |
e1db21f14dd2
cosmetics: vertical alignment in msg module help output
diego
parents:
31077
diff
changeset
|
311 " ao - libao\n" |
31077 | 312 " demuxer - demuxer.c (general stuff)\n" |
31158
e1db21f14dd2
cosmetics: vertical alignment in msg module help output
diego
parents:
31077
diff
changeset
|
313 " ds - demux stream (add/read packet etc)\n" |
31077 | 314 " demux - fileformat-specific stuff (demux_*.c)\n" |
315 " header - fileformat-specific header (*header.c)\n" | |
316 " avsync - mplayer.c timer stuff\n" | |
317 " autoq - mplayer.c auto-quality stuff\n" | |
318 " cfgparser - cfgparser.c\n" | |
319 " decaudio - av decoder\n" | |
320 " decvideo\n" | |
321 " seek - seeking code\n" | |
322 " win32 - win32 dll stuff\n" | |
323 " open - open.c (stream opening)\n" | |
31158
e1db21f14dd2
cosmetics: vertical alignment in msg module help output
diego
parents:
31077
diff
changeset
|
324 " dvd - open.c (DVD init/read/seek)\n" |
31077 | 325 " parsees - parse_es.c (mpeg stream parser)\n" |
326 " lirc - lirc_mp.c and input lirc driver\n" | |
327 " stream - stream.c\n" | |
328 " cache - cache2.c\n" | |
329 " mencoder\n" | |
330 " xacodec - XAnim codecs\n" | |
31158
e1db21f14dd2
cosmetics: vertical alignment in msg module help output
diego
parents:
31077
diff
changeset
|
331 " tv - TV input subsystem\n" |
31077 | 332 " osdep - OS-dependent parts\n" |
333 " spudec - spudec.c\n" | |
334 " playtree - Playtree handling (playtree.c, playtreeparser.c)\n" | |
335 " input\n" | |
336 " vfilter\n" | |
337 " osd\n" | |
338 " network\n" | |
339 " cpudetect\n" | |
340 " codeccfg\n" | |
341 " sws\n" | |
342 " vobsub\n" | |
343 " subreader\n" | |
344 " osd-menu - OSD menu messages\n" | |
345 " afilter - Audio filter messages\n" | |
346 " netst - Netstream\n" | |
347 " muxer - muxer layer\n" | |
348 " identify - identify output\n" | |
31184
a012168a8ec6
cosmetics: vertical alignment in msg module help output.
diego
parents:
31158
diff
changeset
|
349 " ass - libass messages\n" |
31077 | 350 " statusline - playback/encoding status line\n" |
351 "\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, | |
352 {NULL, NULL, 0, 0, 0, 0, NULL} | |
18582 | 353 |
17106
05af35012e4f
new -msglevel option, constrols msg level for every msg module
ods15
parents:
16175
diff
changeset
|
354 }; |
05af35012e4f
new -msglevel option, constrols msg level for every msg module
ods15
parents:
16175
diff
changeset
|
355 |
26416 | 356 extern const m_option_t noconfig_opts[]; |
357 | |
25241
bb7c65f2a289
Make m_option_t arrays referenced by cfg-common.h const
reimar
parents:
25233
diff
changeset
|
358 extern const m_option_t lavc_decode_opts_conf[]; |
bb7c65f2a289
Make m_option_t arrays referenced by cfg-common.h const
reimar
parents:
25233
diff
changeset
|
359 extern const m_option_t xvid_dec_opts[]; |
6756 | 360 |
31368
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
361 const m_option_t common_opts[] = { |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
362 // ------------------------- common options -------------------- |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
363 {"quiet", &quiet, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
364 {"noquiet", &quiet, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
365 {"really-quiet", &verbose, CONF_TYPE_FLAG, CONF_GLOBAL|CONF_PRE_PARSE, 0, -10, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
366 {"v", cfg_inc_verbose, CONF_TYPE_FUNC, CONF_GLOBAL|CONF_NOSAVE, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
367 {"msglevel", msgl_config, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
368 {"msgcolor", &mp_msg_color, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
369 {"nomsgcolor", &mp_msg_color, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
370 {"msgmodule", &mp_msg_module, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
371 {"nomsgmodule", &mp_msg_module, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
372 #ifdef CONFIG_ICONV |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
373 {"msgcharset", &mp_msg_charset, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
374 #endif |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
375 {"include", cfg_include, CONF_TYPE_FUNC_PARAM, CONF_NOSAVE, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
376 #ifdef CONFIG_PRIORITY |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
377 {"priority", &proc_priority, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
378 #endif |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
379 {"codecpath", &codec_path, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
380 {"noconfig", noconfig_opts, CONF_TYPE_SUBCONFIG, CONF_GLOBAL|CONF_NOCFG|CONF_PRE_PARSE, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
381 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
382 // ------------------------- stream options -------------------- |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
383 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
384 #ifdef CONFIG_STREAM_CACHE |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
385 {"cache", &stream_cache_size, CONF_TYPE_INT, CONF_RANGE, 32, 1048576, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
386 {"nocache", &stream_cache_size, CONF_TYPE_FLAG, 0, 1, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
387 {"cache-min", &stream_cache_min_percent, CONF_TYPE_FLOAT, CONF_RANGE, 0, 99, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
388 {"cache-seek-min", &stream_cache_seek_min_percent, CONF_TYPE_FLOAT, CONF_RANGE, 0, 99, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
389 #else |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
390 {"cache", "MPlayer was compiled without cache2 support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
391 #endif /* CONFIG_STREAM_CACHE */ |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
392 {"vcd", "-vcd N has been removed, use vcd://N instead.\n", CONF_TYPE_PRINT, CONF_NOCFG ,0,0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
393 {"cuefile", "-cuefile has been removed, use cue://filename:N where N is the track number.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
394 {"cdrom-device", &cdrom_device, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
395 #ifdef CONFIG_DVDREAD |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
396 {"dvd-device", &dvd_device, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
397 {"dvd-speed", &dvd_speed, CONF_TYPE_INT, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
398 {"dvd", "-dvd N has been removed, use dvd://N instead.\n" , CONF_TYPE_PRINT, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
399 {"dvdangle", &dvd_angle, CONF_TYPE_INT, CONF_RANGE, 1, 99, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
400 {"chapter", dvd_parse_chapter_range, CONF_TYPE_FUNC_PARAM, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
401 #else |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
402 {"dvd-device", "MPlayer was compiled without libdvdread support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
403 {"dvd-speed", "MPlayer was compiled without libdvdread support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
404 {"dvd", "MPlayer was compiled without libdvdread support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
405 #endif /* CONFIG_DVDREAD */ |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
406 {"alang", &audio_lang, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
407 {"slang", &dvdsub_lang, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
408 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
409 {"dvdauth", "libcss is obsolete. Try libdvdread instead.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
410 {"dvdkey", "libcss is obsolete. Try libdvdread instead.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
411 {"csslib", "libcss is obsolete. Try libdvdread instead.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
412 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
413 #ifdef CONFIG_NETWORK |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
414 {"user", &network_username, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
415 {"passwd", &network_password, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
416 {"bandwidth", &network_bandwidth, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
417 {"user-agent", &network_useragent, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
418 {"referrer", &network_referrer, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
419 {"cookies", &network_cookies_enabled, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
420 {"nocookies", &network_cookies_enabled, CONF_TYPE_FLAG, 0, 1, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
421 {"cookies-file", &cookies_file, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
422 {"prefer-ipv4", &network_prefer_ipv4, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
423 {"ipv4-only-proxy", &network_ipv4_only_proxy, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
424 {"reuse-socket", &reuse_socket, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
425 {"noreuse-socket", &reuse_socket, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
426 #ifdef HAVE_AF_INET6 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
427 {"prefer-ipv6", &network_prefer_ipv4, CONF_TYPE_FLAG, 0, 1, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
428 #else |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
429 {"prefer-ipv6", "MPlayer was compiled without IPv6 support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
430 #endif /* HAVE_AF_INET6 */ |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
431 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
432 #else |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
433 {"user", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
434 {"passwd", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
435 {"bandwidth", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
436 {"user-agent", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
437 #endif /* CONFIG_NETWORK */ |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
438 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
439 #ifdef CONFIG_LIVE555 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
440 {"sdp", "-sdp has been removed, use sdp://file instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
441 {"rtsp-stream-over-http", &rtsp_transport_http, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
442 #else |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
443 {"rtsp-stream-over-http", "-rtsp-stream-over-http requires the \"LIVE555 Streaming Media\" library.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
444 #endif /* CONFIG_LIVE555 */ |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
445 #if defined(CONFIG_LIBNEMESI) || defined(CONFIG_LIVE555) |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
446 // -rtsp-stream-over-tcp option, specifying TCP streaming of RTP/RTCP |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
447 {"rtsp-stream-over-tcp", &rtsp_transport_tcp, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
448 #else |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
449 {"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}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
450 #endif /* defined(CONFIG_LIBNEMESI) || defined(CONFIG_LIVE555) */ |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
451 #ifdef CONFIG_LIBNEMESI |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
452 {"rtsp-stream-over-sctp", &rtsp_transport_sctp, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
453 #else |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
454 {"rtsp-stream-over-sctp", "-rtsp-stream-over-sctp requires the \"libnemesi\" library\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
455 #endif /* CONFIG_LIBNEMESI */ |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
456 #ifdef CONFIG_NETWORK |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
457 {"rtsp-port", &rtsp_port, CONF_TYPE_INT, CONF_RANGE, -1, 65535, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
458 {"rtsp-destination", &rtsp_destination, CONF_TYPE_STRING, CONF_MIN, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
459 #else |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
460 {"rtsp-port", "MPlayer was compiled without network support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
461 {"rtsp-destination", "MPlayer was compiled without network support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
462 #endif /* CONFIG_NETWORK */ |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
463 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
464 // ------------------------- demuxer options -------------------- |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
465 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
466 // number of frames to play/convert |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
467 {"frames", &play_n_frames_mf, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
468 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
469 // seek to byte/seconds position |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
470 {"sb", &seek_to_byte, CONF_TYPE_POSITION, CONF_MIN, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
471 {"ss", &seek_to_sec, CONF_TYPE_TIME, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
472 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
473 // stop at given position |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
474 {"endpos", &end_at, CONF_TYPE_TIME_SIZE, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
475 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
476 {"edl", &edl_filename, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
477 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
478 // AVI specific: force non-interleaved mode |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
479 {"ni", &force_ni, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
480 {"noni", &force_ni, CONF_TYPE_FLAG, 0, 1, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
481 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
482 // AVI and Ogg only: (re)build index at startup |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
483 {"noidx", &index_mode, CONF_TYPE_FLAG, 0, -1, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
484 {"idx", &index_mode, CONF_TYPE_FLAG, 0, -1, 1, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
485 {"forceidx", &index_mode, CONF_TYPE_FLAG, 0, -1, 2, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
486 {"saveidx", &index_file_save, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
487 {"loadidx", &index_file_load, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
488 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
489 // select audio/video/subtitle stream |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
490 {"aid", &audio_id, CONF_TYPE_INT, CONF_RANGE, -2, 8190, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
491 {"ausid", &audio_substream_id, CONF_TYPE_INT, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
492 {"vid", &video_id, CONF_TYPE_INT, CONF_RANGE, -2, 8190, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
493 {"sid", &dvdsub_id, CONF_TYPE_INT, CONF_RANGE, -2, 8190, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
494 {"nosub", &dvdsub_id, CONF_TYPE_FLAG, 0, -1, -2, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
495 {"novideo", &video_id, CONF_TYPE_FLAG, 0, -1, -2, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
496 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
497 { "hr-mp3-seek", &hr_mp3_seek, CONF_TYPE_FLAG, 0, 0, 1, NULL }, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
498 { "nohr-mp3-seek", &hr_mp3_seek, CONF_TYPE_FLAG, 0, 1, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
499 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
500 { "rawaudio", &demux_rawaudio_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
501 { "rawvideo", &demux_rawvideo_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
502 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
503 #ifdef CONFIG_CDDA |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
504 { "cdda", &cdda_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
505 #endif |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
506 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
507 // demuxer.c - select audio/sub file/demuxer |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
508 { "audiofile", &audio_stream, CONF_TYPE_STRING, 0, 0, 0, NULL }, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
509 { "audiofile-cache", &audio_stream_cache, CONF_TYPE_INT, CONF_RANGE, 50, 65536, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
510 { "subfile", &sub_stream, CONF_TYPE_STRING, 0, 0, 0, NULL }, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
511 { "demuxer", &demuxer_name, CONF_TYPE_STRING, 0, 0, 0, NULL }, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
512 { "audio-demuxer", &audio_demuxer_name, CONF_TYPE_STRING, 0, 0, 0, NULL }, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
513 { "sub-demuxer", &sub_demuxer_name, CONF_TYPE_STRING, 0, 0, 0, NULL }, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
514 { "extbased", &extension_parsing, CONF_TYPE_FLAG, 0, 0, 1, NULL }, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
515 { "noextbased", &extension_parsing, CONF_TYPE_FLAG, 0, 1, 0, NULL }, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
516 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
517 {"mf", mfopts_conf, CONF_TYPE_SUBCONFIG, 0,0,0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
518 #ifdef CONFIG_RADIO |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
519 {"radio", radioopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
520 #else |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
521 {"radio", "MPlayer was compiled without Radio interface support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
522 #endif /* CONFIG_RADIO */ |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
523 #ifdef CONFIG_TV |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
524 {"tv", tvopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
525 #else |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
526 {"tv", "MPlayer was compiled without TV interface support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
527 #endif /* CONFIG_TV */ |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
528 #ifdef CONFIG_PVR |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
529 {"pvr", pvropts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
530 #else |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
531 {"pvr", "MPlayer was compiled without V4L2/PVR interface support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
532 #endif /* CONFIG_PVR */ |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
533 {"vivo", vivoopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
534 #ifdef CONFIG_DVBIN |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
535 {"dvbin", dvbin_opts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
536 #endif |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
537 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
538 // ------------------------- a-v sync options -------------------- |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
539 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
540 // AVI specific: A-V sync mode (bps vs. interleaving) |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
541 {"bps", &pts_from_bps, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
542 {"nobps", &pts_from_bps, CONF_TYPE_FLAG, 0, 1, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
543 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
544 // set A-V sync correction speed (0=disables it): |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
545 {"mc", &default_max_pts_correction, CONF_TYPE_FLOAT, CONF_RANGE, 0, 100, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
546 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
547 // force video/audio rate: |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
548 {"fps", &force_fps, CONF_TYPE_DOUBLE, CONF_MIN, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
549 {"srate", &force_srate, CONF_TYPE_INT, CONF_RANGE, 1000, 8*48000, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
550 {"channels", &audio_output_channels, CONF_TYPE_INT, CONF_RANGE, 1, 8, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
551 {"format", &audio_output_format, CONF_TYPE_AFMT, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
552 {"speed", &playback_speed, CONF_TYPE_FLOAT, CONF_RANGE, 0.01, 100.0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
553 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
554 // set a-v distance |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
555 {"delay", &audio_delay, CONF_TYPE_FLOAT, CONF_RANGE, -100.0, 100.0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
556 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
557 // ignore header-specified delay (dwStart) |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
558 {"ignore-start", &ignore_start, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
559 {"noignore-start", &ignore_start, CONF_TYPE_FLAG, 0, 1, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
560 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
561 {"a52drc", &drc_level, CONF_TYPE_FLOAT, CONF_RANGE, 0, 2, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
562 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
563 // ------------------------- codec/vfilter options -------------------- |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
564 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
565 // MP3-only: select stereo/left/right |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
566 #ifdef CONFIG_FAKE_MONO |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
567 {"stereo", &fakemono, CONF_TYPE_INT, CONF_RANGE, 0, 2, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
568 #endif |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
569 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
570 // disable audio |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
571 {"sound", &audio_id, CONF_TYPE_FLAG, 0, -2, -1, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
572 {"nosound", &audio_id, CONF_TYPE_FLAG, 0, -1, -2, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
573 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
574 {"af*", &af_cfg.list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
575 {"af-adv", audio_filter_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
576 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
577 {"vop", "-vop has been removed, use -vf instead.\n", CONF_TYPE_PRINT, CONF_NOCFG ,0,0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
578 {"vf*", &vf_settings, CONF_TYPE_OBJ_SETTINGS_LIST, 0, 0, 0, &vf_obj_list}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
579 // select audio/video codec (by name) or codec family (by number): |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
580 {"afm", &audio_fm_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
581 {"vfm", &video_fm_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
582 {"ac", &audio_codec_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
583 {"vc", &video_codec_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
584 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
585 // postprocessing: |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
586 #ifdef CONFIG_LIBAVCODEC |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
587 {"pp", &divx_quality, CONF_TYPE_INT, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
588 #endif |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
589 #ifdef CONFIG_LIBPOSTPROC |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
590 {"pphelp", &pp_help, CONF_TYPE_PRINT_INDIRECT, CONF_NOCFG, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
591 #endif |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
592 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
593 // scaling: |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
594 {"sws", &sws_flags, CONF_TYPE_INT, 0, 0, 2, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
595 {"ssf", scaler_filter_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
596 {"zoom", &softzoom, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
597 {"nozoom", &softzoom, CONF_TYPE_FLAG, 0, 1, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
598 {"aspect", &movie_aspect, CONF_TYPE_FLOAT, CONF_RANGE, 0.2, 3.0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
599 {"noaspect", &movie_aspect, CONF_TYPE_FLAG, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
600 {"xy", &screen_size_xy, CONF_TYPE_FLOAT, CONF_RANGE, 0.001, 4096, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
601 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
602 {"flip", &flip, CONF_TYPE_FLAG, 0, -1, 1, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
603 {"noflip", &flip, CONF_TYPE_FLAG, 0, -1, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
604 {"tsfastparse", "-tsfastparse is no longer a valid option.\n", CONF_TYPE_PRINT, CONF_NOCFG ,0,0, NULL |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
605 }, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
606 {"tsprog", &ts_prog, CONF_TYPE_INT, CONF_RANGE, 0, 65534, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
607 {"tsprobe", &ts_probe, CONF_TYPE_POSITION, 0, 0, TS_MAX_PROBE_SIZE, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
608 {"psprobe", &ps_probe, CONF_TYPE_POSITION, 0, 0, TS_MAX_PROBE_SIZE, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
609 {"tskeepbroken", &ts_keep_broken, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
610 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
611 // draw by slices or whole frame (useful with libmpeg2/libavcodec) |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
612 {"slices", &vd_use_slices, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
613 {"noslices", &vd_use_slices, CONF_TYPE_FLAG, 0, 1, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
614 {"field-dominance", &field_dominance, CONF_TYPE_INT, CONF_RANGE, -1, 1, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
615 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
616 #ifdef CONFIG_LIBAVCODEC |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
617 {"lavdopts", lavc_decode_opts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
618 #endif |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
619 #ifdef CONFIG_LIBAVFORMAT |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
620 {"lavfdopts", lavfdopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
621 #endif |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
622 #ifdef CONFIG_XVID4 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
623 {"xvidopts", xvid_dec_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
624 #endif |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
625 {"codecs-file", &codecs_file, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
626 // ------------------------- subtitles options -------------------- |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
627 |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
628 {"sub", &sub_name, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
629 #ifdef CONFIG_FRIBIDI |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
630 {"fribidi-charset", &fribidi_charset, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
631 {"flip-hebrew", &flip_hebrew, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
632 {"noflip-hebrew", &flip_hebrew, CONF_TYPE_FLAG, 0, 1, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
633 {"flip-hebrew-commas", &fribidi_flip_commas, CONF_TYPE_FLAG, 0, 1, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
634 {"noflip-hebrew-commas", &fribidi_flip_commas, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
635 #else |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
636 {"fribidi-charset", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
637 {"flip-hebrew", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
638 {"noflip-hebrew", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
639 {"flip-hebrew-commas", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
640 {"noflip-hebrew-commas", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
641 #endif /* CONFIG_FRIBIDI */ |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
642 #ifdef CONFIG_ICONV |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
643 {"subcp", &sub_cp, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
644 #endif |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
645 {"subdelay", &sub_delay, CONF_TYPE_FLOAT, 0, 0.0, 10.0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
646 {"subfps", &sub_fps, CONF_TYPE_FLOAT, 0, 0.0, 10.0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
647 {"autosub", &sub_auto, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
648 {"noautosub", &sub_auto, CONF_TYPE_FLAG, 0, 1, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
649 {"unicode", &sub_unicode, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
650 {"nounicode", &sub_unicode, CONF_TYPE_FLAG, 0, 1, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
651 {"utf8", &sub_utf8, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
652 {"noutf8", &sub_utf8, CONF_TYPE_FLAG, 0, 1, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
653 {"forcedsubsonly", &forced_subs_only, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
654 // specify IFO file for VOBSUB subtitle |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
655 {"ifo", &spudec_ifo, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
656 // enable Closed Captioning display |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
657 {"subcc", &subcc_enabled, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
658 {"nosubcc", &subcc_enabled, CONF_TYPE_FLAG, 0, 1, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
659 {"overlapsub", &suboverlap_enabled, CONF_TYPE_FLAG, 0, 0, 2, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
660 {"nooverlapsub", &suboverlap_enabled, CONF_TYPE_FLAG, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
661 {"sub-bg-color", &sub_bg_color, CONF_TYPE_INT, CONF_RANGE, 0, 255, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
662 {"sub-bg-alpha", &sub_bg_alpha, CONF_TYPE_INT, CONF_RANGE, 0, 255, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
663 {"sub-no-text-pp", &sub_no_text_pp, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
664 {"sub-fuzziness", &sub_match_fuzziness, CONF_TYPE_INT, CONF_RANGE, 0, 2, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
665 {"font", &font_name, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
666 {"subfont", &sub_font_name, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
667 {"ffactor", &font_factor, CONF_TYPE_FLOAT, CONF_RANGE, 0.0, 10.0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
668 {"subpos", &sub_pos, CONF_TYPE_INT, CONF_RANGE, 0, 100, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
669 {"subalign", &sub_alignment, CONF_TYPE_INT, CONF_RANGE, 0, 2, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
670 {"subwidth", &sub_width_p, CONF_TYPE_INT, CONF_RANGE, 10, 100, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
671 {"spualign", &spu_alignment, CONF_TYPE_INT, CONF_RANGE, -1, 2, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
672 {"spuaa", &spu_aamode, CONF_TYPE_INT, CONF_RANGE, 0, 31, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
673 {"spugauss", &spu_gaussvar, CONF_TYPE_FLOAT, CONF_RANGE, 0.0, 3.0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
674 #ifdef CONFIG_FREETYPE |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
675 {"subfont-encoding", &subtitle_font_encoding, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
676 {"subfont-text-scale", &text_font_scale_factor, CONF_TYPE_FLOAT, CONF_RANGE, 0, 100, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
677 {"subfont-osd-scale", &osd_font_scale_factor, CONF_TYPE_FLOAT, CONF_RANGE, 0, 100, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
678 {"subfont-blur", &subtitle_font_radius, CONF_TYPE_FLOAT, CONF_RANGE, 0, 8, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
679 {"subfont-outline", &subtitle_font_thickness, CONF_TYPE_FLOAT, CONF_RANGE, 0, 8, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
680 {"subfont-autoscale", &subtitle_autoscale, CONF_TYPE_INT, CONF_RANGE, 0, 3, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
681 #endif |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
682 #ifdef CONFIG_ASS |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
683 {"ass", &ass_enabled, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
684 {"noass", &ass_enabled, CONF_TYPE_FLAG, 0, 1, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
685 {"ass-font-scale", &ass_font_scale, CONF_TYPE_FLOAT, CONF_RANGE, 0, 100, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
686 {"ass-line-spacing", &ass_line_spacing, CONF_TYPE_FLOAT, CONF_RANGE, -1000, 1000, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
687 {"ass-top-margin", &ass_top_margin, CONF_TYPE_INT, CONF_RANGE, 0, 2000, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
688 {"ass-bottom-margin", &ass_bottom_margin, CONF_TYPE_INT, CONF_RANGE, 0, 2000, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
689 {"ass-use-margins", &ass_use_margins, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
690 {"noass-use-margins", &ass_use_margins, CONF_TYPE_FLAG, 0, 1, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
691 {"embeddedfonts", &extract_embedded_fonts, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
692 {"noembeddedfonts", &extract_embedded_fonts, CONF_TYPE_FLAG, 0, 1, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
693 {"ass-force-style", &ass_force_style_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
694 {"ass-color", &ass_color, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
695 {"ass-border-color", &ass_border_color, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
696 {"ass-styles", &ass_styles_file, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
697 {"ass-hinting", &ass_hinting, CONF_TYPE_INT, CONF_RANGE, 0, 7, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
698 #endif |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
699 #ifdef CONFIG_FONTCONFIG |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
700 {"fontconfig", &font_fontconfig, CONF_TYPE_FLAG, 0, -1, 1, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
701 {"nofontconfig", &font_fontconfig, CONF_TYPE_FLAG, 0, 1, -1, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
702 #else |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
703 {"fontconfig", "MPlayer was compiled without fontconfig support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
704 {"nofontconfig", "MPlayer was compiled without fontconfig support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
705 #endif /* CONFIG_FONTCONFIG */ |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
706 {NULL, NULL, 0, 0, 0, 0, NULL} |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
707 }; |
f73663d84979
Replace common options template by a common options array.
diego
parents:
31359
diff
changeset
|
708 |
26360
a48df598c055
Split cfg-common.h into two separate header files. It was being included twice
diego
parents:
26130
diff
changeset
|
709 #endif /* MPLAYER_CFG_COMMON_H */ |