Image decoder specialization for BMP images.
More...
#include <bmp_decoder.h>
Image decoder specialization for BMP images.
Definition at line 17 of file bmp_decoder.h.
◆ BmpDecoder()
| esphome::runtime_image::BmpDecoder::BmpDecoder |
( |
RuntimeImage * | image | ) |
|
|
inline |
Construct a new BMP Decoder object.
- Parameters
-
Definition at line 24 of file bmp_decoder.h.
◆ decode()
| int HOT esphome::runtime_image::BmpDecoder::decode |
( |
uint8_t * | buffer, |
|
|
size_t | size ) |
|
overridevirtual |
BMP file format: 0-1: Signature (BM) 2-5: File size 6-9: Reserved 10-13: Pixel data offset
Integer values are stored in little-endian format.
BMP DIB header: 14-17: DIB header size 18-21: Image width 22-25: Image height 26-27: Number of color planes 28-29: Bits per pixel 30-33: Compression method 34-37: Image data size 38-41: Horizontal resolution 42-45: Vertical resolution 46-49: Number of colors in the color table
Implements esphome::runtime_image::ImageDecoder.
Definition at line 31 of file bmp_decoder.cpp.
◆ is_finished()
| bool esphome::runtime_image::BmpDecoder::is_finished |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ reset()
| void esphome::runtime_image::BmpDecoder::reset |
( |
| ) |
|
|
overridevirtual |
◆ bits_per_pixel_
| uint16_t esphome::runtime_image::BmpDecoder::bits_per_pixel_ {0} |
|
protected |
◆ color_table_
| std::unique_ptr<uint32_t[]> esphome::runtime_image::BmpDecoder::color_table_ |
|
protected |
◆ color_table_capacity_
| uint32_t esphome::runtime_image::BmpDecoder::color_table_capacity_ {0} |
|
protected |
◆ color_table_entries_
| uint32_t esphome::runtime_image::BmpDecoder::color_table_entries_ {0} |
|
protected |
◆ compression_method_
| uint32_t esphome::runtime_image::BmpDecoder::compression_method_ {0} |
|
protected |
◆ current_index_
| size_t esphome::runtime_image::BmpDecoder::current_index_ {0} |
|
protected |
◆ data_offset_
| size_t esphome::runtime_image::BmpDecoder::data_offset_ {0} |
|
protected |
◆ height_
| ssize_t esphome::runtime_image::BmpDecoder::height_ {0} |
|
protected |
◆ image_data_size_
| uint32_t esphome::runtime_image::BmpDecoder::image_data_size_ {0} |
|
protected |
◆ padding_bytes_
| uint8_t esphome::runtime_image::BmpDecoder::padding_bytes_ {0} |
|
protected |
◆ paint_index_
| size_t esphome::runtime_image::BmpDecoder::paint_index_ {0} |
|
protected |
◆ width_
| ssize_t esphome::runtime_image::BmpDecoder::width_ {0} |
|
protected |
◆ width_bytes_
| size_t esphome::runtime_image::BmpDecoder::width_bytes_ {0} |
|
protected |
The documentation for this class was generated from the following files: