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
CPDF_DIB Class Referencefinal

#include <cpdf_dib.h>

+ Inheritance diagram for CPDF_DIB:
+ Collaboration diagram for CPDF_DIB:

Public Types

enum class  LoadState : uint8_t { kFail , kSuccess , kContinue }
 

Public Member Functions

pdfium::span< const uint8_t > GetScanline (int line) const override
 
bool SkipToScanline (int line, PauseIndicatorIface *pPause) const override
 
size_t GetEstimatedImageMemoryBurden () const override
 
RetainPtr< CPDF_ColorSpaceGetColorSpace () const
 
uint32_t GetMatteColor () const
 
bool IsJBigImage () const
 
bool Load ()
 
LoadState StartLoadDIBBase (bool bHasMask, const CPDF_Dictionary *pFormResources, const CPDF_Dictionary *pPageResources, bool bStdCS, CPDF_ColorSpace::Family GroupFamily, bool bLoadMask, const CFX_Size &max_size_required)
 
LoadState ContinueLoadDIBBase (PauseIndicatorIface *pPause)
 
RetainPtr< CPDF_DIBDetachMask ()
 
- Public Member Functions inherited from CFX_DIBBase
int GetWidth () const
 
int GetHeight () const
 
uint32_t GetPitch () const
 
FXDIB_Format GetFormat () const
 
int GetBPP () const
 
bool IsMaskFormat () const
 
bool IsAlphaFormat () const
 
bool IsOpaqueImage () const
 
bool HasPalette () const
 
pdfium::span< const uint32_t > GetPaletteSpan () const
 
size_t GetRequiredPaletteSize () const
 
uint32_t GetPaletteArgb (int index) const
 
void SetPaletteArgb (int index, uint32_t color)
 
void SetPalette (pdfium::span< const uint32_t > src_palette)
 
void TakePalette (DataVector< uint32_t > src_palette)
 
RetainPtr< CFX_DIBitmapRealize () const
 
RetainPtr< CFX_DIBitmapClipTo (const FX_RECT &rect) const
 
RetainPtr< CFX_DIBitmapConvertTo (FXDIB_Format format) const
 
RetainPtr< CFX_DIBitmapStretchTo (int dest_width, int dest_height, const FXDIB_ResampleOptions &options, const FX_RECT *pClip) const
 
RetainPtr< CFX_DIBitmapTransformTo (const CFX_Matrix &mtDest, int *left, int *top) const
 
RetainPtr< CFX_DIBitmapSwapXY (bool bXFlip, bool bYFlip) const
 
RetainPtr< CFX_DIBitmapFlipImage (bool bXFlip, bool bYFlip) const
 
RetainPtr< CFX_DIBitmapCloneAlphaMask () const
 
bool GetOverlapRect (int &dest_left, int &dest_top, int &width, int &height, int src_width, int src_height, int &src_left, int &src_top, const CFX_ClipRgn *pClipRgn) const
 
- Public Member Functions inherited from fxcrt::Retainable
 Retainable ()=default
 
bool HasOneRef () const
 

Public Attributes

 CONSTRUCT_VIA_MAKE_RETAIN
 

Private Member Functions

 ~CPDF_DIB () override
 

Additional Inherited Members

- Static Public Attributes inherited from CFX_DIBBase
static constexpr FXDIB_Format kPlatformRGBFormat = FXDIB_Format::kRgb
 
static constexpr uint32_t kPaletteSize = 256
 
- Protected Member Functions inherited from CFX_DIBBase
 CFX_DIBBase ()
 
 ~CFX_DIBBase () override
 
RetainPtr< CFX_DIBitmapClipToInternal (const FX_RECT *pClip) const
 
void BuildPalette ()
 
int FindPalette (uint32_t color) const
 
- Protected Member Functions inherited from fxcrt::Retainable
virtual ~Retainable ()=default
 
