mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-13 02:20:07 +01:00
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:
@@ -2588,7 +2588,7 @@ void ff_get_unscaled_swscale(SwsInternal *c)
|
|||||||
(isPlanarYUV(srcFormat) && isPlanarYUV(dstFormat) &&
|
(isPlanarYUV(srcFormat) && isPlanarYUV(dstFormat) &&
|
||||||
c->chrDstHSubSample == c->chrSrcHSubSample &&
|
c->chrDstHSubSample == c->chrSrcHSubSample &&
|
||||||
c->chrDstVSubSample == c->chrSrcVSubSample &&
|
c->chrDstVSubSample == c->chrSrcVSubSample &&
|
||||||
!isSemiPlanarYUV(srcFormat) && !isSemiPlanarYUV(dstFormat))))
|
isSemiPlanarYUV(srcFormat) == isSemiPlanarYUV(dstFormat))))
|
||||||
{
|
{
|
||||||
if (isPacked(c->opts.src_format))
|
if (isPacked(c->opts.src_format))
|
||||||
c->convert_unscaled = packedCopyWrapper;
|
c->convert_unscaled = packedCopyWrapper;
|
||||||
|
|||||||
Reference in New Issue
Block a user