def testStructs(self): v = AVFoundation.AVSampleCursorSyncInfo() self.assertIsInstance(v.sampleIsFullSync, bool) self.assertIsInstance(v.sampleIsPartialSync, bool) self.assertIsInstance(v.sampleIsDroppable, bool) v = AVFoundation.AVSampleCursorDependencyInfo() self.assertIsInstance(v.sampleIndicatesWhetherItHasDependentSamples, bool) self.assertIsInstance(v.sampleHasDependentSamples, bool) self.assertIsInstance(v.sampleIndicatesWhetherItDependsOnOthers, bool) self.assertIsInstance(v.sampleDependsOnOthers, bool) self.assertIsInstance(v.sampleIndicatesWhetherItHasRedundantCoding, bool) self.assertIsInstance(v.sampleHasRedundantCoding, bool) v = AVFoundation.AVSampleCursorStorageRange() self.assertIsInstance(v.offset, (int, long)) self.assertIsInstance(v.length, (int, long)) v = AVFoundation.AVSampleCursorChunkInfo() self.assertIsInstance(v.chunkSampleCount, (int, long)) self.assertIsInstance(v.chunkHasUniformSampleSizes, bool) self.assertIsInstance(v.chunkHasUniformSampleDurations, bool) self.assertIsInstance(v.chunkHasUniformFormatDescriptions, bool)
def testStructs(self): v = AVFoundation.AVSampleCursorSyncInfo() self.assertIsInstance(v.sampleIsFullSync, bool) self.assertIsInstance(v.sampleIsPartialSync, bool) self.assertIsInstance(v.sampleIsDroppable, bool) v = AVFoundation.AVSampleCursorDependencyInfo() self.assertIsInstance( v.sampleIndicatesWhetherItHasDependentSamples, bool ) # noqa: B950 self.assertIsInstance(v.sampleHasDependentSamples, bool) self.assertIsInstance(v.sampleIndicatesWhetherItDependsOnOthers, bool) self.assertIsInstance(v.sampleDependsOnOthers, bool) self.assertIsInstance( v.sampleIndicatesWhetherItHasRedundantCoding, bool ) # noqa: B950 self.assertIsInstance(v.sampleHasRedundantCoding, bool) v = AVFoundation.AVSampleCursorStorageRange() self.assertIsInstance(v.offset, int) self.assertIsInstance(v.length, int) v = AVFoundation.AVSampleCursorChunkInfo() self.assertIsInstance(v.chunkSampleCount, int) self.assertIsInstance(v.chunkHasUniformSampleSizes, bool) self.assertIsInstance(v.chunkHasUniformSampleDurations, bool) self.assertIsInstance(v.chunkHasUniformFormatDescriptions, bool) v = AVFoundation.AVSampleCursorAudioDependencyInfo() self.assertIsInstance(v.audioSampleIsIndependentlyDecodable, bool) self.assertIsInstance(v.audioSamplePacketRefreshCount, int)