ESPHome 2025.10.0-dev
|
Interface for image encoders used in a camera pipeline. More...
#include <encoder.h>
Public Member Functions | |
virtual EncoderError | encode_pixels (CameraImageSpec *spec, Buffer *pixels)=0 |
Encodes pixel data from a previous camera pipeline stage. | |
virtual EncoderBuffer * | get_output_buffer ()=0 |
Returns the encoder's output buffer. | |
virtual void | dump_config ()=0 |
Prints the encoder's configuration to the log. | |
virtual | ~Encoder ()=default |
|
virtualdefault |
|
pure virtual |
Prints the encoder's configuration to the log.
Implemented in esphome::camera_encoder::ESP32CameraJPEGEncoder.
|
pure virtual |
Encodes pixel data from a previous camera pipeline stage.
spec | Specification of the input pixel data. |
pixels | Image pixels in RGB or grayscale format, as specified in spec . |
Implemented in esphome::camera_encoder::ESP32CameraJPEGEncoder.
|
pure virtual |
Returns the encoder's output buffer.
Implemented in esphome::camera_encoder::ESP32CameraJPEGEncoder.