On Thu, Aug 04, 2011 at 04:00:11PM +0200, Stefano Sabatini wrote:
> ---
>  libswscale/utils.c |   30 +++++++++---------------------
>  1 files changed, 9 insertions(+), 21 deletions(-)
> 
> diff --git a/libswscale/utils.c b/libswscale/utils.c
> index 5d478b7..f5ef1c6 100644
> --- a/libswscale/utils.c
> +++ b/libswscale/utils.c
> @@ -1066,29 +1066,17 @@ int sws_init_context(SwsContext *c, SwsFilter 
> *srcFilter, SwsFilter *dstFilter)
>              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");
> +                av_log(c, AV_LOG_VERBOSE, "using %s-tap MMX scaler for 
> horizontal luminance scaling\n",
> +                       c->hLumFilterSize == 4 ? "4" :
> +                       c->hLumFilterSize == 8 ? "8" : "n");
> +                av_log(c, AV_LOG_VERBOSE, "using %s-tap MMX scaler for 
> horizontal chrominance scaling\n",
> +                       c->hChrFilterSize == 4 ? "4" :
> +                       c->hChrFilterSize == 8 ? "8" : "n");

That's silly, just print the number of taps and be done with it.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to