ESPHome  2024.9.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 8 of file image.h.

Function Documentation

◆ image_type_to_bpp()

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

Definition at line 16 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 32 of file image.h.