Function mupdf_sys::fz_open_dctd[][src]

pub unsafe extern "C" fn fz_open_dctd(
    ctx: *mut fz_context,
    chain: *mut fz_stream,
    color_transform: c_int,
    l2factor: c_int,
    jpegtables: *mut fz_stream
) -> *mut fz_stream

dctd filter performs DCT (JPEG) decoding of data read from the chained filter.

color_transform implements the PDF color_transform option; use -1 (unset) as a default.

For subsampling on decode, set l2factor to the log2 of the reduction required (therefore 0 = full size decode).

jpegtables is an optional stream from which the JPEG tables can be read. Use NULL if not required.