MCPcopy Create free account
hub / github.com/ImageOptim/libimagequant / liq_image_create_custom_impl

Function liq_image_create_custom_impl

src/capi.rs:40–42  ·  view source on GitHub ↗
(attr: &Attributes, row_callback: Box<RowCallback<'rows>>, width: u32, height: u32, gamma: f64)

Source from the content-addressed store, hash-verified

38
39#[must_use]
40pub unsafe fn liq_image_create_custom_impl<'rows>(attr: &Attributes, row_callback: Box<RowCallback<'rows>>, width: u32, height: u32, gamma: f64) -> Option<Image<'rows>> {
41 Image::new_internal(attr, crate::rows::PixelsSource::Callback(row_callback), width, height, gamma).ok()
42}
43
44pub unsafe fn liq_write_remapped_image_impl(result: &mut QuantizationResult, input_image: &mut Image, buffer_bytes: &mut [MaybeUninit<u8>]) -> Result<(), Error> {
45 let rows = RowBitmapMut::new_contiguous(buffer_bytes, input_image.width());

Callers 1

liq_image_create_customFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected