mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lsws: remove optimization debug logs in sws_init_context()
The logged information is possibly false, and it tends to be outdated after each change since the logging code needs to be manually updated. Simplify and prevent confusing wrong debug messages. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
parent
347167ecf5
commit
6a92551234
@ -1062,72 +1062,6 @@ int sws_init_context(SwsContext *c, SwsFilter *srcFilter, SwsFilter *dstFilter)
|
||||
else if (HAVE_ALTIVEC && cpu_flags & AV_CPU_FLAG_ALTIVEC) av_log(c, AV_LOG_INFO, "using AltiVec\n");
|
||||
else av_log(c, AV_LOG_INFO, "using C\n");
|
||||
|
||||
if (HAVE_MMX && cpu_flags & AV_CPU_FLAG_MMX) {
|
||||
if (c->canMMX2BeUsed && (flags&SWS_FAST_BILINEAR))
|
||||
av_log(c, AV_LOG_VERBOSE, "using FAST_BILINEAR MMX2 scaler for horizontal scaling\n");
|
||||
else {
|
||||
if (c->hLumFilterSize==4)
|
||||
av_log(c, AV_LOG_VERBOSE, "using 4-tap MMX scaler for horizontal luminance scaling\n");
|
||||
else if (c->hLumFilterSize==8)
|
||||
av_log(c, AV_LOG_VERBOSE, "using 8-tap MMX scaler for horizontal luminance scaling\n");
|
||||
else
|
||||
av_log(c, AV_LOG_VERBOSE, "using n-tap MMX scaler for horizontal luminance scaling\n");
|
||||
|
||||
if (c->hChrFilterSize==4)
|
||||
av_log(c, AV_LOG_VERBOSE, "using 4-tap MMX scaler for horizontal chrominance scaling\n");
|
||||
else if (c->hChrFilterSize==8)
|
||||
av_log(c, AV_LOG_VERBOSE, "using 8-tap MMX scaler for horizontal chrominance scaling\n");
|
||||
else
|
||||
av_log(c, AV_LOG_VERBOSE, "using n-tap MMX scaler for horizontal chrominance scaling\n");
|
||||
}
|
||||
} else {
|
||||
#if HAVE_MMX
|
||||
av_log(c, AV_LOG_VERBOSE, "using x86 asm scaler for horizontal scaling\n");
|
||||
#else
|
||||
if (flags & SWS_FAST_BILINEAR)
|
||||
av_log(c, AV_LOG_VERBOSE, "using FAST_BILINEAR C scaler for horizontal scaling\n");
|
||||
else
|
||||
av_log(c, AV_LOG_VERBOSE, "using C scaler for horizontal scaling\n");
|
||||
#endif
|
||||
}
|
||||
if (isPlanarYUV(dstFormat)) {
|
||||
if (c->vLumFilterSize==1)
|
||||
av_log(c, AV_LOG_VERBOSE, "using 1-tap %s \"scaler\" for vertical scaling (YV12 like)\n",
|
||||
(HAVE_MMX && cpu_flags & AV_CPU_FLAG_MMX) ? "MMX" : "C");
|
||||
else
|
||||
av_log(c, AV_LOG_VERBOSE, "using n-tap %s scaler for vertical scaling (YV12 like)\n",
|
||||
(HAVE_MMX && cpu_flags & AV_CPU_FLAG_MMX) ? "MMX" : "C");
|
||||
} else {
|
||||
if (c->vLumFilterSize==1 && c->vChrFilterSize==2)
|
||||
av_log(c, AV_LOG_VERBOSE, "using 1-tap %s \"scaler\" for vertical luminance scaling (BGR)\n"
|
||||
" 2-tap scaler for vertical chrominance scaling (BGR)\n",
|
||||
(HAVE_MMX && cpu_flags & AV_CPU_FLAG_MMX) ? "MMX" : "C");
|
||||
else if (c->vLumFilterSize==2 && c->vChrFilterSize==2)
|
||||
av_log(c, AV_LOG_VERBOSE, "using 2-tap linear %s scaler for vertical scaling (BGR)\n",
|
||||
(HAVE_MMX && cpu_flags & AV_CPU_FLAG_MMX) ? "MMX" : "C");
|
||||
else
|
||||
av_log(c, AV_LOG_VERBOSE, "using n-tap %s scaler for vertical scaling (BGR)\n",
|
||||
(HAVE_MMX && cpu_flags & AV_CPU_FLAG_MMX) ? "MMX" : "C");
|
||||
}
|
||||
|
||||
if (dstFormat==PIX_FMT_BGR24)
|
||||
av_log(c, AV_LOG_VERBOSE, "using %s YV12->BGR24 converter\n",
|
||||
(HAVE_MMX2 && cpu_flags & AV_CPU_FLAG_MMX2) ? "MMX2" :
|
||||
((HAVE_MMX && cpu_flags & AV_CPU_FLAG_MMX) ? "MMX" : "C"));
|
||||
else if (dstFormat==PIX_FMT_RGB32)
|
||||
av_log(c, AV_LOG_VERBOSE, "using %s YV12->BGR32 converter\n",
|
||||
(HAVE_MMX && cpu_flags & AV_CPU_FLAG_MMX) ? "MMX" : "C");
|
||||
else if (dstFormat==PIX_FMT_BGR565)
|
||||
av_log(c, AV_LOG_VERBOSE, "using %s YV12->BGR16 converter\n",
|
||||
(HAVE_MMX && cpu_flags & AV_CPU_FLAG_MMX) ? "MMX" : "C");
|
||||
else if (dstFormat==PIX_FMT_BGR555)
|
||||
av_log(c, AV_LOG_VERBOSE, "using %s YV12->BGR15 converter\n",
|
||||
(HAVE_MMX && cpu_flags & AV_CPU_FLAG_MMX) ? "MMX" : "C");
|
||||
else if (dstFormat == PIX_FMT_RGB444BE || dstFormat == PIX_FMT_RGB444LE ||
|
||||
dstFormat == PIX_FMT_BGR444BE || dstFormat == PIX_FMT_BGR444LE)
|
||||
av_log(c, AV_LOG_VERBOSE, "using %s YV12->BGR12 converter\n",
|
||||
(HAVE_MMX && cpu_flags & AV_CPU_FLAG_MMX) ? "MMX" : "C");
|
||||
|
||||
av_log(c, AV_LOG_VERBOSE, "%dx%d -> %dx%d\n", srcW, srcH, dstW, dstH);
|
||||
av_log(c, AV_LOG_DEBUG, "lum srcW=%d srcH=%d dstW=%d dstH=%d xInc=%d yInc=%d\n",
|
||||
c->srcW, c->srcH, c->dstW, c->dstH, c->lumXInc, c->lumYInc);
|
||||
|
Loading…
Reference in New Issue
Block a user