diff options
author | stefano <stefano@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-02-14 20:14:28 +0000 |
---|---|---|
committer | stefano <stefano@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-02-14 20:14:28 +0000 |
commit | 0137ac7075e1d1b71b765687095c0e0f92381c40 (patch) | |
tree | b8a6c99cb15af7e97ecd427d0b0d16d0ff7aa3ad /libswscale/swscale.c | |
parent | bf1bcca29986ac4ae63cb023e66770cb392493ec (diff) | |
download | mpv-0137ac7075e1d1b71b765687095c0e0f92381c40.tar.bz2 mpv-0137ac7075e1d1b71b765687095c0e0f92381c40.tar.xz |
Implement sws_printVec2() and deprecate sws_printVec().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28566 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libswscale/swscale.c')
-rw-r--r-- | libswscale/swscale.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c index a38c14d9a8..6a8aa7b0d0 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -3068,7 +3068,7 @@ SwsVector *sws_cloneVec(SwsVector *a){ 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 @@ void sws_printVec(SwsVector *a){ 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); |