[][src]Function mupdf_sys::fz_open_predict

pub unsafe extern "C" fn fz_open_predict(
    ctx: *mut fz_context,
    chain: *mut fz_stream,
    predictor: c_int,
    columns: c_int,
    colors: c_int,
    bpc: c_int
) -> *mut fz_stream

predict filter performs pixel prediction on data read from the chained filter.

predictor: 1 = copy, 2 = tiff, other = inline PNG predictor

columns: width of image in pixels

colors: number of components.

bpc: bits per component (typically 8)