Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(335)

Side by Side Diff: patched-ffmpeg-mt/tests/lavf-regression.sh

Issue 789004: ffmpeg roll of source to mar 9 version... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/ffmpeg/
Patch Set: '' Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
11 11
12 eval do_$test=y 12 eval do_$test=y
13 13
14 do_lavf() 14 do_lavf()
15 { 15 {
16 file=${outfile}lavf.$1 16 file=${outfile}lavf.$1
17 do_ffmpeg $file -t 1 -qscale 10 -f image2 -vcodec pgmyuv -i $raw_src -f s16l e -i $pcm_src $2 17 do_ffmpeg $file -t 1 -qscale 10 -f image2 -vcodec pgmyuv -i $raw_src -f s16l e -i $pcm_src $2
18 do_ffmpeg_crc $file -i $target_path/$file $3 18 do_ffmpeg_crc $file -i $target_path/$file $3
19 } 19 }
20 20
21 do_streamed_images() 21 do_streamed_images()
22 { 22 {
23 file=${outfile}${1}pipe.$1 23 file=${outfile}${1}pipe.$1
24 do_ffmpeg $file -t 1 -qscale 10 -f image2 -vcodec pgmyuv -i $raw_src -f imag e2pipe 24 do_ffmpeg $file -t 1 -qscale 10 -f image2 -vcodec pgmyuv -i $raw_src -f imag e2pipe
25 do_ffmpeg_crc $file -f image2pipe -i $target_path/$file 25 do_ffmpeg_crc $file -f image2pipe -i $target_path/$file
26 } 26 }
27 27
28 do_image_formats() 28 do_image_formats()
29 { 29 {
30 file=${outfile}lavf%02d.$1 30 outfile="$datadir/images/$1/"
31 mkdir -p "$outfile"
32 file=${outfile}%02d.$1
31 $echov $ffmpeg -t 0.5 -y -qscale 10 -f image2 -vcodec pgmyuv -i $raw_src $2 $3 -flags +bitexact -sws_flags +accurate_rnd+bitexact $target_path/$file 33 $echov $ffmpeg -t 0.5 -y -qscale 10 -f image2 -vcodec pgmyuv -i $raw_src $2 $3 -flags +bitexact -sws_flags +accurate_rnd+bitexact $target_path/$file
32 $ffmpeg -t 0.5 -y -qscale 10 -f image2 -vcodec pgmyuv -i $raw_src $2 $3 -fla gs +bitexact -sws_flags +accurate_rnd+bitexact $target_path/$file 34 $ffmpeg -t 0.5 -y -qscale 10 -f image2 -vcodec pgmyuv -i $raw_src $2 $3 -fla gs +bitexact -sws_flags +accurate_rnd+bitexact $target_path/$file
33 do_md5sum ${outfile}lavf02.$1 >> $logfile 35 do_md5sum ${outfile}02.$1 >> $logfile
34 do_ffmpeg_crc $file $3 -i $target_path/$file 36 do_ffmpeg_crc $file $3 -i $target_path/$file
35 wc -c ${outfile}lavf02.$1 >> $logfile 37 wc -c ${outfile}02.$1 >> $logfile
36 } 38 }
37 39
38 do_audio_only() 40 do_audio_only()
39 { 41 {
40 file=${outfile}lavf.$1 42 file=${outfile}lavf.$1
41 do_ffmpeg $file -t 1 -qscale 10 -f s16le -i $pcm_src 43 do_ffmpeg $file -t 1 -qscale 10 -f s16le -i $pcm_src
42 do_ffmpeg_crc $file -i $target_path/$file 44 do_ffmpeg_crc $file -i $target_path/$file
43 } 45 }
44 46
45 rm -f "$logfile" 47 rm -f "$logfile"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 do_audio_only voc 202 do_audio_only voc
201 fi 203 fi
202 204
203 if [ -n "$do_ogg" ] ; then 205 if [ -n "$do_ogg" ] ; then
204 do_audio_only ogg 206 do_audio_only ogg
205 fi 207 fi
206 208
207 # pix_fmt conversions 209 # pix_fmt conversions
208 210
209 if [ -n "$do_pixfmt" ] ; then 211 if [ -n "$do_pixfmt" ] ; then
212 outfile="$datadir/pixfmt/"
213 mkdir -p "$outfile"
210 conversions="yuv420p yuv422p yuv444p yuyv422 yuv410p yuv411p yuvj420p \ 214 conversions="yuv420p yuv422p yuv444p yuyv422 yuv410p yuv411p yuvj420p \
211 yuvj422p yuvj444p rgb24 bgr24 rgb32 rgb565 rgb555 gray monow \ 215 yuvj422p yuvj444p rgb24 bgr24 rgb32 rgb565 rgb555 gray monow \
212 monob yuv440p yuvj440p" 216 monob yuv440p yuvj440p"
213 for pix_fmt in $conversions ; do 217 for pix_fmt in $conversions ; do
214 file=${outfile}lavf-${pix_fmt}.yuv 218 file=${outfile}${pix_fmt}.yuv
215 do_ffmpeg_nocheck $file -r 1 -t 1 -f image2 -vcodec pgmyuv -i $raw_src \ 219 do_ffmpeg_nocheck $file -r 1 -t 1 -f image2 -vcodec pgmyuv -i $raw_src \
216 -f rawvideo -s 352x288 -pix_fmt $pix_fmt $target_pat h/$raw_dst 220 -f rawvideo -s 352x288 -pix_fmt $pix_fmt $target_pat h/$raw_dst
217 do_ffmpeg $file -f rawvideo -s 352x288 -pix_fmt $pix_fmt -i $target_path/$ra w_dst \ 221 do_ffmpeg $file -f rawvideo -s 352x288 -pix_fmt $pix_fmt -i $target_path/$ra w_dst \
218 -f rawvideo -s 352x288 -pix_fmt yuv444p 222 -f rawvideo -s 352x288 -pix_fmt yuv444p
219 done 223 done
220 fi 224 fi
221 225
222 rm -f "$bench" "$bench2" 226 rm -f "$bench" "$bench2"
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698