Function libnotcurses_sys::ffi::ncvisual_from_palidx [−][src]
pub unsafe extern "C" fn ncvisual_from_palidx(
data: *const c_void,
rows: c_int,
rowstride: c_int,
cols: c_int,
palsize: c_int,
pstride: c_int,
palette: *const u32
) -> *mut ncvisual
Expand description
ncvisual_from_rgba(), but ‘data’ is ‘pstride’-byte palette-indexed pixels, arranged in ‘rows’ lines of ‘rowstride’ bytes each, composed of ‘cols’ pixels. ‘palette’ is an array of at least ‘palsize’ ncchannels.