3#ifdef USE_ESP32_CAMERA_JPEG_ENCODER
27 static size_t callback_(
void *arg,
size_t index,
const void *data,
size_t len);
Interface for a generic buffer that stores image data.
Interface for an encoder buffer supporting resizing and variable-length data.
Interface for image encoders used in a camera pipeline.
Encoder that uses the software-based JPEG implementation from Espressif's esp32-camera component.
void set_buffer_expand_size(size_t buffer_expand_size)
Sets the number of bytes to expand the output buffer on underflow during encoding.
camera::EncoderBuffer * output_
camera::EncoderError encode_pixels(camera::CameraImageSpec *spec, camera::Buffer *pixels) override
ESP32CameraJPEGEncoder(uint8_t quality, camera::EncoderBuffer *output)
Constructs a ESP32CameraJPEGEncoder instance.
void dump_config() override
size_t buffer_expand_size_
pixformat_t to_internal_(camera::PixelFormat format)
camera::EncoderBuffer * get_output_buffer() override
static size_t callback_(void *arg, size_t index, const void *data, size_t len)
bool out_of_output_memory_
EncoderError
Result codes from the encoder used to control camera pipeline flow.
PixelFormat
Enumeration of different pixel formats.
Specification of a caputured camera image.