[−][src]Function mupdf_sys::fz_new_image_from_compressed_buffer
pub unsafe extern "C" fn fz_new_image_from_compressed_buffer(
ctx: *mut fz_context,
w: c_int,
h: c_int,
bpc: c_int,
colorspace: *mut fz_colorspace,
xres: c_int,
yres: c_int,
interpolate: c_int,
imagemask: c_int,
decode: *mut f32,
colorkey: *mut c_int,
buffer: *mut fz_compressed_buffer,
mask: *mut fz_image
) -> *mut fz_image
Create an image based on the data in the supplied compressed buffer.
w,h: Width and height of the created image.
bpc: Bits per component.
colorspace: The colorspace (determines the number of components, and any color conversions required while decoding).
xres, yres: The X and Y resolutions respectively.
interpolate: 1 if interpolation should be used when decoding this image, 0 otherwise.
imagemask: 1 if this is an imagemask (i.e. transparency bitmap mask), 0 otherwise.
decode: NULL, or a pointer to to a decode array. The default decode array is [0 1] (repeated n times, for n color components).
colorkey: NULL, or a pointer to a colorkey array. The default colorkey array is [0 255] (repeated n times, for n color components).
buffer: Buffer of compressed data and compression parameters. Ownership of this reference is passed in.
mask: NULL, or another image to use as a mask for this one. A new reference is taken to this image. Supplying a masked image as a mask to another image is illegal!