| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 # | 2 # |
| 3 # automatic regression test for libavformat | 3 # automatic regression test for libavformat |
| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 do_streamed_images pgm | 122 do_streamed_images pgm |
| 123 fi | 123 fi |
| 124 | 124 |
| 125 if [ -n "$do_ppmpipe" ] ; then | 125 if [ -n "$do_ppmpipe" ] ; then |
| 126 do_streamed_images ppm | 126 do_streamed_images ppm |
| 127 fi | 127 fi |
| 128 | 128 |
| 129 if [ -n "$do_gif" ] ; then | 129 if [ -n "$do_gif" ] ; then |
| 130 file=${outfile}lavf.gif | 130 file=${outfile}lavf.gif |
| 131 do_ffmpeg $file -t 1 -qscale 10 -f image2 -vcodec pgmyuv -i $raw_src -pix_fmt rg
b24 | 131 do_ffmpeg $file -t 1 -qscale 10 -f image2 -vcodec pgmyuv -i $raw_src -pix_fmt rg
b24 |
| 132 #do_ffmpeg_crc $file -i $target_path/$file | 132 do_ffmpeg_crc $file -i $target_path/$file -pix_fmt rgb24 |
| 133 fi | 133 fi |
| 134 | 134 |
| 135 if [ -n "$do_yuv4mpeg" ] ; then | 135 if [ -n "$do_yuv4mpeg" ] ; then |
| 136 file=${outfile}lavf.y4m | 136 file=${outfile}lavf.y4m |
| 137 do_ffmpeg $file -t 1 -qscale 10 -f image2 -vcodec pgmyuv -i $raw_src | 137 do_ffmpeg $file -t 1 -qscale 10 -f image2 -vcodec pgmyuv -i $raw_src |
| 138 #do_ffmpeg_crc $file -i $target_path/$file | 138 #do_ffmpeg_crc $file -i $target_path/$file |
| 139 fi | 139 fi |
| 140 | 140 |
| 141 # image formats | 141 # image formats |
| 142 | 142 |
| 143 if [ -n "$do_pgm" ] ; then | 143 if [ -n "$do_pgm" ] ; then |
| 144 do_image_formats pgm | 144 do_image_formats pgm |
| 145 fi | 145 fi |
| 146 | 146 |
| 147 if [ -n "$do_ppm" ] ; then | 147 if [ -n "$do_ppm" ] ; then |
| 148 do_image_formats ppm | 148 do_image_formats ppm |
| 149 fi | 149 fi |
| 150 | 150 |
| 151 if [ -n "$do_png" ] ; then |
| 152 do_image_formats png |
| 153 fi |
| 154 |
| 151 if [ -n "$do_bmp" ] ; then | 155 if [ -n "$do_bmp" ] ; then |
| 152 do_image_formats bmp | 156 do_image_formats bmp |
| 153 fi | 157 fi |
| 154 | 158 |
| 155 if [ -n "$do_tga" ] ; then | 159 if [ -n "$do_tga" ] ; then |
| 156 do_image_formats tga | 160 do_image_formats tga |
| 157 fi | 161 fi |
| 158 | 162 |
| 159 if [ -n "$do_tiff" ] ; then | 163 if [ -n "$do_tiff" ] ; then |
| 160 do_image_formats tiff "-pix_fmt rgb24" | 164 do_image_formats tiff "-pix_fmt rgb24" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 yuvj422p yuvj444p rgb24 bgr24 rgb32 rgb565 rgb555 gray monow \ | 223 yuvj422p yuvj444p rgb24 bgr24 rgb32 rgb565 rgb555 gray monow \ |
| 220 monob yuv440p yuvj440p" | 224 monob yuv440p yuvj440p" |
| 221 for pix_fmt in $conversions ; do | 225 for pix_fmt in $conversions ; do |
| 222 file=${outfile}${pix_fmt}.yuv | 226 file=${outfile}${pix_fmt}.yuv |
| 223 do_ffmpeg_nocheck $file -r 1 -t 1 -f image2 -vcodec pgmyuv -i $raw_src \ | 227 do_ffmpeg_nocheck $file -r 1 -t 1 -f image2 -vcodec pgmyuv -i $raw_src \ |
| 224 -f rawvideo -s 352x288 -pix_fmt $pix_fmt $target_pat
h/$raw_dst | 228 -f rawvideo -s 352x288 -pix_fmt $pix_fmt $target_pat
h/$raw_dst |
| 225 do_ffmpeg $file -f rawvideo -s 352x288 -pix_fmt $pix_fmt -i $target_path/$ra
w_dst \ | 229 do_ffmpeg $file -f rawvideo -s 352x288 -pix_fmt $pix_fmt -i $target_path/$ra
w_dst \ |
| 226 -f rawvideo -s 352x288 -pix_fmt yuv444p | 230 -f rawvideo -s 352x288 -pix_fmt yuv444p |
| 227 done | 231 done |
| 228 fi | 232 fi |
| OLD | NEW |