chore(image): remove not used frame_id para for decoder (#4933)
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user