opj_read_header

Function 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.

§Arguments

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

§Returns

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