mp4parse_avif_get_image

Function mp4parse_avif_get_image 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn mp4parse_avif_get_image( parser: *const Mp4parseAvifParser, avif_image: *mut Mp4parseAvifImage, ) -> Mp4parseStatus
Expand description

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 Mp4parseAvifImage. 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_image.coded_data is set to a positive length and non-null data, then the avif_image contains a valid alpha channel data. Otherwise, the image is opaque.