diff --git a/docs/overview/img.rst b/docs/overview/img.rst index 27c6c54b7..1c8e0b23b 100644 --- a/docs/overview/img.rst +++ b/docs/overview/img.rst @@ -335,8 +335,7 @@ manually too. Create an :cpp:type:`lv_image_decoder_dsc_t` variable to describe the decoding session and call :cpp:func:`lv_image_decoder_open`. The ``color`` parameter is used only with ``LV_COLOR_FORMAT_A1/2/4/8`` -images to tell color of the image. ``frame_id`` can be used if the image -to open is an animation. +images to tell color of the image. .. code:: c diff --git a/src/draw/lv_draw_image.h b/src/draw/lv_draw_image.h index 176d73e85..fe7a54962 100644 --- a/src/draw/lv_draw_image.h +++ b/src/draw/lv_draw_image.h @@ -53,7 +53,6 @@ typedef struct _lv_draw_image_dsc_t { lv_opa_t opa; lv_blend_mode_t blend_mode : 4; - int32_t frame_id; uint16_t antialias : 1; uint16_t tile : 1; lv_draw_image_sup_t * sup; diff --git a/src/draw/lv_image_decoder.c b/src/draw/lv_image_decoder.c index 580e5f240..17297084e 100644 --- a/src/draw/lv_image_decoder.c +++ b/src/draw/lv_image_decoder.c @@ -102,7 +102,6 @@ lv_result_t lv_image_decoder_open(lv_image_decoder_dsc_t * dsc, const void * src } dsc->src_type = src_type; - if(args) dsc->frame_id = args->frame_id; if(dsc->src_type == LV_IMAGE_SRC_FILE) { size_t fnlen = lv_strlen(src); diff --git a/src/draw/lv_image_decoder.h b/src/draw/lv_image_decoder.h index 578641150..7db6f2509 100644 --- a/src/draw/lv_image_decoder.h +++ b/src/draw/lv_image_decoder.h @@ -59,7 +59,6 @@ struct _lv_cache_entry_t; * all field are zero or false. */ typedef struct _lv_image_decoder_args_t { - int32_t frame_id; /*A not use args*/ bool stride_align; /*Whether stride should be aligned*/ bool premultiply; /*Whether image should be premultiplied or not after decoding*/ bool no_cache; /*Whether this image should be kept out of cache*/ @@ -127,9 +126,6 @@ typedef struct _lv_image_decoder_dsc_t { /**The image source. A file path like "S:my_img.png" or pointer to an `lv_image_dsc_t` variable*/ const void * src; - /**Frame of the image, using with animated images*/ - int32_t frame_id; - /**Type of the source: file or variable. Can be set in `open` function if required*/ lv_image_src_t src_type;