Further compression and png work.
This commit is contained in:
parent
318b481ccc
commit
9c8faa534b
34 changed files with 1164 additions and 203 deletions
21
src/core/streams/InputBitStream.h
Normal file
21
src/core/streams/InputBitStream.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
#pragma once
|
||||
|
||||
#include "BitStream.h"
|
||||
|
||||
#include <istream>
|
||||
|
||||
class InputBitStream : public BitStream
|
||||
{
|
||||
InputBitStream(std::basic_istream<unsigned char>* stream);
|
||||
|
||||
bool isFinished() const override;
|
||||
|
||||
std::vector<unsigned char> peekNextNBytes(unsigned n) const override;
|
||||
|
||||
std::optional<unsigned char> readNextByte() override;
|
||||
|
||||
void writeByte(unsigned char data) override;
|
||||
|
||||
private:
|
||||
std::basic_istream<unsigned char>* mStream{nullptr};
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue