def test_yuv_reader(self): yuv_reader = YuvReader(filepath=config.ROOT + "/resource/yuv/src01_hrc00_576x324.yuv", width=576, height=324, yuv_type='yuv420p') self.assertEquals(yuv_reader.num_bytes, 13436928) self.assertEquals(yuv_reader.num_frms, 48) self.assertEquals(yuv_reader._get_uv_width_height_multiplier(), (0.5, 0.5))
def test_yuv_reader(self): yuv_reader = YuvReader(filepath=VmafConfig.test_resource_path( "yuv", "src01_hrc00_576x324.yuv"), width=576, height=324, yuv_type='yuv420p') self.assertEqual(yuv_reader.num_bytes, 13436928) self.assertEqual(yuv_reader.num_frms, 48) self.assertEqual(yuv_reader._get_uv_width_height_multiplier(), (0.5, 0.5))
def test_yuv_reader(self): yuv_reader = YuvReader( filepath=VmafConfig.test_resource_path("yuv", "src01_hrc00_576x324.yuv422p10le.yuv"), width=576, height=324, yuv_type='yuv422p10le' ) self.assertEquals(yuv_reader.num_bytes, 35831808) self.assertEquals(yuv_reader.num_frms, 48) self.assertEquals(yuv_reader._get_uv_width_height_multiplier(), (0.5, 1.0))