This helps detecting inconsistencies in swscale input/output code and a av_read_image_line()/av_write_image_line() pass.
Unified · Split
| @@ -503,6 +503,27 @@ pixfmt_conversion(){ · 502 unmodified lines | |||
| 503 | $ENC_OPTS -f rawvideo -s 352x288 -pix_fmt yuv444p -color_range mpeg | 503 | $ENC_OPTS -f rawvideo -s 352x288 -pix_fmt yuv444p -color_range mpeg |
| 504 | } | 504 | } |
| 505 | 505 | ||
| 506 | pixdesc(){ | ||
| 507 | pix_fmt=${test#filter-pixdesc-} | ||
| 508 | label=${test#filter-} | ||
| 509 | raw_src="${target_path}/tests/vsynth1/%02d.pgm" | ||
| 510 | |||
| 511 | md5file1="${outdir}/${test}-1.md5" | ||
| 512 | md5file2="${outdir}/${test}-2.md5" | ||
| 513 | cleanfiles="$cleanfiles $md5file1 $md5file2" | ||
| 514 | |||
| 515 | ffmpeg $DEC_OPTS -f image2 -vcodec pgmyuv -i $raw_src \ | ||
| 516 | $FLAGS $ENC_OPTS -vf "scale,format=$pix_fmt" -vcodec rawvideo -frames:v 5 \ | ||
| 517 | "-pix_fmt $pix_fmt" -f nut md5:$md5file1 | ||
| 518 | ffmpeg $DEC_OPTS -f image2 -vcodec pgmyuv -i $raw_src \ | ||
| 519 | $FLAGS $ENC_OPTS -vf "scale,format=$pix_fmt,pixdesctest" -vcodec rawvideo -frames:v 5 \ | ||
| 520 | "-pix_fmt $pix_fmt" -f nut md5:$md5file2 | ||
| 521 | |||
| 522 | diff -u -q $md5file1 $md5file2 || return | ||
| 523 | printf '%-20s' $label | ||
| 524 | cat $md5file1 | ||
| 525 | } | ||
| 526 | |||
| 506 | video_filter(){ | 527 | video_filter(){ |
| 507 | filters=$1 | 528 | filters=$1 |
| 508 | shift | 529 | shift |
| @@ -591,7 +591,7 @@ ifneq (,$(RUNNING_PIXFMTS_TESTS)) · 590 unmodified lines | |||
| 591 | endif | 591 | endif |
| 592 | 592 | ||
| 593 | FATE_FILTER_PIXDESC-$(call VIDEO_FILTER, SCALE FORMAT PIXDESCTEST) += $(addprefix fate-filter-pixdesc-, $(PIXFMTS)) | 593 | FATE_FILTER_PIXDESC-$(call VIDEO_FILTER, SCALE FORMAT PIXDESCTEST) += $(addprefix fate-filter-pixdesc-, $(PIXFMTS)) |
| 594 | fate-filter-pixdesc-%: CMD = video_filter "scale,format=$(@:fate-filter-pixdesc-%=%),pixdesctest" -pix_fmt $(@:fate-filter-pixdesc-%=%) | 594 | fate-filter-pixdesc-%: CMD = pixdesc |
| 595 | 595 | ||
| 596 | fate-filter-pixdesc: $(FATE_FILTER_PIXDESC-yes) | 596 | fate-filter-pixdesc: $(FATE_FILTER_PIXDESC-yes) |
| 597 | FATE_FILTER_VSYNTH-yes += $(FATE_FILTER_PIXDESC-yes) | 597 | FATE_FILTER_VSYNTH-yes += $(FATE_FILTER_PIXDESC-yes) |