- Static Protected Member Functions inherited from CFX_DIBBase
static DataVector< uint32_t > ConvertBuffer (FXDIB_Format dest_format, pdfium::span< uint8_t > dest_buf, int dest_pitch, int width, int height, const RetainPtr< const CFX_DIBBase > &pSrcBitmap, int src_left, int src_top)
 
- Protected Attributes inherited from CFX_DIBBase
FXDIB_Format m_Format = FXDIB_Format::kInvalid
 
int m_Width = 0
 
int m_Height = 0
 
uint32_t m_Pitch = 0
 
DataVector< uint32_t > m_palette
 

Detailed Description

Definition at line 41 of file cpdf_dib.h.

Member Enumeration Documentation

◆ LoadState

enum class CPDF_DIB::LoadState : uint8_t
strong
Enumerator
kFail 
kSuccess 
kContinue 

Definition at line 43 of file cpdf_dib.h.

Member Function Documentation

◆ ~CPDF_DIB()

CPDF_DIB::~CPDF_DIB ( )
overrideprivatedefault

◆ ContinueLoadDIBBase()

CPDF_DIB::LoadState CPDF_DIB::ContinueLoadDIBBase ( PauseIndicatorIface * pPause)

Definition at line 315 of file cpdf_dib.cpp.

References kContinue, kDecodeToBeContinued, kError, kFail, kSuccess, fxcrt::ByteString::operator!=(), and fxcrt::ByteString::operator==().

+ Here is the call graph for this function:

◆ DetachMask()

RetainPtr< CPDF_DIB > CPDF_DIB::DetachMask ( )

Definition at line 881 of file cpdf_dib.cpp.

◆ GetColorSpace()

RetainPtr< CPDF_ColorSpace > CPDF_DIB::GetColorSpace ( ) const
inline

Definition at line 52 of file cpdf_dib.h.

◆ GetEstimatedImageMemoryBurden()

size_t CPDF_DIB::GetEstimatedImageMemoryBurden ( ) const
overridevirtual

Reimplemented from CFX_DIBBase.

Definition at line 1276 of file cpdf_dib.cpp.

◆ GetMatteColor()

uint32_t CPDF_DIB::GetMatteColor ( ) const
inline

Definition at line 53 of file cpdf_dib.h.

◆ GetScanline()

pdfium::span< const uint8_t > CPDF_DIB::GetScanline ( int line) const
overridevirtual

Implements CFX_DIBBase.

Definition at line 1135 of file cpdf_dib.cpp.

References CFX_DIBBase::HasPalette(), and CFX_DIBBase::m_Width.

+ Here is the call graph for this function:

◆ IsJBigImage()

bool CPDF_DIB::IsJBigImage ( ) const

Definition at line 885 of file cpdf_dib.cpp.

◆ Load()

bool CPDF_DIB::Load ( )

Definition at line 224 of file cpdf_dib.cpp.

References kFail.

◆ SkipToScanline()

bool CPDF_DIB::SkipToScanline ( int line,
PauseIndicatorIface * pPause ) const
overridevirtual

Reimplemented from CFX_DIBBase.

Definition at line 1272 of file cpdf_dib.cpp.

◆ StartLoadDIBBase()

CPDF_DIB::LoadState CPDF_DIB::StartLoadDIBBase ( bool bHasMask,
const CPDF_Dictionary * pFormResources,
const CPDF_Dictionary * pPageResources,
bool bStdCS,
CPDF_ColorSpace::Family GroupFamily,
bool bLoadMask,
const CFX_Size & max_size_required )

Definition at line 269 of file cpdf_dib.cpp.

References kContinue, kFail, kSuccess, CFX_DIBBase::m_Height, and CFX_DIBBase::m_Width.

Member Data Documentation

◆ CONSTRUCT_VIA_MAKE_RETAIN

CPDF_DIB::CONSTRUCT_VIA_MAKE_RETAIN

Definition at line 45 of file cpdf_dib.h.


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