Clean project structure.
This commit is contained in:
parent
78a4fa99ff
commit
947bf937fd
496 changed files with 206 additions and 137 deletions
32
src/media/image/ImageBitStream.h
Normal file
32
src/media/image/ImageBitStream.h
Normal 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};
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue