Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
CJBig2_BitStream Class Reference

#include <JBig2_BitStream.h>

Collaboration diagram for CJBig2_BitStream:

Public Member Functions

 CJBig2_BitStream (pdfium::span< const uint8_t > pSrcStream, uint64_t key)
 CJBig2_BitStream (const CJBig2_BitStream &)=delete
CJBig2_BitStreamoperator= (const CJBig2_BitStream &)=delete
 ~CJBig2_BitStream ()
int32_t readNBits (uint32_t dwBits, uint32_t *dwResult)
int32_t readNBits (uint32_t dwBits, int32_t *nResult)
int32_t read1Bit (uint32_t *dwResult)
int32_t read1Bit (bool *bResult)
int32_t read1Byte (uint8_t *cResult)
int32_t readInteger (uint32_t *dwResult)
int32_t readShortInteger (uint16_t *wResult)
void alignByte ()
uint8_t getCurByte () const
void incByteIdx ()
uint8_t getCurByte_arith () const
uint8_t getNextByte_arith () const
uint32_t getOffset () const
void setOffset (uint32_t dwOffset)
void addOffset (uint32_t dwDelta)
uint32_t getBitPos () const
void setBitPos (uint32_t dwBitPos)
pdfium::span< const uint8_t > getBufSpan () const
const uint8_t * getPointer () const
uint32_t getByteLeft () const
uint64_t getKey () const
bool IsInBounds () const

Detailed Description

Definition at line 14 of file JBig2_BitStream.h.

Constructor & Destructor Documentation

◆ CJBig2_BitStream() [1/2]

CJBig2_BitStream::CJBig2_BitStream ( pdfium::span< const uint8_t > pSrcStream,
uint64_t key )

Definition at line 24 of file JBig2_BitStream.cpp.

References CJBig2_BitStream().

Referenced by CJBig2_BitStream().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CJBig2_BitStream() [2/2]

CJBig2_BitStream::CJBig2_BitStream ( const CJBig2_BitStream & )
delete

◆ ~CJBig2_BitStream()

CJBig2_BitStream::~CJBig2_BitStream ( )
default

Member Function Documentation

◆ addOffset()

void CJBig2_BitStream::addOffset ( uint32_t dwDelta)

Definition at line 152 of file JBig2_BitStream.cpp.

References setOffset().

Referenced by alignByte(), CJBig2_SDDProc::DecodeHuffman(), CJBig2_TRDProc::DecodeHuffman(), CJBig2_HTRDProc::DecodeMMR(), and incByteIdx().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ alignByte()

void CJBig2_BitStream::alignByte ( )

Definition at line 120 of file JBig2_BitStream.cpp.

References addOffset().

Referenced by CJBig2_SDDProc::DecodeHuffman(), CJBig2_TRDProc::DecodeHuffman(), and CJBig2_HTRDProc::DecodeMMR().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getBitPos()

uint32_t CJBig2_BitStream::getBitPos ( ) const

Definition at line 160 of file JBig2_BitStream.cpp.

Referenced by readNBits(), readNBits(), and CJBig2_GRDProc::StartDecodeMMR().

Here is the caller graph for this function:

◆ getBufSpan()

pdfium::span< const uint8_t > CJBig2_BitStream::getBufSpan ( ) const
inline

Definition at line 39 of file JBig2_BitStream.h.

◆ getByteLeft()

uint32_t CJBig2_BitStream::getByteLeft ( ) const

Definition at line 173 of file JBig2_BitStream.cpp.

Referenced by CJBig2_SDDProc::DecodeHuffman().

Here is the caller graph for this function:

◆ getCurByte()

uint8_t CJBig2_BitStream::getCurByte ( ) const

Definition at line 127 of file JBig2_BitStream.cpp.

◆ getCurByte_arith()

uint8_t CJBig2_BitStream::getCurByte_arith ( ) const

Definition at line 135 of file JBig2_BitStream.cpp.

