forked from FFmpeg/FFmpeg
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
This commit is contained in:
parent
77db7f9b87
commit
6c9218d748
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue