def test_19(self): """ YV12 -> crop """ a = YCbCr(width=352, height=288, filename='foreman_cif_frame_0.yuv', yuv_format_in='YV12', crop_rect=(0,0,15,15), filename_out=OUT) a.crop() ret = get_sha1(OUT, 384) self.assertEqual(ret, 'e74e61a5c6ade64c9f6371920512b5010d23cad4')
def test_19(self): """ YV12 -> crop """ a = YCbCr(width=352, height=288, filename='foreman_cif_frame_0.yuv', yuv_format_in='YV12', crop_rect=(0, 0, 15, 15), filename_out=OUT) a.crop() ret = get_sha1(OUT, 384) self.assertEqual(ret, 'e74e61a5c6ade64c9f6371920512b5010d23cad4')
def test_20(self): """ YV12 -> YVYU -> crop """ 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', crop_rect=(0, 0, 15, 15), filename_out=OUT1) a.crop() ret = get_sha1(OUT1, 512) self.assertEqual(ret, '4bf3179e43e7ca6d490bf1d996dff84ef64be664')