mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Factorize code which logs the source and destination formats in
sws_getContext(). Originally committed as revision 30326 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
This commit is contained in:
parent
15ccfff12c
commit
d95c863850
@ -2839,12 +2839,10 @@ SwsContext *sws_getContext(int srcW, int srcH, enum PixelFormat srcFormat, int d
|
||||
else
|
||||
av_log(c, AV_LOG_INFO, "ehh flags invalid?! ");
|
||||
|
||||
if (dstFormat==PIX_FMT_BGR555 || dstFormat==PIX_FMT_BGR565)
|
||||
av_log(c, AV_LOG_INFO, "from %s to%s %s ",
|
||||
sws_format_name(srcFormat), dither, sws_format_name(dstFormat));
|
||||
else
|
||||
av_log(c, AV_LOG_INFO, "from %s to %s ",
|
||||
sws_format_name(srcFormat), sws_format_name(dstFormat));
|
||||
av_log(c, AV_LOG_INFO, "from %s to%s %s ",
|
||||
sws_format_name(srcFormat),
|
||||
dstFormat == PIX_FMT_BGR555 || dstFormat == PIX_FMT_BGR565 ? dither : "",
|
||||
sws_format_name(dstFormat));
|
||||
|
||||
if (flags & SWS_CPU_CAPS_MMX2)
|
||||
av_log(c, AV_LOG_INFO, "using MMX2\n");
|
||||
|
Loading…
Reference in New Issue
Block a user