ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
image_decoder.h File Reference

Go to the source code of this file.

Data Structures

class  esphome::runtime_image::DecodeSource
 Input that a decoder reads itself as it goes, so the whole image never has to be in memory at once. More...
 
class  esphome::runtime_image::ImageDecoder
 Class to abstract decoding different image formats. More...
 

Namespaces

namespace  esphome
 
namespace  esphome::runtime_image
 

Enumerations

enum  esphome::runtime_image::DecodeError : int {
  esphome::runtime_image::DECODE_ERROR_INVALID_TYPE = -1 , esphome::runtime_image::DECODE_ERROR_UNSUPPORTED_FORMAT = -2 , esphome::runtime_image::DECODE_ERROR_OUT_OF_MEMORY = -3 , esphome::runtime_image::DECODE_ERROR_INTERNAL_DECODER_ERROR = -4 ,
  esphome::runtime_image::DECODE_ERROR_READ = -5
}
 
enum  esphome::runtime_image::DecodeStep : int { esphome::runtime_image::DECODE_STEP_DONE = 0 , esphome::runtime_image::DECODE_STEP_MORE = 1 , esphome::runtime_image::DECODE_STEP_NEED_DATA = 2 }
 Results of ImageDecoder::decode_step() other than a DecodeError. More...
 

Functions

int esphome::runtime_image::scale_boundary (int n, int source, int target)
 The first of target pixels that pixel n of source paints, rounded up: ceil(n * target / source).
 
constexpr const char * esphome::runtime_image::decode_error_to_string (int error)