History

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.

Niklas Haas committed 1 year ago

Commit 6c9218d1 parent 77db7f91 file · +1 −1Browse files

Unified · Split

libswscale/swscale_unscaled.c+1−1
@@ -2588,7 +2588,7 @@ void ff_get_unscaled_swscale(SwsInternal *c) · 2587 unmodified lines
25882588 (isPlanarYUV(srcFormat) && isPlanarYUV(dstFormat) &&
25892589 c->chrDstHSubSample == c->chrSrcHSubSample &&
25902590 c->chrDstVSubSample == c->chrSrcVSubSample &&
2591− !isSemiPlanarYUV(srcFormat) && !isSemiPlanarYUV(dstFormat))))
2591+ isSemiPlanarYUV(srcFormat) == isSemiPlanarYUV(dstFormat))))
25922592 {
25932593 if (isPacked(c->opts.src_format))
25942594 c->convert_unscaled = packedCopyWrapper;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t