As fixed in the previous commit, this enables semipacked range and bit depth conversions. Previously these would go through the general purpose path.
Unified · Split
| @@ -2588,7 +2588,7 @@ void ff_get_unscaled_swscale(SwsInternal *c) · 2587 unmodified lines | ||
| 2588 | 2588 | (isPlanarYUV(srcFormat) && isPlanarYUV(dstFormat) && |
| 2589 | 2589 | c->chrDstHSubSample == c->chrSrcHSubSample && |
| 2590 | 2590 | c->chrDstVSubSample == c->chrSrcVSubSample && |
| 2591 | − !isSemiPlanarYUV(srcFormat) && !isSemiPlanarYUV(dstFormat)))) | |
| 2591 | + isSemiPlanarYUV(srcFormat) == isSemiPlanarYUV(dstFormat)))) | |
| 2592 | 2592 | { |
| 2593 | 2593 | if (isPacked(c->opts.src_format)) |
| 2594 | 2594 | c->convert_unscaled = packedCopyWrapper; |