12#ifndef ESPHOME_SNAPSHOT_DIR
13#define ESPHOME_SNAPSHOT_DIR "."
63 virtual bool capture_bgr(uint8_t *dest,
size_t row_stride) = 0;
74 std::unique_ptr<Recording> recording_;
Base for anything that can hand over the picture it is showing so it can be written to a file.
void take_snapshot_or_log(const char *filename, uint32_t frames, float frame_rate)
Take a snapshot for an automation: an empty name means a generated one, and a snapshot that wrote not...
virtual bool capture_bgr(uint8_t *dest, size_t row_stride)=0
Fill in the picture: three bytes per pixel in blue, green, red order, topmost row first,...
const char * snapshot_prefix_
bool take_animation(const char *filename, uint32_t frames, float frame_rate)
Record what is shown as an animated GIF file in the snapshot directory.
virtual int snapshot_width()=0
Width of the picture in pixels.
virtual int snapshot_height()=0
Height of the picture in pixels.
void take_snapshot_or_log(const std::string &filename, uint32_t frames, float frame_rate)
void set_snapshot_prefix(const char *prefix)
Set the word generated names start with.
bool take_snapshot(const char *filename)
Write the current picture to a BMP file in the snapshot directory.