OLD | NEW |
1 //------------------------------------------------ | 1 //------------------------------------------------ |
2 // Functions from CoreMedia.framework used in VTVideoDecodeAccelerator. | 2 // Functions from CoreMedia.framework used in VTVideoDecodeAccelerator. |
3 //------------------------------------------------ | 3 //------------------------------------------------ |
4 OSStatus CMBlockBufferAssureBlockMemory(CMBlockBufferRef theBuffer); | 4 OSStatus CMBlockBufferAssureBlockMemory(CMBlockBufferRef theBuffer); |
5 OSStatus CMBlockBufferCreateWithMemoryBlock(CFAllocatorRef structureAllocator, v
oid *memoryBlock, size_t blockLength, CFAllocatorRef blockAllocator, const CMBlo
ckBufferCustomBlockSource *customBlockSource, size_t offsetToData, size_t dataLe
ngth, CMBlockBufferFlags flags, CMBlockBufferRef *newBBufOut); | 5 OSStatus CMBlockBufferCreateWithMemoryBlock(CFAllocatorRef structureAllocator, v
oid *memoryBlock, size_t blockLength, CFAllocatorRef blockAllocator, const CMBlo
ckBufferCustomBlockSource *customBlockSource, size_t offsetToData, size_t dataLe
ngth, CMBlockBufferFlags flags, CMBlockBufferRef *newBBufOut); |
6 OSStatus CMBlockBufferReplaceDataBytes(const void *sourceBytes, CMBlockBufferRef
destinationBuffer, size_t offsetIntoDestination, size_t dataLength); | 6 OSStatus CMBlockBufferReplaceDataBytes(const void *sourceBytes, CMBlockBufferRef
destinationBuffer, size_t offsetIntoDestination, size_t dataLength); |
7 OSStatus CMSampleBufferCreate(CFAllocatorRef allocator, CMBlockBufferRef dataBuf
fer, Boolean dataReady, CMSampleBufferMakeDataReadyCallback makeDataReadyCallbac
k, void *makeDataReadyRefcon, CMFormatDescriptionRef formatDescription, CMItemCo
unt numSamples, CMItemCount numSampleTimingEntries, const CMSampleTimingInfo *sa
mpleTimingArray, CMItemCount numSampleSizeEntries, const size_t *sampleSizeArray
, CMSampleBufferRef *sBufOut); | 7 OSStatus CMSampleBufferCreate(CFAllocatorRef allocator, CMBlockBufferRef dataBuf
fer, Boolean dataReady, CMSampleBufferMakeDataReadyCallback makeDataReadyCallbac
k, void *makeDataReadyRefcon, CMFormatDescriptionRef formatDescription, CMItemCo
unt numSamples, CMItemCount numSampleTimingEntries, const CMSampleTimingInfo *sa
mpleTimingArray, CMItemCount numSampleSizeEntries, const size_t *sampleSizeArray
, CMSampleBufferRef *sBufOut); |
8 OSStatus CMVideoFormatDescriptionCreateFromH264ParameterSets(CFAllocatorRef allo
cator, size_t parameterSetCount, const uint8_t *const *parameterSetPointers, con
st size_t *parameterSetSizes, int NALUnitHeaderLength, CMFormatDescriptionRef *f
ormatDescriptionOut); | 8 OSStatus CMVideoFormatDescriptionCreateFromH264ParameterSets(CFAllocatorRef allo
cator, size_t parameterSetCount, const uint8_t *const *parameterSetPointers, con
st size_t *parameterSetSizes, int NALUnitHeaderLength, CMFormatDescriptionRef *f
ormatDescriptionOut); |
9 CMVideoDimensions CMVideoFormatDescriptionGetDimensions(CMVideoFormatDescription
Ref videoDesc); | 9 CMVideoDimensions CMVideoFormatDescriptionGetDimensions(CMVideoFormatDescription
Ref videoDesc); |
10 | 10 |
11 //------------------------------------------------ | 11 //------------------------------------------------ |
12 // Functions from VideoToolbox.framework used in VTVideoDecodeAccelerator. | 12 // Functions from VideoToolbox.framework used in VTVideoDecodeAccelerator. |
13 //------------------------------------------------ | 13 //------------------------------------------------ |
14 Boolean VTDecompressionSessionCanAcceptFormatDescription(VTDecompressionSessionR
ef session, CMFormatDescriptionRef newFormatDesc); | 14 Boolean VTDecompressionSessionCanAcceptFormatDescription(VTDecompressionSessionR
ef session, CMFormatDescriptionRef newFormatDesc); |
15 OSStatus VTDecompressionSessionCreate(CFAllocatorRef allocator, CMVideoFormatDes
criptionRef videoFormatDescription, CFDictionaryRef videoDecoderSpecification, C
FDictionaryRef destinationImageBufferAttributes, const VTDecompressionOutputCall
backRecord *outputCallback, VTDecompressionSessionRef *decompressionSessionOut); | 15 OSStatus VTDecompressionSessionCreate(CFAllocatorRef allocator, CMVideoFormatDes
criptionRef videoFormatDescription, CFDictionaryRef videoDecoderSpecification, C
FDictionaryRef destinationImageBufferAttributes, const VTDecompressionOutputCall
backRecord *outputCallback, VTDecompressionSessionRef *decompressionSessionOut); |
16 OSStatus VTDecompressionSessionDecodeFrame(VTDecompressionSessionRef session, CM
SampleBufferRef sampleBuffer, VTDecodeFrameFlags decodeFlags, void *sourceFrameR
efCon, VTDecodeInfoFlags *infoFlagsOut); | 16 OSStatus VTDecompressionSessionDecodeFrame(VTDecompressionSessionRef session, CM
SampleBufferRef sampleBuffer, VTDecodeFrameFlags decodeFlags, void *sourceFrameR
efCon, VTDecodeInfoFlags *infoFlagsOut); |
17 OSStatus VTDecompressionSessionWaitForAsynchronousFrames(VTDecompressionSessionR
ef session); | 17 OSStatus VTDecompressionSessionWaitForAsynchronousFrames(VTDecompressionSessionR
ef session); |
18 OSStatus VTSessionCopyProperty(VTSessionRef session, CFStringRef propertyKey, CF
AllocatorRef allocator, void *propertyValueOut); | 18 OSStatus VTSessionCopyProperty(VTSessionRef session, CFStringRef propertyKey, CF
AllocatorRef allocator, void *propertyValueOut); |
OLD | NEW |