mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-31 18:49:15 -04: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:
parent
7aca7ce74d
commit
033c4e9a5b
599 changed files with 70746 additions and 66896 deletions
|
@ -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__*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue