2013-03-01 20:19:20 +00:00
|
|
|
#ifndef MP_GL_LCMS_H
|
|
|
|
#define MP_GL_LCMS_H
|
|
|
|
|
2015-01-07 17:47:27 +00:00
|
|
|
#include <stddef.h>
|
2014-02-24 23:04:30 +00:00
|
|
|
#include <stdbool.h>
|
2015-01-07 17:47:27 +00:00
|
|
|
#include "misc/bstr.h"
|
2014-02-24 23:04:30 +00:00
|
|
|
|
2013-03-01 20:19:20 +00:00
|
|
|
extern const struct m_sub_options mp_icc_conf;
|
|
|
|
|
|
|
|
struct mp_icc_opts {
|
|
|
|
char *profile;
|
2014-02-24 23:04:30 +00:00
|
|
|
int profile_auto;
|
2015-04-29 16:09:22 +00:00
|
|
|
char *cache_dir;
|
2013-03-01 20:19:20 +00:00
|
|
|
char *size_str;
|
|
|
|
int intent;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct lut3d;
|
2013-09-11 23:28:14 +00:00
|
|
|
struct mp_log;
|
2013-12-21 16:51:20 +00:00
|
|
|
struct mpv_global;
|
2015-01-07 17:47:27 +00:00
|
|
|
struct gl_lcms;
|
|
|
|
|
|
|
|
struct gl_lcms *gl_lcms_init(void *talloc_ctx, struct mp_log *log,
|
|
|
|
struct mpv_global *global);
|
|
|
|
void gl_lcms_set_options(struct gl_lcms *p, struct mp_icc_opts *opts);
|
|
|
|
void gl_lcms_set_memory_profile(struct gl_lcms *p, bstr *profile);
|
|
|
|
bool gl_lcms_get_lut3d(struct gl_lcms *p, struct lut3d **);
|
2015-01-08 00:00:42 +00:00
|
|
|
bool gl_lcms_has_changed(struct gl_lcms *p);
|
2013-03-01 20:19:20 +00:00
|
|
|
|
|
|
|
#endif
|