Commit 0a1c3f65 authored by diego's avatar diego

Use a function for image formats.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7197 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2ddaeb5d
...@@ -172,6 +172,14 @@ do_streamed_images() ...@@ -172,6 +172,14 @@ do_streamed_images()
do_ffmpeg_crc $file -f image2pipe -i $file do_ffmpeg_crc $file -f image2pipe -i $file
} }
do_image_formats()
{
file=${outfile}libav%02d.$1
$ffmpeg -t 0.5 -y -qscale 10 -f pgmyuv -i $raw_src $2 $3 $file
do_ffmpeg_crc $file $3 -i $file
}
do_audio_only() do_audio_only()
{ {
file=${outfile}libav.$1 file=${outfile}libav.$1
...@@ -727,19 +735,13 @@ do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src $file ...@@ -727,19 +735,13 @@ do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src $file
#################### ####################
# image formats # image formats
# pgm (we do not do md5 on image files yet) # pgm (we do not do md5 on image files yet)
file=${outfile}libav%02d.pgm do_image_formats pgm
$ffmpeg -t 0.5 -y -qscale 10 -f pgmyuv -i $raw_src $file
do_ffmpeg_crc $file -i $file
# ppm (we do not do md5 on image files yet) # ppm (we do not do md5 on image files yet)
file=${outfile}libav%02d.ppm do_image_formats ppm
$ffmpeg -t 0.5 -y -qscale 10 -f pgmyuv -i $raw_src $file
do_ffmpeg_crc $file -i $file
# jpeg (we do not do md5 on image files yet) # jpeg (we do not do md5 on image files yet)
file=${outfile}libav%02d.jpg do_image_formats jpg "-flags +bitexact -dct fastint -idct simple -pix_fmt yuvj420p" "-f image2"
$ffmpeg -t 0.5 -y -qscale 10 -f pgmyuv -i $raw_src -flags +bitexact -dct fastint -idct simple -pix_fmt yuvj420p -f image2 $file
do_ffmpeg_crc $file -f image2 -i $file
#################### ####################
# audio only # audio only
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment