summaryrefslogtreecommitdiffstats
path: root/video/out/vo.h
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2014-02-25 00:04:30 +0100
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2014-03-31 22:07:33 +0200
commitb0ee9334e33a8603dd07f991ee5cd5f2345030ed (patch)
treea3c5e4d92b028be15d084e664343aee81f458bb9 /video/out/vo.h
parent956b01ec4eaecef0d48409e7aa5c1d133132fb82 (diff)
downloadmpv-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/vo.h')
-rw-r--r--video/out/vo.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/vo.h b/video/out/vo.h
index c53e788a69..dd98636189 100644
--- a/video/out/vo.h
+++ b/video/out/vo.h
@@ -32,6 +32,7 @@
#define VO_EVENT_EXPOSE 1
#define VO_EVENT_RESIZE 2
+#define VO_EVENT_ICC_PROFILE_PATH_CHANGED 4
enum mp_voctrl {
/* signal a device reset seek */
@@ -82,6 +83,8 @@ enum mp_voctrl {
VOCTRL_SCREENSHOT, // struct voctrl_screenshot_args*
VOCTRL_SET_COMMAND_LINE, // char**
+
+ VOCTRL_GET_ICC_PROFILE_PATH, // char**
};
// VOCTRL_SET_EQUALIZER