Clean project structure.

This commit is contained in:
jmsgrogan 2023-01-17 10:13:25 +00:00
parent 78a4fa99ff
commit 947bf937fd
496 changed files with 206 additions and 137 deletions

View file

@ -0,0 +1,32 @@
#pragma once
#include "BitStream.h"
#include "Image.h"
class ImageBitStream : public BitStream
{
public:
ImageBitStream(Image* 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, bool checkOverflow = true) override;
void writeBytes(const std::vector<unsigned char> data) override
{
}
unsigned getBytesPerScanline() const
{
return mImage->getBytesPerRow();
}
private:
Image* mImage{nullptr};
};