#include <snapshot_writer.hpp>
|
| static void | saveRaw (const fs::path &path, const std::vector< std::uint8_t > &rgba, std::uint32_t width, std::uint32_t height) |
| static void | saveRaw16 (const fs::path &path, const std::vector< std::uint16_t > &rgba, std::uint32_t width, std::uint32_t height) |
Definition at line 29 of file snapshot_writer.hpp.
◆ SnapshotWriter() [1/3]
| acmxvk::SnapshotWriter::SnapshotWriter |
( |
| ) |
|
|
default |
◆ ~SnapshotWriter()
| acmxvk::SnapshotWriter::~SnapshotWriter |
( |
| ) |
|
◆ SnapshotWriter() [2/3]
| acmxvk::SnapshotWriter::SnapshotWriter |
( |
const SnapshotWriter & | | ) |
|
|
delete |
◆ SnapshotWriter() [3/3]
| acmxvk::SnapshotWriter::SnapshotWriter |
( |
SnapshotWriter && | | ) |
|
|
delete |
◆ enqueue()
◆ formatName()
| std::string_view acmxvk::SnapshotWriter::formatName |
( |
SnapshotFormat | format | ) |
|
|
staticnodiscardnoexcept |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ queueFull()
| bool acmxvk::SnapshotWriter::queueFull |
( |
| ) |
|
|
nodiscard |
◆ savePng()
| void acmxvk::SnapshotWriter::savePng |
( |
const fs::path & | path, |
|
|
std::uint8_t * | rgba, |
|
|
int | width, |
|
|
int | height ) |
|
static |
◆ saveRaw()
| void acmxvk::SnapshotWriter::saveRaw |
( |
const fs::path & | path, |
|
|
const std::vector< std::uint8_t > & | rgba, |
|
|
std::uint32_t | width, |
|
|
std::uint32_t | height ) |
|
staticprivate |
◆ saveRaw16()
| void acmxvk::SnapshotWriter::saveRaw16 |
( |
const fs::path & | path, |
|
|
const std::vector< std::uint16_t > & | rgba, |
|
|
std::uint32_t | width, |
|
|
std::uint32_t | height ) |
|
staticprivate |
◆ start()
| bool acmxvk::SnapshotWriter::start |
( |
| ) |
|
|
nodiscard |
◆ stop()
| void acmxvk::SnapshotWriter::stop |
( |
| ) |
|
|
noexcept |
◆ workerLoop()
| void acmxvk::SnapshotWriter::workerLoop |
( |
| ) |
|
|
privatenoexcept |
Definition at line 295 of file snapshot_writer.cpp.
References condition, acmxvk::SnapshotJob::format, formatName(), acmxvk::SnapshotJob::height, jobs, jobs_in_flight, mutex, acmxvk::SnapshotJob::path, acmxvk::Raw, acmxvk::SnapshotJob::rgba, acmxvk::SnapshotJob::rgba16, savePng(), saveRaw(), saveRaw16(), stopping, acmxvk::Tiff, acmxvk::WebP, and acmxvk::SnapshotJob::width.
Referenced by start().
◆ condition
| std::condition_variable acmxvk::SnapshotWriter::condition |
|
private |
◆ jobs
◆ jobs_in_flight
| std::size_t acmxvk::SnapshotWriter::jobs_in_flight = 0 |
|
private |
◆ mutex
| std::mutex acmxvk::SnapshotWriter::mutex |
|
private |
◆ QUEUE_CAPACITY
| std::size_t acmxvk::SnapshotWriter::QUEUE_CAPACITY = 4 |
|
staticconstexprprivate |
◆ stopping
| bool acmxvk::SnapshotWriter::stopping = false |
|
private |
◆ worker
| std::thread acmxvk::SnapshotWriter::worker |
|
private |
The documentation for this class was generated from the following files: