opj_decode_tile_data

Function opj_decode_tile_data 

Source
pub unsafe extern "C" fn opj_decode_tile_data(
    p_codec: *mut opj_codec_t,
    p_tile_index: OPJ_UINT32,
    p_data: *mut OPJ_BYTE,
    p_data_size: OPJ_UINT32,
    p_stream: *mut opj_stream_t,
) -> OPJ_BOOL
Expand description

Reads a tile data. This function is compulsory and allows one to decode tile data. opj_read_tile_header should be called before. The user may need to refer to the image got by opj_read_header to understand the size being taken by the tile. Note: opj_decode_tile_data() should not be used together with opj_set_decoded_components().

§Arguments

  • p_codec - the jpeg2000 codec.
  • p_tile_index - the index of the tile being decoded, this should be the value set by opj_read_tile_header.
  • p_data - pointer to a memory block that will hold the decoded data.
  • p_data_size - size of p_data. p_data_size should be bigger or equal to the value set by opj_read_tile_header.
  • p_stream - the stream to decode.

§Returns

true if the data could be decoded.