10 : Image(data_start, width, height, type),
11 animation_data_start_(data_start),
13 animation_frame_count_(animation_frame_count),
15 loop_end_frame_(animation_frame_count_),
17 loop_current_iteration_(1) {}
51 unsigned abs_frame = abs(frame);
int get_current_frame() const
void set_frame(int frame)
Selects a specific frame within the animation.
uint32_t animation_frame_count_
uint32_t get_width_stride() const
Return the stride of the image in bytes, that is, the distance in bytes between two consecutive rows ...
uint32_t get_animation_frame_count() const
int loop_current_iteration_
uint32_t loop_start_frame_
void update_data_start_()
const uint8_t * animation_data_start_
void set_loop(uint32_t start_frame, uint32_t end_frame, int count)
Animation(const uint8_t *data_start, int width, int height, uint32_t animation_frame_count, image::ImageType type)
const uint8_t * data_start_
Implementation of SPI Controller mode.