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.