ESPHome 2025.5.0
Loading...
Searching...
No Matches
bmp_image.h
Go to the documentation of this file.
1#pragma once
2
4#ifdef USE_ONLINE_IMAGE_BMP_SUPPORT
5
6#include "image_decoder.h"
7
8namespace esphome {
9namespace online_image {
10
14class BmpDecoder : public ImageDecoder {
15 public:
22
23 int HOT decode(uint8_t *buffer, size_t size) override;
24
25 protected:
26 size_t current_index_{0};
27 size_t paint_index_{0};
30 uint16_t bits_per_pixel_{0};
32 uint32_t image_data_size_{0};
34 size_t width_bytes_{0};
35 size_t data_offset_{0};
36 uint8_t padding_bytes_{0};
37};
38
39} // namespace online_image
40} // namespace esphome
41
42#endif // USE_ONLINE_IMAGE_BMP_SUPPORT
Image decoder specialization for PNG images.
Definition bmp_image.h:14
BmpDecoder(OnlineImage *image)
Construct a new BMP Decoder object.
Definition bmp_image.h:21
int HOT decode(uint8_t *buffer, size_t size) override
Definition bmp_image.cpp:14
Class to abstract decoding different image formats.
Download an image from a given URL, and decode it using the specified decoder.
__int64 ssize_t
Definition httplib.h:175
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7