提交 b13ba5cb 编写于 作者: M Michael Niedermayer

swscale: use isByteRGB() to simplify check for palToRgbWrapper.

Signed-off-by: NMichael Niedermayer <michaelni@gmx.at>
上级 307b6502
......@@ -705,13 +705,7 @@ void ff_get_unscaled_swscale(SwsContext *c)
if (isAnyRGB(srcFormat) && isPlanar(srcFormat) && isByteRGB(dstFormat))
c->swScale= planarRgbToRgbWrapper;
if ((usePal(srcFormat) && (
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)))
if (usePal(srcFormat) && isByteRGB(dstFormat))
c->swScale= palToRgbWrapper;
if (srcFormat == PIX_FMT_YUV422P) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册