Contents

CMVideoFormatDescriptionCopyAsBigEndianImageDescriptionBlockBuffer(allocator:videoFormatDescription:stringEncoding:flavor:blockBufferOut:)

Copies the contents of a video format description to a buffer in big-endian byte ordering.

Declaration

func CMVideoFormatDescriptionCopyAsBigEndianImageDescriptionBlockBuffer(allocator: CFAllocator?, videoFormatDescription: CMVideoFormatDescription, stringEncoding: CFStringEncoding, flavor: CMImageDescriptionFlavor?, blockBufferOut: UnsafeMutablePointer<CMBlockBuffer?>) -> OSStatus

Parameters

  • allocator:

    Allocator to use for allocating the CMBlockBuffer object. May be NULL.

  • videoFormatDescription:

    The CMVideoFormatDescription to be copied.

  • stringEncoding:

    Pass Cfstringgetsystemencoding() or GetApplicationTextEncoding.

  • flavor:

    kCMImageDescriptionFlavor constant or NULL for QuickTimeMovie flavor.

  • blockBufferOut:

    Receives a new CMBlockBuffer containing ImageDescription data structure in big-endian byte ordering.

Discussion

On return, the caller owns the returned CMBlockBuffer, and must release it when done with it.

See Also

Working with Video Descriptions