Function openjpeg_sys::opj_read_header

source ยท
pub unsafe extern "C" fn opj_read_header(
    p_stream: *mut opj_stream_t,
    p_codec: *mut opj_codec_t,
    p_image: *mut *mut opj_image_t,
) -> OPJ_BOOL
Expand description

Decodes an image header.

  • p_stream โ€” the jpeg2000 stream.
  • p_codec โ€” the jpeg2000 codec to read.
  • p_image โ€” the image structure initialized with the characteristics of encoded image.

@return true if the main header of the codestream and the JP2 header is correctly read.