Function grokj2k_sys::grk_decompress_set_window[][src]

pub unsafe extern "C" fn grk_decompress_set_window(
    codec: *mut grk_codec,
    start_x: u32,
    start_y: u32,
    end_x: u32,
    end_y: u32
) -> bool
Expand description

Set the given area to be decompressed. This function should be called right after grk_decompress_read_header is called, and before any tile header is read.

@param codec JPEG 2000 code stream. @param start_x left position of the rectangle to decompress (in image coordinates). @param end_x the right position of the rectangle to decompress (in image coordinates). @param start_y up position of the rectangle to decompress (in image coordinates). @param end_y bottom position of the rectangle to decompress (in image coordinates).

@return true if the area could be set.