diff options
author | Niklas Haas <git@nand.wakku.to> | 2014-03-31 04:51:47 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-06-22 19:02:06 +0200 |
commit | 7f3ea1280228175664241ba5b8edaee48fd33439 (patch) | |
tree | 5871bc9e91fbf9f2ff7a9aae28518d7295d536d5 /video/csputils.h | |
parent | 17762a1919947db0e66e025bd2084de896eaa3fa (diff) | |
download | mpv-7f3ea1280228175664241ba5b8edaee48fd33439.tar.bz2 mpv-7f3ea1280228175664241ba5b8edaee48fd33439.tar.xz |
video: Better support for XYZ input
With this change, XYZ input is directly converted to the output
colorspace wherever possible, and to the colorspace specified by the
tags and/or --primaries option, otherwise.
This commit also restructures some of the CMS code in gl_video.c to
hopefully make it clearer which decision is being done where and why.
Diffstat (limited to 'video/csputils.h')
-rw-r--r-- | video/csputils.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/video/csputils.h b/video/csputils.h index 8a17c23110..f2e96beb3d 100644 --- a/video/csputils.h +++ b/video/csputils.h @@ -127,6 +127,7 @@ enum mp_csp_equalizer_param { | (1 << MP_CSP_EQ_SATURATION) ) #define MP_CSP_EQ_CAPS_GAMMA (1 << MP_CSP_EQ_GAMMA) +#define MP_CSP_EQ_CAPS_BRIGHTNESS (1 << MP_CSP_EQ_BRIGHTNESS) extern const char *const mp_csp_equalizer_names[MP_CSP_EQ_COUNT]; @@ -188,6 +189,8 @@ struct mp_csp_primaries mp_get_csp_primaries(enum mp_csp_prim csp); void mp_get_cms_matrix(struct mp_csp_primaries src, struct mp_csp_primaries dest, float cms_matrix[3][3]); void mp_get_rgb2xyz_matrix(struct mp_csp_primaries space, float m[3][3]); + +void mp_get_xyz2rgb_coeffs(struct mp_csp_params *params, struct mp_csp_primaries prim, float xyz2rgb[3][4]); void mp_get_yuv2rgb_coeffs(struct mp_csp_params *params, float yuv2rgb[3][4]); void mp_gen_yuv2rgb_map(struct mp_csp_params *params, uint8_t *map, int size); |