Further compression and png work.
This commit is contained in:
parent
318b481ccc
commit
9c8faa534b
34 changed files with 1164 additions and 203 deletions
22
src/image/ImageBitStream.h
Normal file
22
src/image/ImageBitStream.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
#pragma once
|
||||
|
||||
#include "BitStream.h"
|
||||
|
||||
#include "Image.h"
|
||||
|
||||
class ImageBitStream : public BitStream
|
||||
{
|
||||
public:
|
||||
ImageBitStream(Image<unsigned char>* image);
|
||||
|
||||
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:
|
||||
Image<unsigned char>* mImage{nullptr};
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue