swscale/unscaled: allow semiplanar copies

As fixed in the previous commit, this enables semipacked range and
bit depth conversions. Previously these would go through the general
purpose path.

Signed-off-by: Niklas Haas <git@haasn.dev>
Sponsored-by: Sovereign Tech Fund
pull/391/head
Niklas Haas 1 month ago
parent 77db7f9b87
commit 6c9218d748
  1. 2
      libswscale/swscale_unscaled.c

@ -2588,7 +2588,7 @@ void ff_get_unscaled_swscale(SwsInternal *c)
(isPlanarYUV(srcFormat) && isPlanarYUV(dstFormat) &&
c->chrDstHSubSample == c->chrSrcHSubSample &&
c->chrDstVSubSample == c->chrSrcVSubSample &&
!isSemiPlanarYUV(srcFormat) && !isSemiPlanarYUV(dstFormat))))
isSemiPlanarYUV(srcFormat) == isSemiPlanarYUV(dstFormat))))
{
if (isPacked(c->opts.src_format))
c->convert_unscaled = packedCopyWrapper;

Loading…
Cancel
Save