CMTimeCodeFormatDescriptionCopyAsBigEndianTimeCodeDescriptionBlockBuffer

Function CMTimeCodeFormatDescriptionCopyAsBigEndianTimeCodeDescriptionBlockBuffer 

Source
pub unsafe extern "C-unwind" fn CMTimeCodeFormatDescriptionCopyAsBigEndianTimeCodeDescriptionBlockBuffer(
    allocator: Option<&CFAllocator>,
    time_code_format_description: &CMTimeCodeFormatDescription,
    flavor: Option<&CMTimeCodeDescriptionFlavor>,
    block_buffer_out: NonNull<*mut CMBlockBuffer>,
) -> i32
Available on crate features CMBlockBuffer and CMFormatDescription and CMFormatDescriptionBridge only.
Expand description

Copies the contents of a CMTimeCodeFormatDescription to a CMBlockBuffer in big-endian byte ordering.

On return, the caller owns the returned CMBlockBuffer, and must release it when done with it. Note that 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.

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

Parameter timeCodeFormatDescription: CMTimeCodeFormatDescription to be copied.

Parameter flavor: Reserved for future use. Pass NULL for QuickTime Movie or ISO flavor.

Parameter blockBufferOut: Receives new CMBlockBuffer containing TimeCodeDescription data structure in big-endian byte ordering.

ยงSafety

block_buffer_out must be a valid pointer.