Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <cpdf_dib.h>
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_ColorSpace > | GetColorSpace () 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_DIB > | DetachMask () |
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_DIBitmap > | Realize () const |
RetainPtr< CFX_DIBitmap > | ClipTo (const FX_RECT &rect) const |
RetainPtr< CFX_DIBitmap > | ConvertTo (FXDIB_Format format) const |
RetainPtr< CFX_DIBitmap > | StretchTo (int dest_width, int dest_height, const FXDIB_ResampleOptions &options, const FX_RECT *pClip) const |
RetainPtr< CFX_DIBitmap > | TransformTo (const CFX_Matrix &mtDest, int *left, int *top) const |
RetainPtr< CFX_DIBitmap > | SwapXY (bool bXFlip, bool bYFlip) const |
RetainPtr< CFX_DIBitmap > | FlipImage (bool bXFlip, bool bYFlip) const |
RetainPtr< CFX_DIBitmap > | CloneAlphaMask () 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_DIBitmap > | ClipToInternal (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 |
Definition at line 41 of file cpdf_dib.h.
|
strong |
Enumerator | |
---|---|
kFail | |
kSuccess | |
kContinue |
Definition at line 43 of file cpdf_dib.h.
|
overrideprivatedefault |
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==().
Definition at line 881 of file cpdf_dib.cpp.
|
inline |
Definition at line 52 of file cpdf_dib.h.
|
overridevirtual |
Reimplemented from CFX_DIBBase.
Definition at line 1276 of file cpdf_dib.cpp.
|
inline |
Definition at line 53 of file cpdf_dib.h.
|
overridevirtual |
Implements CFX_DIBBase.
Definition at line 1135 of file cpdf_dib.cpp.
References CFX_DIBBase::HasPalette(), and CFX_DIBBase::m_Width.
bool CPDF_DIB::IsJBigImage | ( | ) | const |
Definition at line 885 of file cpdf_dib.cpp.
bool CPDF_DIB::Load | ( | ) |
Definition at line 224 of file cpdf_dib.cpp.
References kFail.
|
overridevirtual |
Reimplemented from CFX_DIBBase.
Definition at line 1272 of file cpdf_dib.cpp.
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.
CPDF_DIB::CONSTRUCT_VIA_MAKE_RETAIN |
Definition at line 45 of file cpdf_dib.h.