Function av_dynamic_hdr_plus_to_t35

pub unsafe extern "C" fn av_dynamic_hdr_plus_to_t35(
    s: *const AVDynamicHDRPlus,
    data: *mut *mut u8,
    size: *mut usize,
) -> i32
Expand description

Serialize dynamic HDR10+ metadata to a user data registered ITU-T T.35 buffer, excluding the first 48 bytes of the header, and beginning with the application mode. @param s A pointer containing the decoded AVDynamicHDRPlus structure. @param[in,out] data A pointer to pointer to a byte buffer to be filled with the serialized metadata. If *data is NULL, a buffer be will be allocated and a pointer to it stored in its place. The caller assumes ownership of the buffer. May be NULL, in which case the function will only store the required buffer size in *size. @param[in,out] size A pointer to a size to be set to the returned buffer’s size. If *data is not NULL, *size must contain the size of the input buffer. May be NULL only if *data is NULL.

@return >= 0 on success. Otherwise, returns the appropriate AVERROR.