Mercurial > mplayer.hg
diff libswscale/swscale.c @ 28531:a14b65e14dc9
Implement sws_printVec2() and deprecate sws_printVec().
author | stefano |
---|---|
date | Sat, 14 Feb 2009 20:14:28 +0000 |
parents | 6cdce79a0b9a |
children | e5a0c2f38f96 |
line wrap: on
line diff
--- a/libswscale/swscale.c Sat Feb 14 19:37:13 2009 +0000 +++ b/libswscale/swscale.c Sat Feb 14 20:14:28 2009 +0000 @@ -3068,7 +3068,7 @@ return vec; } -void sws_printVec(SwsVector *a){ +void sws_printVec2(SwsVector *a, AVClass *log_ctx, int log_level){ int i; double max=0; double min=0; @@ -3085,12 +3085,18 @@ for (i=0; i<a->length; i++) { int x= (int)((a->coeff[i]-min)*60.0/range +0.5); - av_log(NULL, AV_LOG_DEBUG, "%1.3f ", a->coeff[i]); - for (;x>0; x--) av_log(NULL, AV_LOG_DEBUG, " "); - av_log(NULL, AV_LOG_DEBUG, "|\n"); + av_log(log_ctx, log_level, "%1.3f ", a->coeff[i]); + for (;x>0; x--) av_log(log_ctx, log_level, " "); + av_log(log_ctx, log_level, "|\n"); } } +#if LIBSWSCALE_VERSION_MAJOR < 1 +void sws_printVec(SwsVector *a){ + sws_printVec2(a, NULL, AV_LOG_DEBUG); +} +#endif + void sws_freeVec(SwsVector *a){ if (!a) return; av_freep(&a->coeff);