History

swscale/swscale_unscaled: Actually use X2->RGBA64 conversions

The conversion functions were added in e7382b4d0101f02e61fdf5ad2c48aca500bb413f, yet they were never really enabled. Found via -ffunction-sections and --gc-sections.

Andreas Rheinhardt committed 1 year ago

Commit 4da84d51 parent 581a6a01 file · +2 −1Browse files

Unified · Split

libswscale/swscale_unscaled.c+2−1
@@ -1901,7 +1901,8 @@ static rgbConvFn findRgbConvFn(SwsInternal *c) · 1900 unmodified lines
19011901 else if (CONV_IS(X2RGB10LE, BGR48BE)
19021902 || CONV_IS(X2BGR10LE, RGB48BE)) conv = HAVE_BIGENDIAN ? x2rgb10tobgr48_nobswap
19031903 : x2rgb10tobgr48_bswap;
1904− else if (CONV_IS(X2RGB10LE, RGBA64LE)
1904+ } else if (isX2RGB(srcFormat) && isRGBA64(dstFormat)) {
1905+ if (CONV_IS(X2RGB10LE, RGBA64LE)
19051906 || CONV_IS(X2BGR10LE, BGRA64LE)) conv = HAVE_BIGENDIAN ? x2rgb10to64_bswap
19061907 : x2rgb10to64_nobswap;
19071908 else if (CONV_IS(X2RGB10LE, RGBA64BE)

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