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_Image Class Reference

#include <JBig2_Image.h>

+ Collaboration diagram for CJBig2_Image:

Public Member Functions

 CJBig2_Image (int32_t w, int32_t h)
 
 CJBig2_Image (int32_t w, int32_t h, int32_t stride, pdfium::span< uint8_t > pBuf)
 
 CJBig2_Image (const CJBig2_Image &other)
 
 ~CJBig2_Image ()
 
int32_t width () const
 
int32_t height () const
 
int32_t stride () const
 
uint8_t * data () const
 
int GetPixel (int32_t x, int32_t y) const
 
void SetPixel (int32_t x, int32_t y, int v)
 
uint8_t * GetLineUnsafe (int32_t y) const
 
uint8_t * GetLine (int32_t y) const
 
void CopyLine (int32_t hTo, int32_t hFrom)
 
void Fill (bool v)
 
bool ComposeFrom (int32_t x, int32_t y, CJBig2_Image *pSrc, JBig2ComposeOp op)
 
bool ComposeFromWithRect (int32_t x, int32_t y, CJBig2_Image *pSrc, const FX_RECT &rtSrc, JBig2ComposeOp op)
 
std::unique_ptr< CJBig2_ImageSubImage (int32_t x, int32_t y, int32_t w, int32_t h)
 
void Expand (int32_t h, bool v)
 
bool ComposeTo (CJBig2_Image *pDst, int32_t x, int32_t y, JBig2ComposeOp op)
 
bool ComposeToWithRect (CJBig2_Image *pDst, int32_t x, int32_t y, const FX_RECT &rtSrc, JBig2ComposeOp op)
 

Static Public Member Functions

static bool IsValidImageSize (int32_t w, int32_t h)
 

Detailed Description

Definition at line 27 of file JBig2_Image.h.

Constructor & Destructor Documentation

◆ CJBig2_Image() [1/3]

CJBig2_Image::CJBig2_Image ( int32_t w,
int32_t h )

Definition at line 48 of file JBig2_Image.cpp.

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

+ Here is the caller graph for this function:

◆ CJBig2_Image() [2/3]

CJBig2_Image::CJBig2_Image ( int32_t w,
int32_t h,
int32_t stride,
pdfium::span< uint8_t > pBuf )

Definition at line 63 of file JBig2_Image.cpp.

◆ CJBig2_Image() [3/3]

CJBig2_Image::CJBig2_Image ( const CJBig2_Image & other)

Definition at line 84 of file JBig2_Image.cpp.

References data().

+ Here is the call graph for this function:

◆ ~CJBig2_Image()

CJBig2_Image::~CJBig2_Image ( )
default

Member Function Documentation

◆ ComposeFrom()

bool CJBig2_Image::ComposeFrom ( int32_t x,
int32_t y,
CJBig2_Image * pSrc,
JBig2ComposeOp op )

Definition at line 176 of file JBig2_Image.cpp.

◆ ComposeFromWithRect()

bool CJBig2_Image::ComposeFromWithRect ( int32_t x,
int32_t y,
CJBig2_Image * pSrc,
const FX_RECT & rtSrc,
JBig2ComposeOp op )

Definition at line 183 of file JBig2_Image.cpp.

◆ ComposeTo()

bool CJBig2_Image::ComposeTo ( CJBig2_Image * pDst,
int32_t x,
int32_t y,
JBig2ComposeOp op )

Definition at line 160 of file JBig2_Image.cpp.

◆ ComposeToWithRect()

bool CJBig2_Image::ComposeToWithRect ( CJBig2_Image * pDst,
int32_t x,
int32_t y,
const FX_RECT & rtSrc,
JBig2ComposeOp op )

Definition at line 168 of file JBig2_Image.cpp.

◆ CopyLine()

void CJBig2_Image::CopyLine ( int32_t hTo,
int32_t hFrom )

Definition at line 137 of file JBig2_Image.cpp.

References GetLine().

+ Here is the call graph for this function:

◆ data()

uint8_t * CJBig2_Image::data ( ) const
inline

Definition at line 43 of file JBig2_Image.h.

Referenced by CJBig2_Image(), Expand(), Fill(), GetLineUnsafe(), TEST(), TEST(), and TEST().

+ Here is the caller graph for this function:

◆ Expand()

void CJBig2_Image::Expand ( int32_t h,
bool v )

Definition at line 247 of file JBig2_Image.cpp.

References data().

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

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

◆ Fill()

void CJBig2_Image::Fill ( bool v)

Definition at line 153 of file JBig2_Image.cpp.

References data().

+ Here is the call graph for this function:

◆ GetLine()

uint8_t * CJBig2_Image::GetLine ( int32_t y) const
inline

Definition at line 49 of file JBig2_Image.h.

References GetLineUnsafe().

Referenced by CopyLine(), GetPixel(), SetPixel(), TEST(), and TEST().

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

◆ GetLineUnsafe()

uint8_t * CJBig2_Image::GetLineUnsafe ( int32_t y) const
inline

Definition at line 48 of file JBig2_Image.h.

References data().

Referenced by GetLine().

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

◆ GetPixel()

int CJBig2_Image::GetPixel ( int32_t x,
int32_t y ) const

Definition at line 102 of file JBig2_Image.cpp.

References GetLine().

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

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

◆ height()

int32_t CJBig2_Image::height ( ) const
inline

Definition at line 40 of file JBig2_Image.h.

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

+ Here is the caller graph for this function:

◆ IsValidImageSize()

bool CJBig2_Image::IsValidImageSize ( int32_t w,
int32_t h )
static

Definition at line 98 of file JBig2_Image.cpp.

References kJBig2MaxImageSize.

Referenced by CJBig2_GRRDProc::Decode(), CJBig2_GRDProc::DecodeArith(), and CJBig2_GRDProc::StartDecodeArith().

+ Here is the caller graph for this function:

◆ SetPixel()

void CJBig2_Image::SetPixel ( int32_t x,
int32_t y,
int v )

Definition at line 118 of file JBig2_Image.cpp.

References GetLine().

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

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

◆ stride()

int32_t CJBig2_Image::stride ( ) const
inline

Definition at line 41 of file JBig2_Image.h.

◆ SubImage()

std::unique_ptr< CJBig2_Image > CJBig2_Image::SubImage ( int32_t x,
int32_t y,
int32_t w,
int32_t h )

Definition at line 191 of file JBig2_Image.cpp.

◆ width()

int32_t CJBig2_Image::width ( ) const
inline

Definition at line 39 of file JBig2_Image.h.

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

+ Here is the caller graph for this function:

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