From 9f01401d91a13f2849cc2d7dbd6768cd32bc3fd6 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 3 Jan 2018 00:00:06 +0000 Subject: Use convert_pixel_format a little. --- src/lib/image.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib') diff --git a/src/lib/image.cc b/src/lib/image.cc index 4371c5997..989187c12 100644 --- a/src/lib/image.cc +++ b/src/lib/image.cc @@ -585,7 +585,7 @@ Image::alpha_blend (shared_ptr other, Position position) } case AV_PIX_FMT_YUV420P: { - shared_ptr yuv = other->scale (other->size(), dcp::YUV_TO_RGB_REC709, _pixel_format, false, false); + shared_ptr yuv = other->convert_pixel_format (dcp::YUV_TO_RGB_REC709, _pixel_format, false, false); component (0, this, yuv, other, start_tx, start_ty, start_ox, start_oy); component (1, this, yuv, other, start_tx, start_ty, start_ox, start_oy); component (2, this, yuv, other, start_tx, start_ty, start_ox, start_oy); @@ -594,7 +594,7 @@ Image::alpha_blend (shared_ptr other, Position position) case AV_PIX_FMT_YUV420P10: case AV_PIX_FMT_YUV422P10LE: { - shared_ptr yuv = other->scale (other->size(), dcp::YUV_TO_RGB_REC709, _pixel_format, false, false); + shared_ptr yuv = other->convert_pixel_format (dcp::YUV_TO_RGB_REC709, _pixel_format, false, false); component (0, this, yuv, other, start_tx, start_ty, start_ox, start_oy); component (1, this, yuv, other, start_tx, start_ty, start_ox, start_oy); component (2, this, yuv, other, start_tx, start_ty, start_ox, start_oy); -- cgit v1.2.3