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 Types inherited from CFX_DIBBase
using kPlatformRGBStruct = FX_BGR_STRUCT<uint8_t>

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
template<typename T>
pdfium::span< const T > GetScanlineAs (int line) const
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_AggClipRgn *pClipRgn) const
bool IsPremultiplied () 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::kBgr
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
void SetFormat (FXDIB_Format format)
void SetWidth (int width)
void SetHeight (int height)
void SetPitch (uint32_t pitch)
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
DataVector< uint32_t > 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 341 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 903 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 1302 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 1155 of file cpdf_dib.cpp.

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

Here is the call graph for this function:

◆ IsJBigImage()

bool CPDF_DIB::IsJBigImage ( ) const

Definition at line 907 of file cpdf_dib.cpp.

◆ Load()

bool CPDF_DIB::Load ( )

Definition at line 241 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 1298 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 295 of file cpdf_dib.cpp.

References CFX_DIBBase::GetHeight(), CFX_DIBBase::GetWidth(), kContinue, kFail, and kSuccess.

Here is the call graph for this function:

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: