ESPHome 2026.9.0-dev
Loading...
Searching...
No Matches
image_format.h File Reference

Go to the source code of this file.

Namespaces

namespace  esphome
 
namespace  esphome::runtime_image
 

Enumerations

enum  esphome::runtime_image::ImageFormat {
  esphome::runtime_image::AUTO , esphome::runtime_image::BMP , esphome::runtime_image::JPEG , esphome::runtime_image::PNG ,
  esphome::runtime_image::QOI
}
 Image format types that can be decoded dynamically. More...
 

Functions

const char * esphome::runtime_image::get_mime_type_for_format (ImageFormat format)
 Canonical MIME type for a format; "image/*" for AUTO/unknown.
 
std::optional< ImageFormatesphome::runtime_image::get_format_for_mime_type (const char *mime_type)
 Case-insensitive substring match of known media types; nullopt if none found.