diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2014-02-25 00:04:30 +0100 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2014-03-31 22:07:33 +0200 |
commit | b0ee9334e33a8603dd07f991ee5cd5f2345030ed (patch) | |
tree | a3c5e4d92b028be15d084e664343aee81f458bb9 /video/out/gl_lcms.h | |
parent | 956b01ec4eaecef0d48409e7aa5c1d133132fb82 (diff) | |
download | mpv-b0ee9334e33a8603dd07f991ee5cd5f2345030ed.tar.bz2 mpv-b0ee9334e33a8603dd07f991ee5cd5f2345030ed.tar.xz |
vo_opengl, cocoa: allow to autoselect a color profile
This commit adds support for automatic selection of color profiles based on
the display where mpv is initialized, and automatically changes the color
profile when display is changed or the profile itself is changed from
System Preferences.
@UliZappe was responsible with the testing and implementation of a lot of this
commit, including the original implementation of `cocoa_get_icc_profile_path`
(See #594).
Fixes #594
Diffstat (limited to 'video/out/gl_lcms.h')
-rw-r--r-- | video/out/gl_lcms.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/gl_lcms.h b/video/out/gl_lcms.h index a579b78f43..f1ab069574 100644 --- a/video/out/gl_lcms.h +++ b/video/out/gl_lcms.h @@ -1,10 +1,13 @@ #ifndef MP_GL_LCMS_H #define MP_GL_LCMS_H +#include <stdbool.h> + extern const struct m_sub_options mp_icc_conf; struct mp_icc_opts { char *profile; + int profile_auto; char *cache; char *size_str; int intent; @@ -13,6 +16,7 @@ struct mp_icc_opts { struct lut3d; struct mp_log; struct mpv_global; +bool mp_icc_set_profile(struct mp_icc_opts *opts, char *profile); struct lut3d *mp_load_icc(struct mp_icc_opts *opts, struct mp_log *log, struct mpv_global *global); |