feat(decoder): add a name field to decoder to facilitate debugging (#6037)

This commit is contained in:
Benign X
2024-04-09 17:31:07 +08:00
committed by GitHub
parent 4d0c029827
commit 500e16e968
10 changed files with 50 additions and 0 deletions

View File

@@ -19,6 +19,8 @@
* DEFINES
*********************/
#define DECODER_NAME "VG_LITE"
/* VG_LITE_INDEX1, 2, and 4 require endian flipping + bit flipping,
* so for simplicity, they are uniformly converted to I8 for display.
*/
@@ -65,6 +67,8 @@ void lv_vg_lite_decoder_init(void)
lv_image_decoder_set_info_cb(decoder, decoder_info);
lv_image_decoder_set_open_cb(decoder, decoder_open);
lv_image_decoder_set_close_cb(decoder, decoder_close);
decoder->name = DECODER_NAME;
}
void lv_vg_lite_decoder_deinit(void)