AVSampleCursor.inc 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. { Parsed from AVFoundation.framework AVSampleCursor.h }
  2. {$ifdef TYPES}
  3. type
  4. AVSampleCursorPtr = ^AVSampleCursor;
  5. {$endif}
  6. {$ifdef TYPES}
  7. type
  8. AVSampleCursorDependencyInfo = record
  9. sampleIndicatesWhetherItHasDependentSamples: ObjCBOOL;
  10. sampleHasDependentSamples: ObjCBOOL;
  11. sampleIndicatesWhetherItDependsOnOthers: ObjCBOOL;
  12. sampleDependsOnOthers: ObjCBOOL;
  13. sampleIndicatesWhetherItHasRedundantCoding: ObjCBOOL;
  14. sampleHasRedundantCoding: ObjCBOOL;
  15. end;
  16. type
  17. AVSampleCursorDependencyInfoPtr = ^AVSampleCursorDependencyInfo;
  18. type
  19. AVSampleCursorStorageRange = record
  20. offset: cint64;
  21. length: cint64;
  22. end;
  23. type
  24. AVSampleCursorStorageRangePtr = ^AVSampleCursorStorageRange;
  25. type
  26. AVSampleCursorSyncInfo = record
  27. sampleIsFullSync: ObjCBOOL;
  28. sampleIsPartialSync: ObjCBOOL;
  29. sampleIsDroppable: ObjCBOOL;
  30. end;
  31. type
  32. AVSampleCursorSyncInfoPtr = ^AVSampleCursorSyncInfo;
  33. type
  34. AVSampleCursorChunkInfo = record
  35. chunkSampleCount: cint64;
  36. chunkHasUniformSampleSizes: ObjCBOOL;
  37. chunkHasUniformSampleDurations: ObjCBOOL;
  38. chunkHasUniformFormatDescriptions: ObjCBOOL;
  39. end;
  40. type
  41. AVSampleCursorChunkInfoPtr = ^AVSampleCursorChunkInfo;
  42. {$endif}
  43. {$if not defined(TARGET_OS_IPHONE)}
  44. {$ifdef CLASSES}
  45. type
  46. AVSampleCursor = objcclass external (NSObject, NSCopyingProtocol)
  47. private
  48. _sampleCursor: AVSampleCursorInternal;
  49. public
  50. function stepInDecodeOrderByCount (stepCount: cint64): cint64; message 'stepInDecodeOrderByCount:';
  51. function stepInPresentationOrderByCount (stepCount: cint64): cint64; message 'stepInPresentationOrderByCount:';
  52. function stepByDecodeTime_wasPinned (deltaDecodeTime: CMTime; outWasPinned: pObjCBOOL): CMTime; message 'stepByDecodeTime:wasPinned:';
  53. function stepByPresentationTime_wasPinned (deltaPresentationTime: CMTime; outWasPinned: pObjCBOOL): CMTime; message 'stepByPresentationTime:wasPinned:';
  54. { Adopted protocols }
  55. function copyWithZone (zone: NSZonePtr): id; message 'copyWithZone:';
  56. end;
  57. type
  58. AVSampleCursorTemporalPosition = objccategory external (AVSampleCursor)
  59. function presentationTimeStamp: CMTime; message 'presentationTimeStamp';
  60. function decodeTimeStamp: CMTime; message 'decodeTimeStamp';
  61. function comparePositionInDecodeOrderWithPositionOfCursor (cursor: AVSampleCursor): NSComparisonResult; message 'comparePositionInDecodeOrderWithPositionOfCursor:';
  62. function samplesWithEarlierDecodeTimeStampsMayHaveLaterPresentationTimeStampsThanCursor (cursor: AVSampleCursor): ObjCBOOL; message 'samplesWithEarlierDecodeTimeStampsMayHaveLaterPresentationTimeStampsThanCursor:';
  63. function samplesWithLaterDecodeTimeStampsMayHaveEarlierPresentationTimeStampsThanCursor (cursor: AVSampleCursor): ObjCBOOL; message 'samplesWithLaterDecodeTimeStampsMayHaveEarlierPresentationTimeStampsThanCursor:';
  64. end;
  65. type
  66. AVSampleCursorCurrentSampleInfo = objccategory external (AVSampleCursor)
  67. function currentSampleDuration: CMTime; message 'currentSampleDuration';
  68. function copyCurrentSampleFormatDescription: CMFormatDescriptionRef; message 'copyCurrentSampleFormatDescription'; { CF_RETURNS_RETAINED }
  69. function currentSampleSyncInfo: AVSampleCursorSyncInfo; message 'currentSampleSyncInfo';
  70. function currentSampleDependencyInfo: AVSampleCursorDependencyInfo; message 'currentSampleDependencyInfo';
  71. end;
  72. type
  73. AVSampleCursorSampleStorageInfo = objccategory external (AVSampleCursor)
  74. function currentChunkStorageURL: NSURL; message 'currentChunkStorageURL';
  75. function currentChunkStorageRange: AVSampleCursorStorageRange; message 'currentChunkStorageRange';
  76. function currentChunkInfo: AVSampleCursorChunkInfo; message 'currentChunkInfo';
  77. function currentSampleIndexInChunk: cint64; message 'currentSampleIndexInChunk';
  78. function currentSampleStorageRange: AVSampleCursorStorageRange; message 'currentSampleStorageRange';
  79. end;
  80. {$endif}
  81. {$endif}