diff options
author | wm4 <wm4@nowhere> | 2016-09-02 14:50:03 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-09-02 14:50:03 +0200 |
commit | b2657814c9f7e38bf576d068619822823dbec8e1 (patch) | |
tree | 62a5a2744f68582fffd77a0d3e82847e49d3d4ac /video/out/opengl/video.h | |
parent | 4fa6bcbb902d500ca0a1b9d2feeab5a4e5a98345 (diff) | |
download | mpv-b2657814c9f7e38bf576d068619822823dbec8e1.tar.bz2 mpv-b2657814c9f7e38bf576d068619822823dbec8e1.tar.xz |
vo_opengl: minor renderer option access refactor
Reduce accesses to the renderer opts in vo_opengl.c, and instead add
accessors for them to video.c.
I suppose gamma and maybe icc-auto could be moved to vo_opengl.c
options. Also, the output colorspace could probably be adjusted to what
is really used, not just the options (although it's possible that this
commit changes this, due to video.c mutating its own copy of the options
according to actual renderer capapbilities).
But don't deal with this now.
Diffstat (limited to 'video/out/opengl/video.h')
-rw-r--r-- | video/out/opengl/video.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/opengl/video.h b/video/out/opengl/video.h index 29300c3312..b21112ac9f 100644 --- a/video/out/opengl/video.h +++ b/video/out/opengl/video.h @@ -167,6 +167,8 @@ float gl_video_scale_ambient_lux(float lmin, float lmax, void gl_video_set_ambient_lux(struct gl_video *p, int lux); void gl_video_set_icc_profile(struct gl_video *p, bstr icc_data); bool gl_video_icc_auto_enabled(struct gl_video *p); +bool gl_video_gamma_auto_enabled(struct gl_video *p); +struct mp_colorspace gl_video_get_output_colorspace(struct gl_video *p); void gl_video_set_gl_state(struct gl_video *p); void gl_video_unset_gl_state(struct gl_video *p); |