On Fri, 21 Mar 2014 03:59:29 +0100, Vittorio Giovara <[email protected]> wrote: > --- > Test OCDing. > Vittorio > > tests/fate/image.mak | 6 ++++++ > tests/ref/fate/aliaspix-bgr | 2 ++ > tests/ref/fate/aliaspix-gray | 2 ++ > 3 files changed, 10 insertions(+) > create mode 100644 tests/ref/fate/aliaspix-bgr > create mode 100644 tests/ref/fate/aliaspix-gray > > diff --git a/tests/fate/image.mak b/tests/fate/image.mak > index 1357cbd..00351e8 100644 > --- a/tests/fate/image.mak > +++ b/tests/fate/image.mak > @@ -1,3 +1,9 @@ > +FATE_SAMPLES_AVCONV-$(call DEMDEC, IMAGE2, ALIAS_PIX) += fate-aliaspix-bgr > +fate-aliaspix-bgr: CMD = framecrc -i $(TARGET_SAMPLES)/aliaspix/first.pix > -pix_fmt bgr24 > + > +FATE_SAMPLES_AVCONV-$(call DEMDEC, IMAGE2, ALIAS_PIX) += fate-aliaspix-gray > +fate-aliaspix-gray: CMD = framecrc -i > $(TARGET_SAMPLES)/aliaspix/firstgray.pix -pix_fmt gray > + > FATE_SAMPLES_AVCONV-$(call DEMDEC, IMAGE2, DPX) += fate-dpx > fate-dpx: CMD = framecrc -i $(TARGET_SAMPLES)/dpx/lighthouse_rgb48.dpx > > diff --git a/tests/ref/fate/aliaspix-bgr b/tests/ref/fate/aliaspix-bgr > new file mode 100644 > index 0000000..235a5ac > --- /dev/null > +++ b/tests/ref/fate/aliaspix-bgr > @@ -0,0 +1,2 @@ > +#tb 0: 1/25 > +0, 0, 0, 1, 36000, 0x9ff1ba55 > diff --git a/tests/ref/fate/aliaspix-gray b/tests/ref/fate/aliaspix-gray > new file mode 100644 > index 0000000..74cf6a2 > --- /dev/null > +++ b/tests/ref/fate/aliaspix-gray > @@ -0,0 +1,2 @@ > +#tb 0: 1/25 > +0, 0, 0, 1, 12000, 0x29f8832c > -- > 1.8.3.4 (Apple Git-47) >
Since you're adding an encoder too, it'd be even nicer to test encode->decode. The codec is marked as lossless, so the result should be identical. -- Anton Khirnov _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
