From d80e5a10e99b81bb4c19a8c776769b99fa927b4e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 2 Jan 2018 23:35:43 +0000 Subject: Add convert_pixel_format convenience function. --- src/lib/image.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/lib/image.cc') diff --git a/src/lib/image.cc b/src/lib/image.cc index a6354f2d1..4371c5997 100644 --- a/src/lib/image.cc +++ b/src/lib/image.cc @@ -220,6 +220,12 @@ Image::crop_scale_window ( return out; } +shared_ptr +Image::convert_pixel_format (dcp::YUVToRGB yuv_to_rgb, AVPixelFormat out_format, bool out_aligned, bool fast) const +{ + return scale(size(), yuv_to_rgb, out_format, out_aligned, fast); +} + /** @param out_size Size to scale to. * @param yuv_to_rgb YUVToRGB transform transform to use, if required. * @param out_format Output pixel format. -- cgit v1.2.3