ESPHome  2024.10.2
Data Structures | Enumerations | Functions
esphome::image Namespace Reference

Data Structures

class  Image
 

Enumerations

enum  ImageType {
  IMAGE_TYPE_BINARY = 0, IMAGE_TYPE_GRAYSCALE = 1, IMAGE_TYPE_RGB24 = 2, IMAGE_TYPE_RGB565 = 3,
  IMAGE_TYPE_RGBA = 4
}
 

Functions

int image_type_to_bpp (ImageType type)
 
int image_type_to_width_stride (int width, ImageType type)
 

Enumeration Type Documentation

◆ ImageType

Enumerator
IMAGE_TYPE_BINARY 
IMAGE_TYPE_GRAYSCALE 
IMAGE_TYPE_RGB24 
IMAGE_TYPE_RGB565 
IMAGE_TYPE_RGBA 

Definition at line 17 of file image.h.

Function Documentation

◆ image_type_to_bpp()

int esphome::image::image_type_to_bpp ( ImageType  type)
inline

Definition at line 25 of file image.h.

◆ image_type_to_width_stride()

int esphome::image::image_type_to_width_stride ( int  width,
ImageType  type 
)
inline

Definition at line 41 of file image.h.