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

Function liq_write_remapped_image_rows_impl

src/capi.rs:49–52  ·  view source on GitHub ↗
(result: &mut QuantizationResult, input_image: &mut Image, rows: &mut [*mut MaybeUninit<u8>])

Source from the content-addressed store, hash-verified

47}
48
49pub unsafe fn liq_write_remapped_image_rows_impl(result: &mut QuantizationResult, input_image: &mut Image, rows: &mut [*mut MaybeUninit<u8>]) -> Result<(), Error> {
50 let rows = RowBitmapMut::new(rows, input_image.width());
51 result.write_remapped_image_rows_internal(input_image, rows)
52}
53
54/// Not recommended
55pub unsafe fn liq_image_set_memory_ownership_impl(image: &mut Image<'_>, own_rows: bool, own_pixels: bool, free_fn: unsafe extern "C" fn(*mut std::os::raw::c_void)) -> Result<(), Error> {

Callers 1

Calls 3

newFunction · 0.85
widthMethod · 0.45

Tested by

no test coverage detected