diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-09-17 21:31:58 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-09-17 21:31:58 +0200 |
commit | a446657d8cc2528e8e366236f2ba9b08069ce17a (patch) | |
tree | c30ccd9daf4ed2248104c2c2890e801145bfc9c6 /libswscale/utils.c | |
parent | 9d052adbebf0c85e32e3e011fd33ac633635b234 (diff) | |
download | ffmpeg-a446657d8cc2528e8e366236f2ba9b08069ce17a.tar.gz |
swscale/utils: simplify cpu caps printing code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale/utils.c')
-rw-r--r-- | libswscale/utils.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c index b53724c665..68c580735e 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -1546,7 +1546,7 @@ av_cold int sws_init_context(SwsContext *c, SwsFilter *srcFilter, av_assert0(c->chrDstH <= dstH); if (flags & SWS_PRINT_INFO) { - const char *scaler; + const char *scaler, *cpucaps; if (flags & SWS_FAST_BILINEAR) scaler = "FAST_BILINEAR scaler"; else if (flags & SWS_BILINEAR) @@ -1586,15 +1586,17 @@ av_cold int sws_init_context(SwsContext *c, SwsFilter *srcFilter, av_get_pix_fmt_name(dstFormat)); if (INLINE_MMXEXT(cpu_flags)) - av_log(c, AV_LOG_INFO, "using MMXEXT\n"); + cpucaps = "MMXEXT"; else if (INLINE_AMD3DNOW(cpu_flags)) - av_log(c, AV_LOG_INFO, "using 3DNOW\n"); + cpucaps = "3DNOW"; else if (INLINE_MMX(cpu_flags)) - av_log(c, AV_LOG_INFO, "using MMX\n"); + cpucaps = "MMX"; else if (PPC_ALTIVEC(cpu_flags)) - av_log(c, AV_LOG_INFO, "using AltiVec\n"); + cpucaps = "AltiVec"; else - av_log(c, AV_LOG_INFO, "using C\n"); + cpucaps = "C"; + + av_log(c, AV_LOG_INFO, "using %s\n", cpucaps); av_log(c, AV_LOG_VERBOSE, "%dx%d -> %dx%d\n", srcW, srcH, dstW, dstH); av_log(c, AV_LOG_DEBUG, |