diff options
author | wm4 <wm4@nowhere> | 2013-10-24 22:20:16 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-10-24 22:50:13 +0200 |
commit | 60aea74f4483661e34b12571add07f8e5e136660 (patch) | |
tree | c1b0c94cbb926785cec0e56d7bd50fa18e9f4457 /video/out/gl_video.c | |
parent | f6bceacaff0d2e1a1265d29372fcf7b34c57446c (diff) | |
download | mpv-60aea74f4483661e34b12571add07f8e5e136660.tar.bz2 mpv-60aea74f4483661e34b12571add07f8e5e136660.tar.xz |
m_config: refactor option defaults handling
Keep track of the default values directly, instead of creating a new
instance of the option struct just to get the defaults.
Also get rid of the special handling of m_obj_desc.init_options.
Instead, handle it purely by the option parser. Originally, I wanted to
handle --vo=opengl-hq and --vo=direct3d_shaders with this (by making
them aliases to the real VOs with a different preset), but since --vo
=opengl-hq=help prints the wrong values (as consequence of the
simplification), I'm not doing that, and instead use something
different.
Diffstat (limited to 'video/out/gl_video.c')
-rw-r--r-- | video/out/gl_video.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/video/out/gl_video.c b/video/out/gl_video.c index 8bab6a5c4c..603f334c9b 100644 --- a/video/out/gl_video.c +++ b/video/out/gl_video.c @@ -275,6 +275,16 @@ static const struct gl_video_opts gl_video_opts_def = { .alpha_mode = 2, }; +const struct gl_video_opts gl_video_opts_hq_def = { + .npot = 1, + .dither_depth = 0, + .dither_size = 6, + .fbo_format = GL_RGB16, + .scale_sep = 1, + .scalers = { "lanczos2", "bilinear" }, + .scaler_params = {NAN, NAN}, + .alpha_mode = 2, +}; static int validate_scaler_opt(const m_option_t *opt, struct bstr name, struct bstr param); |