JBIG2 - bitmap decoding

This commit is contained in:
Jakub Melka
2019-10-28 17:39:22 +01:00
parent 6a0cdec4e4
commit 34371706aa
5 changed files with 605 additions and 23 deletions

View File

@ -138,6 +138,9 @@ public:
/// Reads signed 32-bit integer from the stream
int32_t readSignedInt();
/// Reads signed 8-bit integer from the stream
int8_t readSignedByte();
/// Reads unsigned 32-bit integer from the stream
uint32_t readUnsignedInt() { return read(32); }
@ -147,6 +150,9 @@ public:
/// Reads unsigned 8-bit integer from the stream
uint8_t readUnsignedByte() { return read(8); }
/// Return underlying byte stream
const QByteArray* getStream() const { return m_stream; }
private:
const QByteArray* m_stream;
int m_position;