#include <animation.h>
|
| | Animation (const uint8_t *data_start, int width, int height, uint32_t animation_frame_count, image::ImageType type, image::Transparency transparent, bool big_endian=false) |
| |
| uint32_t | get_animation_frame_count () const |
| |
| int | get_current_frame () const |
| |
| void | next_frame () |
| |
| void | prev_frame () |
| |
| void | set_frame (int frame) |
| | Selects a specific frame within the animation.
|
| |
| void | set_loop (uint32_t start_frame, uint32_t end_frame, int count) |
| |
| | Image (const uint8_t *data_start, int width, int height, ImageType type, Transparency transparency, bool big_endian=false) |
| | big_endian is the RGB565 byte order; codegen writes little endian unless configured otherwise.
|
| |
| Color | get_pixel (int x, int y, Color color_on=display::COLOR_ON, Color color_off=display::COLOR_OFF) const |
| |
| int | get_width () const override |
| |
| int | get_height () const override |
| |
| const uint8_t * | get_data_start () const |
| |
| ImageType | get_type () const |
| |
| int | get_bpp () const |
| |
| size_t | get_width_stride () const |
| | Return the stride of the image in bytes, that is, the distance in bytes between two consecutive rows of pixels.
|
| |
| void | draw (int x, int y, display::Display *display, Color color_on, Color color_off) override |
| |
| bool | has_transparency () const |
| |
| lv_image_dsc_t * | get_lv_image_dsc () |
| |
|
| void | update_data_start_ () |
| |
| template<bool ROWS_OUTER> |
| void | draw_ (int x, int y, display::Display *display, Color color_on, Color color_off, int x_start, int x_end, int y_start, int y_end) |
| | Per-pixel draw of the clipped range, rows (true) or columns (false) outer.
|
| |
| bool | get_binary_pixel_ (int x, int y) const |
| |
| Color | get_rgb111_pixel_ (int x, int y) const |
| |
| Color | get_rgb_pixel_ (int x, int y) const |
| |
| Color | get_rgb565_pixel_ (int x, int y) const |
| |
| Color | get_grayscale_pixel_ (int x, int y) const |
| |
Definition at line 6 of file animation.h.
◆ Animation()
◆ get_animation_frame_count()
| uint32_t esphome::animation::Animation::get_animation_frame_count |
( |
| ) |
const |
◆ get_current_frame()
| int esphome::animation::Animation::get_current_frame |
( |
| ) |
const |
◆ next_frame()
| void esphome::animation::Animation::next_frame |
( |
| ) |
|
◆ prev_frame()
| void esphome::animation::Animation::prev_frame |
( |
| ) |
|
◆ set_frame()
| void esphome::animation::Animation::set_frame |
( |
int | frame | ) |
|
Selects a specific frame within the animation.
- Parameters
-
| frame | If possitive, advance to the frame. If negative, recede to that frame from the end frame. |
Definition at line 49 of file animation.cpp.
◆ set_loop()
| void esphome::animation::Animation::set_loop |
( |
uint32_t | start_frame, |
|
|
uint32_t | end_frame, |
|
|
int | count ) |
◆ update_data_start_()
| void esphome::animation::Animation::update_data_start_ |
( |
| ) |
|
|
protected |
◆ animation_data_start_
| const uint8_t* esphome::animation::Animation::animation_data_start_ |
|
protected |
◆ animation_frame_count_
| uint32_t esphome::animation::Animation::animation_frame_count_ |
|
protected |
◆ current_frame_
| int esphome::animation::Animation::current_frame_ |
|
protected |
◆ loop_count_
| int esphome::animation::Animation::loop_count_ |
|
protected |
◆ loop_current_iteration_
| int esphome::animation::Animation::loop_current_iteration_ |
|
protected |
◆ loop_end_frame_
| uint32_t esphome::animation::Animation::loop_end_frame_ |
|
protected |
◆ loop_start_frame_
| uint32_t esphome::animation::Animation::loop_start_frame_ |
|
protected |
The documentation for this class was generated from the following files: