[−][src]Type Definition lvgl::widgets::img::lv_img_decoder_read_line_f_t
type lv_img_decoder_read_line_f_t = Option<unsafe extern "C" fn(decoder: *mut _lv_img_decoder, dsc: *mut _lv_img_decoder_dsc, x: lv_coord_t, y: lv_coord_t, len: lv_coord_t, buf: *mut u8) -> 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