diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-11-21 16:10:42 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-11-21 17:03:31 +0100 |
commit | be19e7e3739689f72756da3dd5a68479ebecdcc8 (patch) | |
tree | c8395a046aa78415b1d9e3db874d72b59b2d6867 /libavcodec | |
parent | 168a7f06dea711071bb14b8b6bdd8a1f49e049c6 (diff) | |
download | ffmpeg-be19e7e3739689f72756da3dd5a68479ebecdcc8.tar.gz |
imgconvert: add self test code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/Makefile | 1 | ||||
-rw-r--r-- | libavcodec/imgconvert.c | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/libavcodec/Makefile b/libavcodec/Makefile index e937c4b9fa..0c94af76c3 100644 --- a/libavcodec/Makefile +++ b/libavcodec/Makefile @@ -783,6 +783,7 @@ TESTPROGS = cabac \ fft-fixed \ golomb \ iirfilter \ + imgconvert \ rangecoder \ snowenc \ diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c index 2ba4a6ae09..c45203e832 100644 --- a/libavcodec/imgconvert.c +++ b/libavcodec/imgconvert.c @@ -974,3 +974,18 @@ int avpicture_deinterlace(AVPicture *dst, const AVPicture *src, emms_c(); return 0; } + +#ifdef TEST + +int main(void){ + int i; + for (i=0; i<AV_PIX_FMT_NB*2; i++) { + AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(i); + if(!desc) + continue; + av_log(0, AV_LOG_INFO, "pix fmt %s %d\n", desc->name, is_yuv_planar(i)); + } + return 0; +} + +#endif |