diff options
author | wm4 <wm4@nowhere> | 2012-10-25 21:23:18 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-10-28 15:31:32 +0100 |
commit | d072e857d71150508f308168953753b6c7441009 (patch) | |
tree | e0c2263b183cedce7a7e2532122c4025f012963c /libvo/csputils.h | |
parent | 65b313a8b0b1a97f7d51f1fec4517adaa9334aa3 (diff) | |
download | mpv-d072e857d71150508f308168953753b6c7441009.tar.bz2 mpv-d072e857d71150508f308168953753b6c7441009.tar.xz |
csputils: better support for integer color values
Diffstat (limited to 'libvo/csputils.h')
-rw-r--r-- | libvo/csputils.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libvo/csputils.h b/libvo/csputils.h index 1d9ebdc62e..fc6b492441 100644 --- a/libvo/csputils.h +++ b/libvo/csputils.h @@ -69,8 +69,12 @@ struct mp_csp_params { float rgamma; float ggamma; float bgamma; + // texture_bits/input_bits is for rescaling fixed point input to range [0,1] int texture_bits; int input_bits; + // for scaling integer input and output (if 0, assume range [0,1]) + int int_bits_in; + int int_bits_out; }; #define MP_CSP_PARAMS_DEFAULTS { \ @@ -140,6 +144,6 @@ 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); void mp_invert_yuv2rgb(float out[3][4], float in[3][4]); -void mp_map_color(float matrix[3][4], int bits, int c[3]); +void mp_map_int_color(float matrix[3][4], int clip_bits, int c[3]); #endif /* MPLAYER_CSPUTILS_H */ |