summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-01-03 00:00:06 +0000
committerCarl Hetherington <cth@carlh.net>2018-01-03 00:00:06 +0000
commit9f01401d91a13f2849cc2d7dbd6768cd32bc3fd6 (patch)
tree739629e3cfc4500debb61e62ad421822fb75dfb9 /src
parentd80e5a10e99b81bb4c19a8c776769b99fa927b4e (diff)
Use convert_pixel_format a little.
Diffstat (limited to 'src')
-rw-r--r--src/lib/image.cc4
1 files changed, 2 insertions, 2 deletions
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<const Image> other, Position<int> position)
}
case AV_PIX_FMT_YUV420P:
{
- shared_ptr<Image> yuv = other->scale (other->size(), dcp::YUV_TO_RGB_REC709, _pixel_format, false, false);
+ shared_ptr<Image> yuv = other->convert_pixel_format (dcp::YUV_TO_RGB_REC709, _pixel_format, false, false);
component<uint8_t> (0, this, yuv, other, start_tx, start_ty, start_ox, start_oy);
component<uint8_t> (1, this, yuv, other, start_tx, start_ty, start_ox, start_oy);
component<uint8_t> (2, this, yuv, other, start_tx, start_ty, start_ox, start_oy);
@@ -594,7 +594,7 @@ Image::alpha_blend (shared_ptr<const Image> other, Position<int> position)
case AV_PIX_FMT_YUV420P10:
case AV_PIX_FMT_YUV422P10LE:
{
- shared_ptr<Image> yuv = other->scale (other->size(), dcp::YUV_TO_RGB_REC709, _pixel_format, false, false);
+ shared_ptr<Image> yuv = other->convert_pixel_format (dcp::YUV_TO_RGB_REC709, _pixel_format, false, false);
component<uint16_t> (0, this, yuv, other, start_tx, start_ty, start_ox, start_oy);
component<uint8_t> (1, this, yuv, other, start_tx, start_ty, start_ox, start_oy);
component<uint8_t> (2, this, yuv, other, start_tx, start_ty, start_ox, start_oy);