ESPHome  2024.10.2
Data Structures | Typedefs | Enumerations | Functions
esphome::online_image Namespace Reference

Data Structures

class  DownloadBuffer
 
class  DownloadErrorTrigger
 
class  DownloadFinishedTrigger
 
class  ImageDecoder
 Class to abstract decoding different image formats. More...
 
class  OnlineImage
 Download an image from a given URL, and decode it using the specified decoder. More...
 
class  OnlineImageReleaseAction
 
class  OnlineImageSetUrlAction
 
class  PngDecoder
 Image decoder specialization for PNG images. More...
 

Typedefs

using t_http_codes = enum { HTTP_CODE_OK=200, HTTP_CODE_NOT_MODIFIED=304, HTTP_CODE_NOT_FOUND=404, }
 

Enumerations

enum  ImageFormat { AUTO, JPEG, PNG }
 Format that the image is encoded with. More...
 

Functions

bool is_color_on (const Color &color)
 

Typedef Documentation

◆ t_http_codes

using esphome::online_image::t_http_codes = typedef enum { HTTP_CODE_OK = 200, HTTP_CODE_NOT_MODIFIED = 304, HTTP_CODE_NOT_FOUND = 404, }

Definition at line 18 of file online_image.h.

Enumeration Type Documentation

◆ ImageFormat

Format that the image is encoded with.

Enumerator
AUTO 

Automatically detect from MIME type.

Not supported yet.

JPEG 

JPEG format.

Not supported yet.

PNG 

PNG format.

Definition at line 23 of file online_image.h.

Function Documentation

◆ is_color_on()

bool esphome::online_image::is_color_on ( const Color color)
inline

Definition at line 18 of file online_image.cpp.