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)
 
uint32_t getBitPos () const
 
void setBitPos (uint32_t dwBitPos)
 
const uint8_t * getBuf () const
 
uint32_t getLength () const
 
const uint8_t * getPointer () const
 
void offset (uint32_t dwOffset)
 
uint32_t getByteLeft () const
 
uint64_t getKey () const
 
bool IsInBounds () const
 

Detailed Description

Definition at line 13 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 23 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

◆ alignByte()

void CJBig2_BitStream::alignByte ( )

Definition at line 119 of file JBig2_BitStream.cpp.

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

+ Here is the caller graph for this function:

◆ getBitPos()

uint32_t CJBig2_BitStream::getBitPos ( ) const

Definition at line 151 of file JBig2_BitStream.cpp.

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

+ Here is the caller graph for this function:

◆ getBuf()

const uint8_t * CJBig2_BitStream::getBuf ( ) const

Definition at line 160 of file JBig2_BitStream.cpp.

Referenced by CJBig2_GRDProc::StartDecodeMMR().

+ Here is the caller graph for this function:

◆ getByteLeft()

uint32_t CJBig2_BitStream::getByteLeft ( ) const

Definition at line 176 of file JBig2_BitStream.cpp.

References getLength().

Referenced by CJBig2_SDDProc::DecodeHuffman().

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

◆ getCurByte()

uint8_t CJBig2_BitStream::getCurByte ( ) const

Definition at line 126 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.

◆ getLength()

uint32_t CJBig2_BitStream::getLength ( ) const

Definition at line 164 of file JBig2_BitStream.cpp.

Referenced by getByteLeft(), IsInBounds(), setOffset(), and CJBig2_GRDProc::StartDecodeMMR().

+ Here is the caller graph for this function:

◆ 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 168 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 130 of file JBig2_BitStream.cpp.

References IsInBounds().

+ Here is the call graph for this function:

◆ IsInBounds()

bool CJBig2_BitStream::IsInBounds ( ) const

Definition at line 189 of file JBig2_BitStream.cpp.

References getLength().

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

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

◆ offset()

void CJBig2_BitStream::offset ( uint32_t dwOffset)

Definition at line 172 of file JBig2_BitStream.cpp.

Referenced by CJBig2_SDDProc::DecodeHuffman(), CJBig2_TRDProc::DecodeHuffman(), CJBig2_HTRDProc::DecodeMMR(), testing.tools.fixup_pdf_template.TemplateProcessor::insert_xref_entry(), and testing.tools.fixup_pdf_template.TemplateProcessor::process_line().

+ 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 82 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 73 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 91 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 100 of file JBig2_BitStream.cpp.

◆ readNBits() [1/2]

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

Definition at line 51 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 29 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 110 of file JBig2_BitStream.cpp.

◆ setBitPos()

void CJBig2_BitStream::setBitPos ( uint32_t dwBitPos)

Definition at line 155 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.

References getLength().

+ Here is the call graph for this function:

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