mirror of
https://github.com/mpv-player/mpv
synced 2024-12-30 02:52:10 +00:00
b0ee9334e3
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
24 lines
480 B
C
24 lines
480 B
C
#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;
|
|
};
|
|
|
|
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);
|
|
|
|
#endif
|