Type Definition mupdf_sys::fz_tune_image_decode_fn

source ·
pub type fz_tune_image_decode_fn = Option<unsafe extern "C" fn(arg: *mut c_void, w: c_int, h: c_int, l2factor: c_int, subarea: *mut fz_irect)>;
Expand description

Given the width and height of an image, the subsample factor, and the subarea of the image actually required, the caller can decide whether to decode the whole image or just a subarea.

arg: The caller supplied opaque argument.

w, h: The width/height of the complete image.

l2factor: The log2 factor for subsampling (i.e. image will be decoded to (w>>l2factor, h>>l2factor)).

subarea: The actual subarea required for the current operation. The tuning function is allowed to increase this in size if required.