[FFmpeg-devel] [PATCH] Add v408 codec regression test.

Michael Niedermayer michaelni at gmx.at
Mon Apr 9 08:12:43 CEST 2012


On Mon, Apr 09, 2012 at 12:36:47AM +0200, Reimar Döffinger wrote:
> On Mon, Apr 09, 2012 at 12:35:29AM +0200, Reimar Döffinger wrote:
> > Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
> > ---
> >  tests/codec-regression.sh |    5 +++++
> >  tests/ref/vsynth1/v408    |    4 ++++
> >  tests/ref/vsynth2/v408    |    4 ++++
> >  3 files changed, 13 insertions(+)
> >  create mode 100644 tests/ref/vsynth1/v408
> >  create mode 100644 tests/ref/vsynth2/v408
> > 
> > diff --git a/tests/codec-regression.sh b/tests/codec-regression.sh
> > index bc6e297..a867169 100755
> > --- a/tests/codec-regression.sh
> > +++ b/tests/codec-regression.sh
> > @@ -345,6 +345,11 @@ do_video_encoding v308.avi "-an -c:v v308"
> >  do_video_decoding "" "-pix_fmt yuv420p"
> >  fi
> >  
> > +if [ -n "$do_v408" ] ; then
> > +do_video_encoding v408.avi "-an -c:v v408 -sws_flags neighbor+bitexact"
> > +do_video_decoding "" "-sws_flags neighbor+bitexact -pix_fmt yuv420p"
> > +fi
> > +
> >  if [ -n "$do_yuv" ] ; then
> >  do_video_encoding yuv.avi "-an -vcodec rawvideo -pix_fmt yuv420p"
> >  do_video_decoding "" "-pix_fmt yuv420p"
> > diff --git a/tests/ref/vsynth1/v408 b/tests/ref/vsynth1/v408
> > new file mode 100644
> > index 0000000..6647550
> > --- /dev/null
> > +++ b/tests/ref/vsynth1/v408
> > @@ -0,0 +1,4 @@
> > +98057c4d5ce12a1b1b3ca15839f47c95 *./tests/data/vsynth1/v408.avi
> > +20282060 ./tests/data/vsynth1/v408.avi
> > +c5ccac874dbf808e9088bc3107860042 *./tests/data/v408.vsynth1.out.yuv
> > +stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/  7603200
> > diff --git a/tests/ref/vsynth2/v408 b/tests/ref/vsynth2/v408
> > new file mode 100644
> > index 0000000..544acd3
> > --- /dev/null
> > +++ b/tests/ref/vsynth2/v408
> > @@ -0,0 +1,4 @@
> > +033d112ec5a1a78882233d0b791e5ef7 *./tests/data/vsynth2/v408.avi
> > +20282060 ./tests/data/vsynth2/v408.avi
> > +dde5895817ad9d219f79a52d0bdfb001 *./tests/data/v408.vsynth2.out.yuv
> > +stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  7603200/  7603200
> 
> I thought it would be more useful to test in a way that shows
> that conversion is lossless (it is just 420 -> 444 -> 420).

LGTM

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Freedom in capitalist society always remains about the same as it was in
ancient Greek republics: Freedom for slave owners. -- Vladimir Lenin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120409/c84d0cca/attachment.asc>


More information about the ffmpeg-devel mailing list