AVAssetWriterInput.inc 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. { Parsed from AVFoundation.framework AVAssetWriterInput.h }
  2. {$ifdef TYPES}
  3. type
  4. AVAssetWriterInputPtr = ^AVAssetWriterInput;
  5. AVAssetWriterInputPassDescriptionPtr = ^AVAssetWriterInputPassDescription;
  6. AVAssetWriterInputPixelBufferAdaptorPtr = ^AVAssetWriterInputPixelBufferAdaptor;
  7. AVAssetWriterInputMetadataAdaptorPtr = ^AVAssetWriterInputMetadataAdaptor;
  8. {$endif}
  9. {$ifdef CLASSES}
  10. type
  11. AVAssetWriterInput = objcclass external (NSObject)
  12. private
  13. _internal: AVAssetWriterInputInternal;
  14. public
  15. class function assetWriterInputWithMediaType_outputSettings (mediaType: NSString; outputSettings: NSDictionary): AVAssetWriterInput; message 'assetWriterInputWithMediaType:outputSettings:';
  16. class function assetWriterInputWithMediaType_outputSettings_sourceFormatHint (mediaType: NSString; outputSettings: NSDictionary; sourceFormatHint: CMFormatDescriptionRef): AVAssetWriterInput; message 'assetWriterInputWithMediaType:outputSettings:sourceFormatHint:'; { available in 10_8, 6_0 }
  17. function initWithMediaType_outputSettings (mediaType: NSString; outputSettings: NSDictionary): instancetype; message 'initWithMediaType:outputSettings:';
  18. function initWithMediaType_outputSettings_sourceFormatHint (mediaType: NSString; outputSettings: NSDictionary; sourceFormatHint: CMFormatDescriptionRef): instancetype; message 'initWithMediaType:outputSettings:sourceFormatHint:'; { available in 10_8, 6_0 }
  19. function mediaType: NSString; message 'mediaType';
  20. function outputSettings: NSDictionary; message 'outputSettings';
  21. function sourceFormatHint: CMFormatDescriptionRef; message 'sourceFormatHint';
  22. procedure setMetadata(newValue: NSArray); message 'setMetadata:';
  23. function metadata: NSArray; message 'metadata';
  24. function isReadyForMoreMediaData: ObjCBOOL; message 'isReadyForMoreMediaData';
  25. procedure setExpectsMediaDataInRealTime(newValue: ObjCBOOL); message 'setExpectsMediaDataInRealTime:';
  26. function expectsMediaDataInRealTime: ObjCBOOL; message 'expectsMediaDataInRealTime';
  27. procedure requestMediaDataWhenReadyOnQueue_usingBlock (queue: dispatch_queue_t; block: OpaqueCBlock); message 'requestMediaDataWhenReadyOnQueue:usingBlock:';
  28. function appendSampleBuffer (sampleBuffer: CMSampleBufferRef): ObjCBOOL; message 'appendSampleBuffer:';
  29. procedure markAsFinished; message 'markAsFinished';
  30. end;
  31. type
  32. AVAssetWriterInputLanguageProperties = objccategory external (AVAssetWriterInput)
  33. procedure setLanguageCode(newValue: NSString); message 'setLanguageCode:';
  34. function languageCode: NSString; message 'languageCode';
  35. procedure setExtendedLanguageTag(newValue: NSString); message 'setExtendedLanguageTag:';
  36. function extendedLanguageTag: NSString; message 'extendedLanguageTag';
  37. end;
  38. type
  39. AVAssetWriterInputPropertiesForVisualCharacteristic = objccategory external (AVAssetWriterInput)
  40. procedure setNaturalSize(newValue: CGSize); message 'setNaturalSize:';
  41. function naturalSize: CGSize; message 'naturalSize';
  42. procedure setTransform(newValue: CGAffineTransform); message 'setTransform:';
  43. function transform: CGAffineTransform; message 'transform';
  44. end;
  45. type
  46. AVAssetWriterInputPropertiesForAudibleCharacteristic = objccategory external (AVAssetWriterInput)
  47. procedure setPreferredVolume(newValue: single); message 'setPreferredVolume:';
  48. function preferredVolume: single; message 'preferredVolume';
  49. end;
  50. type
  51. AVAssetWriterInputFileTypeSpecificProperties = objccategory external (AVAssetWriterInput)
  52. procedure setMarksOutputTrackAsEnabled(newValue: ObjCBOOL); message 'setMarksOutputTrackAsEnabled:';
  53. function marksOutputTrackAsEnabled: ObjCBOOL; message 'marksOutputTrackAsEnabled';
  54. procedure setMediaTimeScale(newValue: CMTimeScale); message 'setMediaTimeScale:';
  55. function mediaTimeScale: CMTimeScale; message 'mediaTimeScale';
  56. procedure setPreferredMediaChunkDuration(newValue: CMTime); message 'setPreferredMediaChunkDuration:';
  57. function preferredMediaChunkDuration: CMTime; message 'preferredMediaChunkDuration';
  58. procedure setPreferredMediaChunkAlignment(newValue: NSInteger); message 'setPreferredMediaChunkAlignment:';
  59. function preferredMediaChunkAlignment: NSInteger; message 'preferredMediaChunkAlignment';
  60. procedure setSampleReferenceBaseURL(newValue: NSURL); message 'setSampleReferenceBaseURL:';
  61. function sampleReferenceBaseURL: NSURL; message 'sampleReferenceBaseURL';
  62. end;
  63. type
  64. AVAssetWriterInputTrackAssociations = objccategory external (AVAssetWriterInput)
  65. function canAddTrackAssociationWithTrackOfInput_type (input: AVAssetWriterInput; trackAssociationType: NSString): ObjCBOOL; message 'canAddTrackAssociationWithTrackOfInput:type:'; { available in 10_9, 7_0 }
  66. procedure addTrackAssociationWithTrackOfInput_type (input: AVAssetWriterInput; trackAssociationType: NSString); message 'addTrackAssociationWithTrackOfInput:type:'; { available in 10_9, 7_0 }
  67. end;
  68. type
  69. AVAssetWriterInputMultiPass = objccategory external (AVAssetWriterInput)
  70. procedure setPerformsMultiPassEncodingIfSupported(newValue: ObjCBOOL); message 'setPerformsMultiPassEncodingIfSupported:';
  71. function performsMultiPassEncodingIfSupported: ObjCBOOL; message 'performsMultiPassEncodingIfSupported';
  72. function canPerformMultiplePasses: ObjCBOOL; message 'canPerformMultiplePasses';
  73. function currentPassDescription: AVAssetWriterInputPassDescription; message 'currentPassDescription';
  74. procedure respondToEachPassDescriptionOnQueue_usingBlock (queue: dispatch_queue_t; block: dispatch_block_t); message 'respondToEachPassDescriptionOnQueue:usingBlock:'; { available in 10_10, 8_0 }
  75. procedure markCurrentPassAsFinished; message 'markCurrentPassAsFinished'; { available in 10_10, 8_0 }
  76. end;
  77. type
  78. AVAssetWriterInputPassDescription = objcclass external (NSObject)
  79. private
  80. _internal: AVAssetWriterInputPassDescriptionInternal;
  81. public
  82. function sourceTimeRanges: NSArray; message 'sourceTimeRanges';
  83. end;
  84. type
  85. AVAssetWriterInputPixelBufferAdaptor = objcclass external (NSObject)
  86. private
  87. _internal: AVAssetWriterInputPixelBufferAdaptorInternal;
  88. public
  89. class function assetWriterInputPixelBufferAdaptorWithAssetWriterInput_sourcePixelBufferAttributes (input: AVAssetWriterInput; sourcePixelBufferAttributes: NSDictionary): instancetype; message 'assetWriterInputPixelBufferAdaptorWithAssetWriterInput:sourcePixelBufferAttributes:';
  90. function initWithAssetWriterInput_sourcePixelBufferAttributes (input: AVAssetWriterInput; sourcePixelBufferAttributes: NSDictionary): instancetype; message 'initWithAssetWriterInput:sourcePixelBufferAttributes:';
  91. function assetWriterInput: AVAssetWriterInput; message 'assetWriterInput';
  92. function sourcePixelBufferAttributes: NSDictionary; message 'sourcePixelBufferAttributes';
  93. function pixelBufferPool: CVPixelBufferPoolRef; message 'pixelBufferPool';
  94. function appendPixelBuffer_withPresentationTime (pixelBuffer: CVPixelBufferRef; presentationTime: CMTime): ObjCBOOL; message 'appendPixelBuffer:withPresentationTime:';
  95. end;
  96. type
  97. AVAssetWriterInputMetadataAdaptor = objcclass external (NSObject)
  98. private
  99. _internal: AVAssetWriterInputMetadataAdaptorInternal;
  100. public
  101. class function assetWriterInputMetadataAdaptorWithAssetWriterInput (input: AVAssetWriterInput): instancetype; message 'assetWriterInputMetadataAdaptorWithAssetWriterInput:';
  102. function initWithAssetWriterInput (input: AVAssetWriterInput): instancetype; message 'initWithAssetWriterInput:';
  103. function assetWriterInput: AVAssetWriterInput; message 'assetWriterInput';
  104. function appendTimedMetadataGroup (timedMetadataGroup: AVTimedMetadataGroup): ObjCBOOL; message 'appendTimedMetadataGroup:';
  105. end;
  106. {$endif}