[−][src]Function lvgl::widgets::img::decoder_built_in_read_line
pub fn decoder_built_in_read_line(
decoder: *mut lv_img_decoder_t,
dsc: *mut lv_img_decoder_dsc_t,
x: lv_coord_t,
y: lv_coord_t,
len: lv_coord_t,
buf: *mut u8
) -> MynewtResult<lv_res_t>
Decode len
pixels starting from the given x
, y
coordinates and store them in buf
.
Required only if the "open" function can't return with the whole decoded pixel array.
decoder
: pointer to the decoder the function associated withdsc
: pointer to decoder descriptorx
: start x coordinatey
: start y coordinatelen
: number of pixels to decodebuf
: a buffer to store the decoded pixels Return: LV_RES_OK: ok; LV_RES_INV: failed