mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-21 17:18:06 +00:00
Formatted code (#1007)
* Updated style * Updated files * fixed new line * Updated spacing * File fix WIP * Updated to clang 13 * updated comment style * Removed old comment code
This commit is contained in:
@@ -31,28 +31,28 @@
|
||||
#include <memory>
|
||||
|
||||
class StreamInput {
|
||||
public:
|
||||
StreamInput(CaptureConfig* const config);
|
||||
public:
|
||||
StreamInput(CaptureConfig* const config);
|
||||
|
||||
StreamInput(const StreamInput&) = delete;
|
||||
StreamInput(StreamInput&&) = delete;
|
||||
StreamInput& operator=(const StreamInput&) = delete;
|
||||
StreamInput& operator=(StreamInput&&) = delete;
|
||||
StreamInput(const StreamInput&) = delete;
|
||||
StreamInput(StreamInput&&) = delete;
|
||||
StreamInput& operator=(const StreamInput&) = delete;
|
||||
StreamInput& operator=(StreamInput&&) = delete;
|
||||
|
||||
size_t write(const void* const data, const size_t length);
|
||||
size_t write(const void* const data, const size_t length);
|
||||
|
||||
private:
|
||||
static constexpr size_t buffer_count_max_log2 = 3;
|
||||
static constexpr size_t buffer_count_max = 1U << buffer_count_max_log2;
|
||||
|
||||
FIFO<StreamBuffer*> fifo_buffers_empty;
|
||||
FIFO<StreamBuffer*> fifo_buffers_full;
|
||||
std::array<StreamBuffer, buffer_count_max> buffers { };
|
||||
std::array<StreamBuffer*, buffer_count_max> buffers_empty { };
|
||||
std::array<StreamBuffer*, buffer_count_max> buffers_full { };
|
||||
StreamBuffer* active_buffer { nullptr };
|
||||
CaptureConfig* const config { nullptr };
|
||||
std::unique_ptr<uint8_t[]> data { };
|
||||
private:
|
||||
static constexpr size_t buffer_count_max_log2 = 3;
|
||||
static constexpr size_t buffer_count_max = 1U << buffer_count_max_log2;
|
||||
|
||||
FIFO<StreamBuffer*> fifo_buffers_empty;
|
||||
FIFO<StreamBuffer*> fifo_buffers_full;
|
||||
std::array<StreamBuffer, buffer_count_max> buffers{};
|
||||
std::array<StreamBuffer*, buffer_count_max> buffers_empty{};
|
||||
std::array<StreamBuffer*, buffer_count_max> buffers_full{};
|
||||
StreamBuffer* active_buffer{nullptr};
|
||||
CaptureConfig* const config{nullptr};
|
||||
std::unique_ptr<uint8_t[]> data{};
|
||||
};
|
||||
|
||||
#endif/*__STREAM_INPUT_H__*/
|
||||
#endif /*__STREAM_INPUT_H__*/
|
||||
|
Reference in New Issue
Block a user