示例#1
0
 def test_ExtVPPImageStab(self):
     """Test ExtVPPImageStab"""
     obj = pyvpl.ExtVPPImageStab()
     self.assertEqual(obj.ID, 1112822601)
     self.assertEqual(obj.size, 32)
     self.check_field(obj, 'Header', pyvpl.mfxExtBuffer(1112822601, 32),
                      pyvpl.mfxExtBuffer(1, 1))
     self.check_field(obj, 'Mode')
示例#2
0
 def test_ExtVppMctf(self):
     """Test ExtVppMctf"""
     obj = pyvpl.ExtVppMctf()
     self.assertEqual(obj.ID, 1179927373)
     self.assertEqual(obj.size, 64)
     self.check_field(obj, 'Header', pyvpl.mfxExtBuffer(1179927373, 64),
                      pyvpl.mfxExtBuffer(1, 1))
     self.check_field(obj, 'FilterStrength')
示例#3
0
 def test_ExtDecodedFrameInfo(self):
     """Test ExtDecodedFrameInfo"""
     obj = pyvpl.ExtDecodedFrameInfo()
     self.assertEqual(obj.ID, 1229342020)
     self.assertEqual(obj.size, 128)
     self.check_field(obj, 'Header', pyvpl.mfxExtBuffer(1229342020, 128),
                      pyvpl.mfxExtBuffer(1, 1))
     self.check_field(obj, 'FrameType')
示例#4
0
 def test_ExtVPPFrameRateConversion(self):
     """Test ExtVPPFrameRateConversion"""
     obj = pyvpl.ExtVPPFrameRateConversion()
     self.assertEqual(obj.ID, 541282886)
     self.assertEqual(obj.size, 72)
     self.check_field(obj, 'Header', pyvpl.mfxExtBuffer(541282886, 72),
                      pyvpl.mfxExtBuffer(1, 1))
     self.check_field(obj, 'Algorithm')
示例#5
0
 def test_ExtVPPDetail(self):
     """Test ExtVPPDetail"""
     obj = pyvpl.ExtVPPDetail()
     self.assertEqual(obj.ID, 542393668)
     self.assertEqual(obj.size, 12)
     self.check_field(obj, 'Header', pyvpl.mfxExtBuffer(542393668, 12),
                      pyvpl.mfxExtBuffer(1, 1))
     self.check_field(obj, 'DetailFactor')
示例#6
0
 def test_ExtVPPColorFill(self):
     """Test ExtVPPColorFill"""
     obj = pyvpl.ExtVPPColorFill()
     self.assertEqual(obj.ID, 1179403094)
     self.assertEqual(obj.size, 32)
     self.check_field(obj, 'Header', pyvpl.mfxExtBuffer(1179403094, 32),
                      pyvpl.mfxExtBuffer(1, 1))
     self.check_field(obj, 'Enable')
示例#7
0
 def test_ExtVPPMirroring(self):
     """Test ExtVPPMirroring"""
     obj = pyvpl.ExtVPPMirroring()
     self.assertEqual(obj.ID, 1381124429)
     self.assertEqual(obj.size, 32)
     self.check_field(obj, 'Header', pyvpl.mfxExtBuffer(1381124429, 32),
                      pyvpl.mfxExtBuffer(1, 1))
     self.check_field(obj, 'Type')
示例#8
0
 def test_ExtPictureTimingSEI(self):
     """Test ExtPictureTimingSEI"""
     obj = pyvpl.ExtPictureTimingSEI()
     self.assertEqual(obj.ID, 1163088976)
     self.assertEqual(obj.size, 160)
     self.check_field(obj, 'Header', pyvpl.mfxExtBuffer(1163088976, 160),
                      pyvpl.mfxExtBuffer(1, 1))
     self.check_field(obj, 'TimeStamp')
示例#9
0
 def test_ExtVP9TemporalLayers(self):
     """Test ExtVP9TemporalLayers"""
     obj = pyvpl.ExtVP9TemporalLayers()
     self.assertEqual(obj.ID, 1280136249)
     self.assertEqual(obj.size, 384)
     self.check_field(obj, 'Header', pyvpl.mfxExtBuffer(1280136249, 384),
                      pyvpl.mfxExtBuffer(1, 1))
     self.check_field(obj, 'Layer')
示例#10
0
 def test_ExtVPPRotation(self):
     """Test ExtVPPRotation"""
     obj = pyvpl.ExtVPPRotation()
     self.assertEqual(obj.ID, 542396242)
     self.assertEqual(obj.size, 32)
     self.check_field(obj, 'Header', pyvpl.mfxExtBuffer(542396242, 32),
                      pyvpl.mfxExtBuffer(1, 1))
     self.check_field(obj, 'Angle')
示例#11
0
 def test_ExtColorConversion(self):
     """Test ExtColorConversion"""
     obj = pyvpl.ExtColorConversion()
     self.assertEqual(obj.ID, 1129530198)
     self.assertEqual(obj.size, 64)
     self.check_field(obj, 'Header', pyvpl.mfxExtBuffer(1129530198, 64),
                      pyvpl.mfxExtBuffer(1, 1))
     self.check_field(obj, 'ChromaSiting')
