summaryrefslogtreecommitdiffstats
path: root/video/csputils.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-12-09 00:08:00 +0100
committerwm4 <wm4@nowhere>2015-12-09 00:08:00 +0100
commitc2d0d7818f1045fbee5f296d614a11d25784215f (patch)
tree68e94cac3a422d1d20ea0c464f22ea965c9166c0 /video/csputils.h
parent0d7d935e8863ae759f284739769f250b1302a9ec (diff)
downloadmpv-c2d0d7818f1045fbee5f296d614a11d25784215f.tar.bz2
mpv-c2d0d7818f1045fbee5f296d614a11d25784215f.tar.xz
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).
Diffstat (limited to 'video/csputils.h')
-rw-r--r--video/csputils.h6
1 files changed, 2 insertions, 4 deletions
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 */