Creates a CMVideoFormatDescription from a big-endian ImageDescription data structure in a CMBlockBuffer.
SDKs
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 6.0+
Framework
- Core Media
Declaration
OSStatus CMVideoFormatDescriptionCreateFromBigEndianImageDescriptionBlockBuffer(CFAllocator Ref allocator, CMBlock Buffer Ref imageDescriptionBlockBuffer, CFString Encoding stringEncoding, CMImage Description Flavor flavor, CMVideo Format Description Ref _Nullable *formatDescriptionOut);
Parameters
allocator
Allocator to use for allocating the
CMVideo
object. May beFormat Description NULL
.imageDescriptionBlockBuffer
CMBlockBuffer containing ImageDescription data structure in big-endian byte ordering.
imageDescriptionStringEncoding
Pass
CFString
or GetApplicationTextEncoding.Get System Encoding imageDescriptionFlavor
k
constant orCMImage Description Flavor NULL
for QuickTimeMovie flavor.videoFormatDescriptionOut
Receives new
CMVideo
.Format Description