| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 # | 2 # |
| 3 # automatic regression test for libavfilter | 3 # automatic regression test for libavfilter |
| 4 # | 4 # |
| 5 # | 5 # |
| 6 #set -x | 6 #set -x |
| 7 | 7 |
| 8 set -e | 8 set -e |
| 9 | 9 |
| 10 . $(dirname $0)/regression-funcs.sh | 10 . $(dirname $0)/regression-funcs.sh |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 do_video_encoding $output "" \ | 52 do_video_encoding $output "" \ |
| 53 "-vf slicify=random,format=$pix_fmt,$filter=$filter_args -vcodec raw
video -pix_fmt $pix_fmt" | 53 "-vf slicify=random,format=$pix_fmt,$filter=$filter_args -vcodec raw
video -pix_fmt $pix_fmt" |
| 54 rm ${outfile}${output} | 54 rm ${outfile}${output} |
| 55 done | 55 done |
| 56 | 56 |
| 57 rm $exclude_fmts $out_fmts | 57 rm $exclude_fmts $out_fmts |
| 58 } | 58 } |
| 59 | 59 |
| 60 # all these filters have exactly one input and exactly one output | 60 # all these filters have exactly one input and exactly one output |
| 61 do_lavfi_pixfmts "crop" "100:100:100:100" | 61 do_lavfi_pixfmts "crop" "100:100:100:100" |
| 62 do_lavfi_pixfmts "hflip" "" |
| 62 do_lavfi_pixfmts "null" "" | 63 do_lavfi_pixfmts "null" "" |
| 63 do_lavfi_pixfmts "pad" "500:400:20:20" | 64 do_lavfi_pixfmts "pad" "500:400:20:20" |
| 64 do_lavfi_pixfmts "scale" "200:100" | 65 do_lavfi_pixfmts "scale" "200:100" |
| 65 do_lavfi_pixfmts "vflip" "" | 66 do_lavfi_pixfmts "vflip" "" |
| 66 | 67 |
| 67 if [ -n "$do_pixdesc_be" ] || [ -n "$do_pixdesc_le" ]; then | 68 if [ -n "$do_pixdesc_be" ] || [ -n "$do_pixdesc_le" ]; then |
| 68 pix_fmts="$($ffmpeg -pix_fmts list 2>/dev/null | sed -ne '9,$p' | grep '^IO'
| cut -d' ' -f2 | sort)" | 69 pix_fmts="$($ffmpeg -pix_fmts list 2>/dev/null | sed -ne '9,$p' | grep '^IO'
| cut -d' ' -f2 | sort)" |
| 69 for pix_fmt in $pix_fmts; do | 70 for pix_fmt in $pix_fmts; do |
| 70 output=lavfi_pixdesc-${pix_fmt}.nut | 71 output=lavfi_pixdesc-${pix_fmt}.nut |
| 71 do_video_encoding $output "" \ | 72 do_video_encoding $output "" \ |
| 72 "-vf slicify=random,format=$pix_fmt,pixdesctest -vcodec rawvideo -pi
x_fmt $pix_fmt" | 73 "-vf slicify=random,format=$pix_fmt,pixdesctest -vcodec rawvideo -pi
x_fmt $pix_fmt" |
| 73 rm ${outfile}${output} | 74 rm ${outfile}${output} |
| 74 done | 75 done |
| 75 fi | 76 fi |
| 76 | 77 |
| 77 # TODO: add tests for | 78 # TODO: add tests for |
| 78 # direct rendering, | 79 # direct rendering, |
| 79 # chains with feedback loops | 80 # chains with feedback loops |
| OLD | NEW |