1 /** 2 * @file lv_rlottie_private.h 3 * 4 */ 5 6 #ifndef LV_RLOTTIE_PRIVATE_H 7 #define LV_RLOTTIE_PRIVATE_H 8 9 #ifdef __cplusplus 10 extern "C" { 11 #endif 12 13 /********************* 14 * INCLUDES 15 *********************/ 16 17 #include "lv_rlottie.h" 18 #if LV_USE_RLOTTIE 19 #include "../../widgets/image/lv_image_private.h" 20 21 /********************* 22 * DEFINES 23 *********************/ 24 25 /********************** 26 * TYPEDEFS 27 **********************/ 28 29 /** definition in lottieanimation_capi.c */ 30 struct Lottie_Animation_S; 31 32 struct _lv_rlottie_t { 33 lv_image_t img_ext; 34 struct Lottie_Animation_S * animation; 35 lv_timer_t * task; 36 lv_image_dsc_t imgdsc; 37 size_t total_frames; 38 size_t current_frame; 39 size_t framerate; 40 uint32_t * allocated_buf; 41 size_t allocated_buffer_size; 42 size_t scanline_width; 43 lv_rlottie_ctrl_t play_ctrl; 44 size_t dest_frame; 45 }; 46 47 /********************** 48 * GLOBAL PROTOTYPES 49 **********************/ 50 51 /********************** 52 * MACROS 53 **********************/ 54 55 #endif /*LV_USE_RLOTTIE*/ 56 57 #ifdef __cplusplus 58 } /*extern "C"*/ 59 #endif 60 61 #endif /*LV_RLOTTIE_PRIVATE_H*/ 62