ESPHome
2024.12.2
|
#include <esp32_camera.h>
Public Member Functions | |
ESP32Camera () | |
void | set_data_pins (std::array< uint8_t, 8 > pins) |
void | set_vsync_pin (uint8_t pin) |
void | set_href_pin (uint8_t pin) |
void | set_pixel_clock_pin (uint8_t pin) |
void | set_external_clock (uint8_t pin, uint32_t frequency) |
void | set_i2c_pins (uint8_t sda, uint8_t scl) |
void | set_reset_pin (uint8_t pin) |
void | set_power_down_pin (uint8_t pin) |
void | set_frame_size (ESP32CameraFrameSize size) |
void | set_jpeg_quality (uint8_t quality) |
void | set_vertical_flip (bool vertical_flip) |
void | set_horizontal_mirror (bool horizontal_mirror) |
void | set_contrast (int contrast) |
void | set_brightness (int brightness) |
void | set_saturation (int saturation) |
void | set_special_effect (ESP32SpecialEffect effect) |
void | set_aec_mode (ESP32GainControlMode mode) |
void | set_aec2 (bool aec2) |
void | set_ae_level (int ae_level) |
void | set_aec_value (uint32_t aec_value) |
void | set_agc_mode (ESP32GainControlMode mode) |
void | set_agc_value (uint8_t agc_value) |
void | set_agc_gain_ceiling (ESP32AgcGainCeiling gain_ceiling) |
void | set_wb_mode (ESP32WhiteBalanceMode mode) |
void | set_test_pattern (bool test_pattern) |
void | set_max_update_interval (uint32_t max_update_interval) |
void | set_idle_update_interval (uint32_t idle_update_interval) |
void | set_frame_buffer_mode (camera_grab_mode_t mode) |
void | set_frame_buffer_count (uint8_t fb_count) |
void | setup () override |
void | loop () override |
void | dump_config () override |
float | get_setup_priority () const override |
void | start_stream (CameraRequester requester) |
void | stop_stream (CameraRequester requester) |
void | request_image (CameraRequester requester) |
void | update_camera_parameters () |
void | add_image_callback (std::function< void(std::shared_ptr< CameraImage >)> &&callback) |
void | add_stream_start_callback (std::function< void()> &&callback) |
void | add_stream_stop_callback (std::function< void()> &&callback) |
Public Member Functions inherited from esphome::Component | |
float | get_actual_setup_priority () const |
void | set_setup_priority (float priority) |
virtual float | get_loop_priority () const |
priority of loop(). More... | |
void | call () |
virtual void | on_shutdown () |
virtual void | on_safe_shutdown () |
uint32_t | get_component_state () const |
virtual void | mark_failed () |
Mark this component as failed. More... | |
bool | is_failed () const |
bool | is_ready () const |
virtual bool | can_proceed () |
bool | status_has_warning () const |
bool | status_has_error () const |
void | status_set_warning (const char *message="unspecified") |
void | status_set_error (const char *message="unspecified") |
void | status_clear_warning () |
void | status_clear_error () |
void | status_momentary_warning (const std::string &name, uint32_t length=5000) |
void | status_momentary_error (const std::string &name, uint32_t length=5000) |
bool | has_overridden_loop () const |
void | set_component_source (const char *source) |
Set where this component was loaded from for some debug messages. More... | |
const char * | get_component_source () const |
Get the integration where this component was declared as a string. More... | |
Public Member Functions inherited from esphome::EntityBase | |
const StringRef & | get_name () const |
void | set_name (const char *name) |
bool | has_own_name () const |
std::string | get_object_id () const |
void | set_object_id (const char *object_id) |
uint32_t | get_object_id_hash () |
bool | is_internal () const |
void | set_internal (bool internal) |
bool | is_disabled_by_default () const |
void | set_disabled_by_default (bool disabled_by_default) |
EntityCategory | get_entity_category () const |
void | set_entity_category (EntityCategory entity_category) |
std::string | get_icon () const |
void | set_icon (const char *icon) |
Protected Member Functions | |
bool | has_requested_image_ () const |
bool | can_return_image_ () const |
Protected Member Functions inherited from esphome::Component | |
virtual void | call_loop () |
virtual void | call_setup () |
virtual void | call_dump_config () |
void | set_interval (const std::string &name, uint32_t interval, std::function< void()> &&f) |
Set an interval function with a unique name. More... | |
void | set_interval (uint32_t interval, std::function< void()> &&f) |
bool | cancel_interval (const std::string &name) |
Cancel an interval function. More... | |
void | set_retry (const std::string &name, uint32_t initial_wait_time, uint8_t max_attempts, std::function< RetryResult(uint8_t)> &&f, float backoff_increase_factor=1.0f) |
Set an retry function with a unique name. More... | |
void | set_retry (uint32_t initial_wait_time, uint8_t max_attempts, std::function< RetryResult(uint8_t)> &&f, float backoff_increase_factor=1.0f) |
bool | cancel_retry (const std::string &name) |
Cancel a retry function. More... | |
void | set_timeout (const std::string &name, uint32_t timeout, std::function< void()> &&f) |
Set a timeout function with a unique name. More... | |
void | set_timeout (uint32_t timeout, std::function< void()> &&f) |
bool | cancel_timeout (const std::string &name) |
Cancel a timeout function. More... | |
void | defer (const std::string &name, std::function< void()> &&f) |
Defer a callback to the next loop() call. More... | |
void | defer (std::function< void()> &&f) |
Defer a callback to the next loop() call. More... | |
bool | cancel_defer (const std::string &name) |
Cancel a defer callback using the specified name, name must not be empty. More... | |
Protected Member Functions inherited from esphome::EntityBase | |
virtual uint32_t | hash_base () |
The hash_base() function has been deprecated. More... | |
void | calc_object_id_ () |
Static Protected Member Functions | |
static void | framebuffer_task (void *pv) |
Definition at line 109 of file esp32_camera.h.
esphome::esp32_camera::ESP32Camera::ESP32Camera | ( | ) |
Definition at line 205 of file esp32_camera.cpp.
void esphome::esp32_camera::ESP32Camera::add_image_callback | ( | std::function< void(std::shared_ptr< CameraImage >)> && | callback | ) |
Definition at line 346 of file esp32_camera.cpp.
void esphome::esp32_camera::ESP32Camera::add_stream_start_callback | ( | std::function< void()> && | callback | ) |
Definition at line 349 of file esp32_camera.cpp.
void esphome::esp32_camera::ESP32Camera::add_stream_stop_callback | ( | std::function< void()> && | callback | ) |
Definition at line 352 of file esp32_camera.cpp.
|
protected |
Definition at line 390 of file esp32_camera.cpp.
|
overridevirtual |
Reimplemented from esphome::Component.
Definition at line 46 of file esp32_camera.cpp.
|
staticprotected |
Definition at line 391 of file esp32_camera.cpp.
|
overridevirtual |
Reimplemented from esphome::Component.
Definition at line 202 of file esp32_camera.cpp.
|
protected |
Definition at line 389 of file esp32_camera.cpp.
|
overridevirtual |
Reimplemented from esphome::Component.
Definition at line 155 of file esp32_camera.cpp.
void esphome::esp32_camera::ESP32Camera::request_image | ( | CameraRequester | requester | ) |
Definition at line 363 of file esp32_camera.cpp.
void esphome::esp32_camera::ESP32Camera::set_ae_level | ( | int | ae_level | ) |
Definition at line 321 of file esp32_camera.cpp.
void esphome::esp32_camera::ESP32Camera::set_aec2 | ( | bool | aec2 | ) |
Definition at line 320 of file esp32_camera.cpp.
void esphome::esp32_camera::ESP32Camera::set_aec_mode | ( | ESP32GainControlMode | mode | ) |
Definition at line 319 of file esp32_camera.cpp.
void esphome::esp32_camera::ESP32Camera::set_aec_value | ( | uint32_t | aec_value | ) |
Definition at line 322 of file esp32_camera.cpp.
void esphome::esp32_camera::ESP32Camera::set_agc_gain_ceiling | ( | ESP32AgcGainCeiling | gain_ceiling | ) |
Definition at line 326 of file esp32_camera.cpp.
void esphome::esp32_camera::ESP32Camera::set_agc_mode | ( | ESP32GainControlMode | mode | ) |
Definition at line 324 of file esp32_camera.cpp.
void esphome::esp32_camera::ESP32Camera::set_agc_value | ( | uint8_t | agc_value | ) |
Definition at line 325 of file esp32_camera.cpp.
void esphome::esp32_camera::ESP32Camera::set_brightness | ( | int | brightness | ) |
Definition at line 315 of file esp32_camera.cpp.
void esphome::esp32_camera::ESP32Camera::set_contrast | ( | int | contrast | ) |
Definition at line 314 of file esp32_camera.cpp.
void esphome::esp32_camera::ESP32Camera::set_data_pins | ( | std::array< uint8_t, 8 > | pins | ) |
Definition at line 223 of file esp32_camera.cpp.
void esphome::esp32_camera::ESP32Camera::set_external_clock | ( | uint8_t | pin, |
uint32_t | frequency | ||
) |
Definition at line 236 of file esp32_camera.cpp.
void esphome::esp32_camera::ESP32Camera::set_frame_buffer_count | ( | uint8_t | fb_count | ) |
Definition at line 340 of file esp32_camera.cpp.
void esphome::esp32_camera::ESP32Camera::set_frame_buffer_mode | ( | camera_grab_mode_t | mode | ) |
Definition at line 339 of file esp32_camera.cpp.
void esphome::esp32_camera::ESP32Camera::set_frame_size | ( | ESP32CameraFrameSize | size | ) |
Definition at line 253 of file esp32_camera.cpp.
void esphome::esp32_camera::ESP32Camera::set_horizontal_mirror | ( | bool | horizontal_mirror | ) |
Definition at line 313 of file esp32_camera.cpp.
void esphome::esp32_camera::ESP32Camera::set_href_pin | ( | uint8_t | pin | ) |
Definition at line 234 of file esp32_camera.cpp.
void esphome::esp32_camera::ESP32Camera::set_i2c_pins | ( | uint8_t | sda, |
uint8_t | scl | ||
) |
Definition at line 240 of file esp32_camera.cpp.
void esphome::esp32_camera::ESP32Camera::set_idle_update_interval | ( | uint32_t | idle_update_interval | ) |
Definition at line 335 of file esp32_camera.cpp.
void esphome::esp32_camera::ESP32Camera::set_jpeg_quality | ( | uint8_t | quality | ) |
Definition at line 311 of file esp32_camera.cpp.
void esphome::esp32_camera::ESP32Camera::set_max_update_interval | ( | uint32_t | max_update_interval | ) |
Definition at line 332 of file esp32_camera.cpp.
void esphome::esp32_camera::ESP32Camera::set_pixel_clock_pin | ( | uint8_t | pin | ) |
Definition at line 235 of file esp32_camera.cpp.
void esphome::esp32_camera::ESP32Camera::set_power_down_pin | ( | uint8_t | pin | ) |
Definition at line 250 of file esp32_camera.cpp.
void esphome::esp32_camera::ESP32Camera::set_reset_pin | ( | uint8_t | pin | ) |
Definition at line 249 of file esp32_camera.cpp.
void esphome::esp32_camera::ESP32Camera::set_saturation | ( | int | saturation | ) |
Definition at line 316 of file esp32_camera.cpp.
void esphome::esp32_camera::ESP32Camera::set_special_effect | ( | ESP32SpecialEffect | effect | ) |
Definition at line 317 of file esp32_camera.cpp.
void esphome::esp32_camera::ESP32Camera::set_test_pattern | ( | bool | test_pattern | ) |
Definition at line 330 of file esp32_camera.cpp.
void esphome::esp32_camera::ESP32Camera::set_vertical_flip | ( | bool | vertical_flip | ) |
Definition at line 312 of file esp32_camera.cpp.
void esphome::esp32_camera::ESP32Camera::set_vsync_pin | ( | uint8_t | pin | ) |
Definition at line 233 of file esp32_camera.cpp.
void esphome::esp32_camera::ESP32Camera::set_wb_mode | ( | ESP32WhiteBalanceMode | mode | ) |
Definition at line 328 of file esp32_camera.cpp.
|
overridevirtual |
Reimplemented from esphome::Component.
Definition at line 15 of file esp32_camera.cpp.
void esphome::esp32_camera::ESP32Camera::start_stream | ( | CameraRequester | requester | ) |
Definition at line 355 of file esp32_camera.cpp.
void esphome::esp32_camera::ESP32Camera::stop_stream | ( | CameraRequester | requester | ) |
Definition at line 359 of file esp32_camera.cpp.
void esphome::esp32_camera::ESP32Camera::update_camera_parameters | ( | ) |
Definition at line 364 of file esp32_camera.cpp.
|
protected |
Definition at line 187 of file esp32_camera.h.
|
protected |
Definition at line 186 of file esp32_camera.h.
|
protected |
Definition at line 185 of file esp32_camera.h.
|
protected |
Definition at line 188 of file esp32_camera.h.
|
protected |
Definition at line 192 of file esp32_camera.h.
|
protected |
Definition at line 190 of file esp32_camera.h.
|
protected |
Definition at line 191 of file esp32_camera.h.
|
protected |
Definition at line 181 of file esp32_camera.h.
|
protected |
Definition at line 176 of file esp32_camera.h.
|
protected |
Definition at line 180 of file esp32_camera.h.
|
protected |
Definition at line 202 of file esp32_camera.h.
|
protected |
Definition at line 205 of file esp32_camera.h.
|
protected |
Definition at line 206 of file esp32_camera.h.
|
protected |
Definition at line 179 of file esp32_camera.h.
|
protected |
Definition at line 199 of file esp32_camera.h.
|
protected |
Definition at line 201 of file esp32_camera.h.
|
protected |
Definition at line 211 of file esp32_camera.h.
|
protected |
Definition at line 212 of file esp32_camera.h.
|
protected |
Definition at line 198 of file esp32_camera.h.
|
protected |
Definition at line 207 of file esp32_camera.h.
|
protected |
Definition at line 182 of file esp32_camera.h.
|
protected |
Definition at line 203 of file esp32_camera.h.
|
protected |
Definition at line 183 of file esp32_camera.h.
|
protected |
Definition at line 204 of file esp32_camera.h.
|
protected |
Definition at line 208 of file esp32_camera.h.
|
protected |
Definition at line 209 of file esp32_camera.h.
|
protected |
Definition at line 196 of file esp32_camera.h.
|
protected |
Definition at line 178 of file esp32_camera.h.
|
protected |
Definition at line 194 of file esp32_camera.h.