[][src]Function mp4parse_capi::mp4parse_avif_get_image

#[no_mangle]pub unsafe extern "C" fn mp4parse_avif_get_image(
    parser: *mut Mp4parseAvifParser,
    avif_image: *mut AvifImage
) -> Mp4parseStatus

Return a pointer to the primary item parsed by previous mp4parse_avif_new() call.

Safety

This function is unsafe because it dereferences both the parser and avif_image raw pointers passed into it. Callers should ensure the parser pointer points to a valid Mp4parseAvifParser, and that the avif_image pointer points to a valid AvifImage. If there was not a previous successful call to mp4parse_avif_read(), no guarantees are made as to the state of avif_image. If avif_image.alpha_item is set to a positive length and non-null data, then the avif_image contains an valid alpha channel data. Otherwise, the image is opaque.