CMTextFormatDescriptionCreateFromBigEndianTextDescriptionBlockBuffer

Function CMTextFormatDescriptionCreateFromBigEndianTextDescriptionBlockBuffer 

Source
pub unsafe extern "C-unwind" fn CMTextFormatDescriptionCreateFromBigEndianTextDescriptionBlockBuffer(
    allocator: Option<&CFAllocator>,
    text_description_block_buffer: &CMBlockBuffer,
    flavor: Option<&CMTextDescriptionFlavor>,
    media_type: CMMediaType,
    format_description_out: NonNull<*const CMTextFormatDescription>,
) -> i32
Available on crate features CMBlockBuffer and CMFormatDescription and CMFormatDescriptionBridge only.
Expand description

Creates a CMTextFormatDescription from a big-endian TextDescription data structure in a CMBlockBuffer.

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

Parameter textDescriptionBlockBuffer: CMBlockBuffer containing TextDescription data structure in big-endian byte ordering.

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

Parameter mediaType: Pass kCMMediaType_Text or kCMMediaType_Subtitle.

Parameter formatDescriptionOut: Receives new CMTextFormatDescription.

ยงSafety

format_description_out must be a valid pointer.