(attr: &liq_attr, rows: *const *const RGBA, width: c_uint, height: c_uint, gamma: f64)
| 610 | #[no_mangle] |
| 611 | #[inline(never)] |
| 612 | pub unsafe extern "C" fn liq_image_create_rgba_rows<'rows>(attr: &liq_attr, rows: *const *const RGBA, width: c_uint, height: c_uint, gamma: f64) -> Option<Box<liq_image<'rows>>> { |
| 613 | if !check_image_size(attr, width, height) { return None; } |
| 614 | if rows.is_null() { return None; } |
| 615 | let rows = std::slice::from_raw_parts(rows, height as _); |
| 616 | liq_image_create_rgba_rows_impl(&attr.inner, rows, width as _, height as _, gamma) |
| 617 | .map(move |inner| Box::new(liq_image { |
| 618 | magic_header: LIQ_IMAGE_MAGIC, |
| 619 | inner: ManuallyDrop::new(inner), |
| 620 | c_api_free: attr.c_api_free, |
| 621 | })) |
| 622 | } |
| 623 | |
| 624 | #[no_mangle] |
| 625 | #[inline(never)] |
nothing calls this directly
no test coverage detected