Function libnotcurses_sys::ffi::ncvisual_from_bgra [−][src]
pub unsafe extern "C" fn ncvisual_from_bgra(
bgra: *const c_void,
rows: c_int,
rowstride: c_int,
cols: c_int
) -> *mut ncvisual
Expand description
ncvisual_from_rgba(), but ‘bgra’ is arranged as BGRA. note that this is a byte-oriented layout, despite being bunched in 32-bit pixels; the lowest memory address ought be B, and A is reached by adding 3 to that address.