options: move various mplayer.c options to option struct
[mplayer.git] / defaultopts.c
blob5b4e8f762fcf7197ba9f0618834977d81fe0d297
1 #include <stddef.h>
3 #include "config.h"
4 #include "defaultopts.h"
5 #include "options.h"
7 void set_default_mplayer_options(struct MPOpts *opts)
9 *opts = (const struct MPOpts){
10 .audio_driver_list = NULL,
11 .video_driver_list = NULL,
12 .fixed_vo = 1,
13 .ao_buffersize = -1,
14 .monitor_pixel_aspect = 1.0,
15 .vo_panscanrange = 1.0,
16 .vo_gamma_gamma = 1000,
17 .vo_gamma_brightness = 1000,
18 .vo_gamma_contrast = 1000,
19 .vo_gamma_saturation = 1000,
20 .vo_gamma_hue = 1000,
21 .osd_level = 1,
22 .osd_duration = 1000,
23 .stream_dump_name = "stream.dump",
24 .loop_times = -1,
25 .ordered_chapters = 1,
26 .stream_cache_min_percent = 20.0,
27 .stream_cache_seek_min_percent = 50.0,
28 .chapterrange = {-1, -1},
29 .edition_id = -1,
30 .user_correct_pts = -1,
31 .initial_audio_sync = 1,
32 .key_fifo_size = 7,
33 .doubleclick_time = 300,
34 .audio_id = -1,
35 .video_id = -1,
36 .sub_id = -1,
37 .extension_parsing = 1,
38 .audio_output_channels = 2,
39 .audio_output_format = -1, // AF_FORMAT_UNKNOWN
40 .playback_speed = 1.,
41 .drc_level = 1.,
42 .movie_aspect = -1.,
43 .flip = -1,
44 .vd_use_slices = 1,
45 .lavc_param = {
46 .workaround_bugs = 1, // autodetect
47 .error_resilience = 2,
48 .error_concealment = 3,
49 .threads = 1,
51 .input = {
52 .config_file = "input.conf",
53 .ar_delay = 100,
54 .ar_rate = 8,
55 .use_joystick = 1,
56 .use_lirc = 1,
57 .use_lircc = 1,
58 #ifdef CONFIG_APPLE_REMOTE
59 .use_ar = 1,
60 #else
61 .use_ar = 0,
62 #endif
63 .default_bindings = 1,
68 void set_default_mencoder_options(struct MPOpts *opts)
70 set_default_mplayer_options(opts);
71 opts->user_correct_pts = 0;