ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
image_format.h
Go to the documentation of this file.
1#pragma once
2
3#include <optional>
4#include "esphome/core/log.h"
5
7
24
28std::optional<ImageFormat> get_format_for_mime_type(const char *mime_type);
30const LogString *get_format_name(ImageFormat format);
31
32} // namespace esphome::runtime_image
const char * format
const char * get_mime_type_for_format(ImageFormat format)
Canonical MIME type for a format; "image/*" for AUTO/unknown.
std::optional< ImageFormat > get_format_for_mime_type(const char *mime_type)
Case-insensitive substring match of known media types; nullopt if none found.
ImageFormat
Image format types that can be decoded dynamically.
@ AUTO
Format is supplied per decode, e.g.
const LogString * get_format_name(ImageFormat format)
Human-readable name for a format; "UNKNOWN" if not recognized.