Copies the contents of a CMTimeCodeFormatDescription to a CMBlockBuffer in big-endian byte ordering.
SDKs
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 6.0+
Framework
- Core Media
Declaration
OSStatus CMTimeCodeFormatDescriptionCopyAsBigEndianTimeCodeDescriptionBlockBuffer(CFAllocator Ref allocator, CMTime Code Format Description Ref timeCodeFormatDescription, CMTime Code Description Flavor flavor, CMBlock Buffer Ref _Nullable *blockBufferOut);
Parameters
allocator
Allocator to use for allocating the CMBlockBuffer object. May be NULL.
timeCodeFormatDescription
CMTimeCodeFormatDescription to be copied.
timeCodeDescriptionFlavor
Reserved for future use. Pass NULL for QuickTime Movie or ISO flavor.
timeCodeDescriptionBlockBufferOut
Receives new CMBlockBuffer containing TimeCodeDescription data structure in big-endian byte ordering.
Discussion
On return, the caller owns the returned CMBlockBuffer, and must release it when done with it.
Note
The dataRefIndex field of the SampleDescription is intentionally filled with garbage values (0xFFFF). The caller must overwrite these values with a valid dataRefIndex if writing the SampleDescription to a QuickTime/ISO file.