◆ getKey()

uint64_t CJBig2_BitStream::getKey ( ) const
inline

Definition at line 42 of file JBig2_BitStream.h.

◆ getNextByte_arith()

uint8_t CJBig2_BitStream::getNextByte_arith ( ) const

Definition at line 139 of file JBig2_BitStream.cpp.

◆ getOffset()

uint32_t CJBig2_BitStream::getOffset ( ) const

Definition at line 143 of file JBig2_BitStream.cpp.

Referenced by CJBig2_SDDProc::DecodeHuffman(), and CJBig2_TRDProc::DecodeHuffman().

Here is the caller graph for this function:

◆ getPointer()

const uint8_t * CJBig2_BitStream::getPointer ( ) const

Definition at line 169 of file JBig2_BitStream.cpp.

Referenced by CJBig2_SDDProc::DecodeHuffman().

Here is the caller graph for this function:

◆ incByteIdx()

void CJBig2_BitStream::incByteIdx ( )

Definition at line 131 of file JBig2_BitStream.cpp.

References addOffset().

Here is the call graph for this function:

◆ IsInBounds()

bool CJBig2_BitStream::IsInBounds ( ) const

Definition at line 188 of file JBig2_BitStream.cpp.

Referenced by read1Bit(), read1Bit(), read1Byte(), readNBits(), and readNBits().

Here is the caller graph for this function:

◆ operator=()

CJBig2_BitStream & CJBig2_BitStream::operator= ( const CJBig2_BitStream & )
delete

◆ read1Bit() [1/2]

int32_t CJBig2_BitStream::read1Bit ( bool * bResult)

Definition at line 83 of file JBig2_BitStream.cpp.

References IsInBounds().

Referenced by CJBig2_TRDProc::DecodeHuffman().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ read1Bit() [2/2]

int32_t CJBig2_BitStream::read1Bit ( uint32_t * dwResult)

Definition at line 74 of file JBig2_BitStream.cpp.

References IsInBounds().

Referenced by CJBig2_SDDProc::DecodeHuffman(), and CJBig2_TRDProc::DecodeHuffman().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ read1Byte()

int32_t CJBig2_BitStream::read1Byte ( uint8_t * cResult)

Definition at line 92 of file JBig2_BitStream.cpp.

References IsInBounds().

Here is the call graph for this function:

◆ readInteger()

int32_t CJBig2_BitStream::readInteger ( uint32_t * dwResult)

Definition at line 101 of file JBig2_BitStream.cpp.

◆ readNBits() [1/2]

int32_t CJBig2_BitStream::readNBits ( uint32_t dwBits,
int32_t * nResult )

Definition at line 52 of file JBig2_BitStream.cpp.

References getBitPos(), and IsInBounds().

Referenced by CJBig2_TRDProc::DecodeHuffman(), TEST(), TEST(), and TEST().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readNBits() [2/2]

int32_t CJBig2_BitStream::readNBits ( uint32_t dwBits,
uint32_t * dwResult )

Definition at line 30 of file JBig2_BitStream.cpp.

References getBitPos(), and IsInBounds().

Referenced by TEST(), TEST(), TEST(), TEST(), and TEST().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readShortInteger()

int32_t CJBig2_BitStream::readShortInteger ( uint16_t * wResult)

Definition at line 111 of file JBig2_BitStream.cpp.

◆ setBitPos()

void CJBig2_BitStream::setBitPos ( uint32_t dwBitPos)

Definition at line 164 of file JBig2_BitStream.cpp.

Referenced by CJBig2_GRDProc::StartDecodeMMR().

Here is the caller graph for this function:

◆ setOffset()

void CJBig2_BitStream::setOffset ( uint32_t dwOffset)

Definition at line 147 of file JBig2_BitStream.cpp.

Referenced by addOffset().

Here is the caller graph for this function:

The documentation for this class was generated from the following files: