ESPHome 2025.9.1
Loading...
Searching...
No Matches
encoder_buffer_impl.h
Go to the documentation of this file.
1#pragma once
2
5
7
9 public:
10 // --- EncoderBuffer ---
11 bool set_buffer_size(size_t size) override;
12 uint8_t *get_data() const override { return this->data_; }
13 size_t get_size() const override { return this->size_; }
14 size_t get_max_size() const override { return this->capacity_; }
15 // ----------------------
16 ~EncoderBufferImpl() override;
17
18 protected:
20 size_t capacity_{};
21 size_t size_{};
22 uint8_t *data_{};
23};
24
25} // namespace esphome::camera_encoder
An STL allocator that uses SPI or internal RAM.
Definition helpers.h:848
Interface for an encoder buffer supporting resizing and variable-length data.
Definition encoder.h:32