mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
swscale: use isByteRGB() to simplify check for palToRgbWrapper.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
307b650270
commit
b13ba5cb9a
@ -705,13 +705,7 @@ void ff_get_unscaled_swscale(SwsContext *c)
|
|||||||
if (isAnyRGB(srcFormat) && isPlanar(srcFormat) && isByteRGB(dstFormat))
|
if (isAnyRGB(srcFormat) && isPlanar(srcFormat) && isByteRGB(dstFormat))
|
||||||
c->swScale= planarRgbToRgbWrapper;
|
c->swScale= planarRgbToRgbWrapper;
|
||||||
|
|
||||||
if ((usePal(srcFormat) && (
|
if (usePal(srcFormat) && isByteRGB(dstFormat))
|
||||||
dstFormat == PIX_FMT_RGB32 ||
|
|
||||||
dstFormat == PIX_FMT_RGB32_1 ||
|
|
||||||
dstFormat == PIX_FMT_RGB24 ||
|
|
||||||
dstFormat == PIX_FMT_BGR32 ||
|
|
||||||
dstFormat == PIX_FMT_BGR32_1 ||
|
|
||||||
dstFormat == PIX_FMT_BGR24)))
|
|
||||||
c->swScale= palToRgbWrapper;
|
c->swScale= palToRgbWrapper;
|
||||||
|
|
||||||
if (srcFormat == PIX_FMT_YUV422P) {
|
if (srcFormat == PIX_FMT_YUV422P) {
|
||||||
|
Loading…
Reference in New Issue
Block a user