From 45ae0716be3319bac4585b8fedac529a0809a44c Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 9 Dec 2015 00:22:12 +0100 Subject: csputils: rename "yuv2rgb" functions They're not necessarily restricted to YUV aka YCbCr. vo_direct3d.c and demux_disc.c (DVD specific code) changes untested. --- sub/draw_bmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sub/draw_bmp.c') diff --git a/sub/draw_bmp.c b/sub/draw_bmp.c index 0c12c7078a..da4760e105 100644 --- a/sub/draw_bmp.c +++ b/sub/draw_bmp.c @@ -296,8 +296,8 @@ static void draw_ass(struct mp_draw_sub_cache *cache, struct mp_rect bb, struct mp_cmat yuv2rgb, rgb2yuv; bool need_conv = temp->fmt.flags & MP_IMGFLAG_YUV; if (need_conv) { - mp_get_yuv2rgb_coeffs(&cspar, &yuv2rgb); - mp_invert_yuv2rgb(&rgb2yuv, &yuv2rgb); + mp_get_csp_matrix(&cspar, &yuv2rgb); + mp_invert_cmat(&rgb2yuv, &yuv2rgb); } for (int i = 0; i < sbs->num_parts; ++i) { -- cgit v1.2.3