mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
imgconvert: add self test code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
168a7f06de
commit
be19e7e373
@ -783,6 +783,7 @@ TESTPROGS = cabac \
|
|||||||
fft-fixed \
|
fft-fixed \
|
||||||
golomb \
|
golomb \
|
||||||
iirfilter \
|
iirfilter \
|
||||||
|
imgconvert \
|
||||||
rangecoder \
|
rangecoder \
|
||||||
snowenc \
|
snowenc \
|
||||||
|
|
||||||
|
@ -974,3 +974,18 @@ int avpicture_deinterlace(AVPicture *dst, const AVPicture *src,
|
|||||||
emms_c();
|
emms_c();
|
||||||
return 0;
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user