stuff-from-scratch/src/image/ImageBitStream.cpp

30 lines
443 B
C++
Raw Normal View History

2022-11-23 15:41:33 +00:00
#include "ImageBitStream.h"
ImageBitStream::ImageBitStream(Image<unsigned char>* image)
: BitStream(),
mImage(image)
{
}
bool ImageBitStream::isFinished() const
{
return true;
}
std::vector<unsigned char> ImageBitStream::peekNextNBytes(unsigned n) const
{
return {};
}
std::optional<unsigned char> ImageBitStream::readNextByte()
{
return std::nullopt;
}
void ImageBitStream::writeByte(unsigned char data)
{
}