示例#12
0
 def test_ExtEncoderCapability(self):
     """Test ExtEncoderCapability"""
     obj = pyvpl.ExtEncoderCapability()
     self.assertEqual(obj.ID, 1346588229)
     self.assertEqual(obj.size, 128)
     self.check_field(obj, 'Header', pyvpl.mfxExtBuffer(1346588229, 128),
                      pyvpl.mfxExtBuffer(1, 1))
     self.check_field(obj, 'MBPerSec')
示例#13
0
 def test_ExtEncoderResetOption(self):
     """Test ExtEncoderResetOption"""
     obj = pyvpl.ExtEncoderResetOption()
     self.assertEqual(obj.ID, 1330794053)
     self.assertEqual(obj.size, 32)
     self.check_field(obj, 'Header', pyvpl.mfxExtBuffer(1330794053, 32),
                      pyvpl.mfxExtBuffer(1, 1))
     self.check_field(obj, 'StartNewSequence')
示例#14
0
 def test_ExtDecodeErrorReport(self):
     """Test ExtDecodeErrorReport"""
     obj = pyvpl.ExtDecodeErrorReport()
     self.assertEqual(obj.ID, 1381123396)
     self.assertEqual(obj.size, 32)
     self.check_field(obj, 'Header', pyvpl.mfxExtBuffer(1381123396, 32),
                      pyvpl.mfxExtBuffer(1, 1))
     self.check_field(obj, 'ErrorTypes')
示例#15
0
 def test_ExtMoveRect(self):
     """Test ExtMoveRect"""
     obj = pyvpl.ExtMoveRect()
     self.assertEqual(obj.ID, 1229935181)
     self.assertEqual(obj.size, 8224)
     self.check_field(obj, 'Header', pyvpl.mfxExtBuffer(1229935181, 8224),
                      pyvpl.mfxExtBuffer(1, 1))
     self.check_field(obj, 'NumRect')
     self.check_field(obj, 'Rect')
示例#16
0
 def test_ExtVPPDoUse(self):
     """Test ExtVPPDoUse"""
     obj = pyvpl.ExtVPPDoUse()
     self.assertEqual(obj.ID, 1163089220)
     self.assertEqual(obj.size, 24)
     self.check_field(obj, 'Header', pyvpl.mfxExtBuffer(1163089220, 24),
                      pyvpl.mfxExtBuffer(1, 1))
     self.check_field(obj, 'AlgList')
     self.check_field(obj, 'NumAlg')
示例#17
0
 def test_ExtInsertHeaders(self):
     """Test ExtInsertHeaders"""
     obj = pyvpl.ExtInsertHeaders()
     self.assertEqual(obj.ID, 1163022419)
     self.assertEqual(obj.size, 28)
     self.check_field(obj, 'Header', pyvpl.mfxExtBuffer(1163022419, 28),
                      pyvpl.mfxExtBuffer(1, 1))
     self.check_field(obj, 'PPS')
     self.check_field(obj, 'SPS')
示例#18
0
 def test_ExtHEVCTiles(self):
     """Test ExtHEVCTiles"""
     obj = pyvpl.ExtHEVCTiles()
     self.assertEqual(obj.ID, 1412773426)
     self.assertEqual(obj.size, 160)
     self.check_field(obj, 'Header', pyvpl.mfxExtBuffer(1412773426, 160),
                      pyvpl.mfxExtBuffer(1, 1))
     self.check_field(obj, 'NumTileColumns')
     self.check_field(obj, 'NumTileRows')
示例#19
0
 def test_ExtEncoderIPCMArea(self):
     """Test ExtEncoderIPCMArea"""
     obj = pyvpl.ExtEncoderIPCMArea()
     self.assertEqual(obj.ID, 1380795216)
     self.assertEqual(obj.size, 40)
     self.check_field(obj, 'Header', pyvpl.mfxExtBuffer(1380795216, 40),
                      pyvpl.mfxExtBuffer(1, 1))
     self.check_field(obj, 'Areas')
     self.check_field(obj, 'NumArea')
示例#20
0
 def test_ExtVPPDenoise2(self):
     """Test ExtVPPDenoise2"""
     obj = pyvpl.ExtVPPDenoise2()
     self.assertEqual(obj.ID, 843664964)
     self.assertEqual(obj.size, 44)
     self.check_field(obj, 'Header', pyvpl.mfxExtBuffer(843664964, 12),
                      pyvpl.mfxExtBuffer(1, 1))
     self.check_field(obj, 'Mode')
     self.check_field(obj, 'Strength')
示例#21
0
 def test_ExtMBForceIntra(self):
     """Test ExtMBForceIntra"""
     obj = pyvpl.ExtMBForceIntra()
     self.assertEqual(obj.ID, 1229341261)
     self.assertEqual(obj.size, 64)
     self.check_field(obj, 'Header', pyvpl.mfxExtBuffer(1229341261, 64),
                      pyvpl.mfxExtBuffer(1, 1))
     self.check_field(obj, 'Map')
     self.check_field(obj, 'MapSize')
示例#22
0
 def test_ExtDeviceAffinityMask(self):
     """Test ExtDeviceAffinityMask"""
     obj = pyvpl.ExtDeviceAffinityMask()
     self.assertEqual(obj.ID, 1296449860)
     self.assertEqual(obj.size, 168)
     self.check_field(obj, 'Header', pyvpl.mfxExtBuffer(1296449860, 168),
                      pyvpl.mfxExtBuffer(1, 1))
     self.check_field(obj, 'DeviceID')
     self.check_field(obj, 'NumSubDevices')
示例#23
0
 def test_ExtMBDisableSkipMap(self):
     """Test ExtMBDisableSkipMap"""
     obj = pyvpl.ExtMBDisableSkipMap()
     self.assertEqual(obj.ID, 1297302605)
     self.assertEqual(obj.size, 64)
     self.check_field(obj, 'Header', pyvpl.mfxExtBuffer(1297302605, 64),
                      pyvpl.mfxExtBuffer(1, 1))
     self.check_field(obj, 'Map')
     self.check_field(obj, 'MapSize')
示例#24
0
 def test_ExtDecVideoProcessing(self):
     """Test ExtDecVideoProcessing"""
     obj = pyvpl.ExtDecVideoProcessing()
     self.assertEqual(obj.ID, 1447249220)
     self.assertEqual(obj.size, 132)
     self.check_field(obj, 'Header', pyvpl.mfxExtBuffer(1447249220, 132),
                      pyvpl.mfxExtBuffer(1, 1))
     self.check_field(obj, 'In')
     self.check_field(obj, 'Out')
示例#25
0
 def test_ExtPartialBitstreamParam(self):
     """Test ExtPartialBitstreamParam"""
     obj = pyvpl.ExtPartialBitstreamParam()
     self.assertEqual(obj.ID, 1347371600)
     self.assertEqual(obj.size, 32)
     self.check_field(obj, 'Header', pyvpl.mfxExtBuffer(1347371600, 32),
                      pyvpl.mfxExtBuffer(1, 1))
     self.check_field(obj, 'BlockSize')
     self.check_field(obj, 'Granularity')
示例#26
0
 def test_ExtAvcTemporalLayers(self):
     """Test ExtAvcTemporalLayers"""
     obj = pyvpl.ExtAvcTemporalLayers()
     self.assertEqual(obj.ID, 1280136257)
     self.assertEqual(obj.size, 92)
     self.check_field(obj, 'Header', pyvpl.mfxExtBuffer(1280136257, 92),
                      pyvpl.mfxExtBuffer(1, 1))
     self.check_field(obj, 'BaseLayerPID')
     self.check_field(obj, 'Layer')
示例#27
0
 def test_ExtVPPScaling(self):
     """Test ExtVPPScaling"""
     obj = pyvpl.ExtVPPScaling()
     self.assertEqual(obj.ID, 1279480662)
     self.assertEqual(obj.size, 32)
     self.check_field(obj, 'Header', pyvpl.mfxExtBuffer(1279480662, 32),
                      pyvpl.mfxExtBuffer(1, 1))
     self.check_field(obj, 'InterpolationMethod')
     self.check_field(obj, 'ScalingMode')
示例#28
0
 def test_ExtVPPDeinterlacing(self):
     """Test ExtVPPDeinterlacing"""
     obj = pyvpl.ExtVPPDeinterlacing()
     self.assertEqual(obj.ID, 1229213782)
     self.assertEqual(obj.size, 32)
     self.check_field(obj, 'Header', pyvpl.mfxExtBuffer(1229213782, 32),
                      pyvpl.mfxExtBuffer(1, 1))
     self.check_field(obj, 'Mode')
     self.check_field(obj, 'TelecineLocation')
     self.check_field(obj, 'TelecinePattern')
示例#29
0
 def test_ExtHEVCRegion(self):
     """Test ExtHEVCRegion"""
     obj = pyvpl.ExtHEVCRegion()
     self.assertEqual(obj.ID, 1379218994)
     self.assertEqual(obj.size, 64)
     self.check_field(obj, 'Header', pyvpl.mfxExtBuffer(1379218994, 64),
                      pyvpl.mfxExtBuffer(1, 1))
     self.check_field(obj, 'RegionEncoding')
     self.check_field(obj, 'RegionId')
     self.check_field(obj, 'RegionType')
示例#30
0
 def test_ExtVPPFieldProcessing(self):
     """Test ExtVPPFieldProcessing"""
     obj = pyvpl.ExtVPPFieldProcessing()
     self.assertEqual(obj.ID, 1330794566)
     self.assertEqual(obj.size, 64)
     self.check_field(obj, 'Header', pyvpl.mfxExtBuffer(1330794566, 64),
                      pyvpl.mfxExtBuffer(1, 1))
     self.check_field(obj, 'InField')
     self.check_field(obj, 'Mode')
     self.check_field(obj, 'OutField')