Exemple #1
0
    def test_16(self):
        """
        YV12 -> flip left-right
        """
        a = YCbCr(width=352, height=288, filename='foreman_cif_frame_0.yuv',
                  yuv_format_in='YV12',
                  filename_out=OUT)
        a.fliplr()

        ret = get_sha1(OUT, SIZE_420)

        self.assertEqual(ret, 'f93ef579e5f672fd2a5962072509d98382a7d1d3')
Exemple #2
0
    def test_16(self):
        """
        YV12 -> flip left-right
        """
        a = YCbCr(width=352,
                  height=288,
                  filename='foreman_cif_frame_0.yuv',
                  yuv_format_in='YV12',
                  filename_out=OUT)
        a.fliplr()

        ret = get_sha1(OUT, SIZE_420)

        self.assertEqual(ret, 'f93ef579e5f672fd2a5962072509d98382a7d1d3')
Exemple #3
0
    def test_17(self):
        """
        YV12 -> YVYU -> flip left-right
        """
        a = YCbCr(width=352, height=288, filename='foreman_cif_frame_0.yuv',
                  yuv_format_in='YV12',
                  yuv_format_out='YVYU', filename_out=OUT)
        a.convert()

        a = YCbCr(width=352, height=288, filename=OUT,
                  yuv_format_in='YVYU',
                  filename_out=OUT1)
        a.fliplr()

        ret = get_sha1(OUT1, SIZE_422)

        self.assertEqual(ret, 'a5bdbfdeb0259f6d0bd85ddd97d58f6fc7965ca9')
Exemple #4
0
    def test_17(self):
        """
        YV12 -> YVYU -> flip left-right
        """
        a = YCbCr(width=352,
                  height=288,
                  filename='foreman_cif_frame_0.yuv',
                  yuv_format_in='YV12',
                  yuv_format_out='YVYU',
                  filename_out=OUT)
        a.convert()

        a = YCbCr(width=352,
                  height=288,
                  filename=OUT,
                  yuv_format_in='YVYU',
                  filename_out=OUT1)
        a.fliplr()

        ret = get_sha1(OUT1, SIZE_422)

        self.assertEqual(ret, 'a5bdbfdeb0259f6d0bd85ddd97d58f6fc7965ca9')