From c2d0d7818f1045fbee5f296d614a11d25784215f Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 9 Dec 2015 00:08:00 +0100 Subject: csputils: remove obscure int_bits matrix scaling This has no reason to be there. Put the functionality into another function instead. While we're at it, also adjust for possible accuracy issues with high bit depth YUV (matters for rendering subtitles into screenshots only). --- video/csputils.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'video/csputils.h') diff --git a/video/csputils.h b/video/csputils.h index 0a9b11af9d..bc43a146a8 100644 --- a/video/csputils.h +++ b/video/csputils.h @@ -130,9 +130,6 @@ struct mp_csp_params { // 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 { \ @@ -259,6 +256,7 @@ void mp_get_yuv2rgb_coeffs(struct mp_csp_params *params, struct mp_cmat *yuv2rgb void mp_invert_matrix3x3(float m[3][3]); void mp_invert_yuv2rgb(struct mp_cmat *out, struct mp_cmat *in); -void mp_map_int_color(struct mp_cmat *matrix, int clip_bits, int c[3]); +void mp_map_fixp_color(struct mp_cmat *matrix, int ibits, int in[3], + int obits, int out[3]); #endif /* MPLAYER_CSPUTILS_H */ -- cgit v1.2.3