[][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 with
  • dsc: pointer to decoder descriptor
  • x: start x coordinate
  • y: start y coordinate
  • len: number of pixels to decode
  • buf: a buffer to store the decoded pixels Return: LV_RES_OK: ok; LV_RES_INV: failed