![]() |
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_colorspace.h>
Public Types | |
enum class | Family { kUnknown = 0 , kDeviceGray = 1 , kDeviceRGB = 2 , kDeviceCMYK = 3 , kCalGray = 4 , kCalRGB = 5 , kLab = 6 , kICCBased = 7 , kSeparation = 8 , kDeviceN = 9 , kIndexed = 10 , kPattern = 11 } |
Public Member Functions | |
std::vector< float > | CreateBufAndSetDefaultColor () const |
uint32_t | ComponentCount () const |
Family | GetFamily () const |
bool | IsSpecial () const |
FX_RGB_STRUCT< float > | GetRGBOrZerosOnError (pdfium::span< const float > pBuf) const |
virtual std::optional< FX_RGB_STRUCT< float > > | GetRGB (pdfium::span< const float > pBuf) const =0 |
virtual void | GetDefaultValue (int iComponent, float *value, float *min, float *max) const |
virtual void | TranslateImageLine (pdfium::span< uint8_t > dest_span, pdfium::span< const uint8_t > src_span, int pixels, int image_width, int image_height, bool bTransMask) const |
virtual void | EnableStdConversion (bool bEnabled) |
virtual bool | IsNormal () const |
virtual const CPDF_PatternCS * | AsPatternCS () const |
virtual const CPDF_IndexedCS * | AsIndexedCS () const |
Public Member Functions inherited from fxcrt::Retainable | |
Retainable ()=default | |
bool | HasOneRef () const |
Public Member Functions inherited from fxcrt::Observable | |
Observable () | |
Observable (const Observable &that)=delete | |
Observable & | operator= (const Observable &that)=delete |
~Observable () | |
void | AddObserver (ObserverIface *pObserver) |
void | RemoveObserver (ObserverIface *pObserver) |
void | NotifyObservers () |
Static Public Member Functions | |
static void | InitializeGlobals () |
static void | DestroyGlobals () |
static RetainPtr< CPDF_ColorSpace > | GetStockCS (Family family) |
static RetainPtr< CPDF_ColorSpace > | GetStockCSForName (const ByteString &name) |
static RetainPtr< CPDF_ColorSpace > | Load (CPDF_Document *pDoc, const CPDF_Object *pObj, std::set< const CPDF_Object * > *pVisited) |
static RetainPtr< CPDF_ColorSpace > | AllocateColorSpaceForID (CPDF_Document *pDocument, uint32_t family_id) |
static uint32_t | ComponentsForFamily (Family family) |
Protected Member Functions | |
CPDF_ColorSpace (Family family) | |
~CPDF_ColorSpace () override | |
virtual uint32_t | v_Load (CPDF_Document *pDoc, const CPDF_Array *pArray, std::set< const CPDF_Object * > *pVisited)=0 |
void | SetComponentsForStockCS (uint32_t nComponents) |
bool | IsStdConversionEnabled () const |
bool | HasSameArray (const CPDF_Object *pObj) const |
Protected Member Functions inherited from fxcrt::Retainable | |
virtual | ~Retainable ()=default |
Protected Member Functions inherited from fxcrt::Observable | |
size_t | ActiveObserversForTesting () const |
Friends | |
class | CPDF_CalGray_TranslateImageLine_Test |
class | CPDF_CalRGB_TranslateImageLine_Test |
Definition at line 53 of file cpdf_colorspace.h.
|
strong |
Enumerator | |
---|---|
kUnknown | |
kDeviceGray | |
kDeviceRGB | |
kDeviceCMYK | |
kCalGray | |
kCalRGB | |
kLab | |
kICCBased | |
kSeparation | |
kDeviceN | |
kIndexed | |
kPattern |
Definition at line 55 of file cpdf_colorspace.h.
|
explicitprotected |
Definition at line 663 of file cpdf_colorspace.cpp.
Referenced by CPDF_BasedCS::CPDF_BasedCS().
|
overrideprotecteddefault |
|
static |
|
virtual |
Reimplemented in CPDF_IndexedCS.
Definition at line 659 of file cpdf_colorspace.cpp.
|
virtual |
Reimplemented in CPDF_PatternCS.
Definition at line 655 of file cpdf_colorspace.cpp.
uint32_t CPDF_ColorSpace::ComponentCount | ( | ) | const |
Definition at line 601 of file cpdf_colorspace.cpp.
|
static |
Definition at line 576 of file cpdf_colorspace.cpp.
References kDeviceCMYK, kDeviceGray, and kDeviceRGB.
std::vector< float > CPDF_ColorSpace::CreateBufAndSetDefaultColor | ( | ) | const |
Definition at line 589 of file cpdf_colorspace.cpp.
References GetDefaultValue().
|
static |
Definition at line 469 of file cpdf_colorspace.cpp.
Referenced by CPDF_PageModule::Destroy().
|
virtual |
Reimplemented in CPDF_BasedCS.
Definition at line 641 of file cpdf_colorspace.cpp.
Referenced by CPDF_BasedCS::EnableStdConversion().
|
virtual |
Definition at line 605 of file cpdf_colorspace.cpp.
Referenced by CreateBufAndSetDefaultColor().
|
inline |
Definition at line 95 of file cpdf_colorspace.h.
Referenced by CPDF_DeviceCS::GetRGB(), IsNormal(), IsSpecial(), and CPDF_DeviceCS::TranslateImageLine().
|
pure virtual |
Implemented in CPDF_DeviceCS, CPDF_IndexedCS, and CPDF_PatternCS.
|
inline |
Definition at line 104 of file cpdf_colorspace.h.
|
static |
Definition at line 475 of file cpdf_colorspace.cpp.
Referenced by FPDFPageObj_SetFillColor(), FPDFPageObj_SetStrokeColor(), and CPDF_Color::SetValueForPattern().
|
static |
Definition at line 480 of file cpdf_colorspace.cpp.
References kDeviceCMYK, kDeviceGray, kDeviceRGB, kPattern, and fxcrt::ByteString::operator==().
|
inlineprotected |
Definition at line 147 of file cpdf_colorspace.h.
Referenced by CPDF_IndexedCS::v_Load(), and CPDF_PatternCS::v_Load().
|
static |
Definition at line 463 of file cpdf_colorspace.cpp.
Referenced by CPDF_PageModule::Create().
|
virtual |
Definition at line 648 of file cpdf_colorspace.cpp.
References GetFamily(), kCalGray, kCalRGB, kDeviceCMYK, kDeviceGray, and kDeviceRGB.
|
inline |
Definition at line 96 of file cpdf_colorspace.h.
References GetFamily(), kDeviceN, kIndexed, kPattern, and kSeparation.
|
inlineprotected |
Definition at line 146 of file cpdf_colorspace.h.
Referenced by CPDF_DeviceCS::GetRGB(), and CPDF_DeviceCS::TranslateImageLine().
|
static |
Definition at line 494 of file cpdf_colorspace.cpp.
References CPDF_Object::AsArray(), CPDF_Object::AsStream(), CPDF_Object::GetString(), CPDF_Array::IsEmpty(), and CPDF_Object::IsName().
|
protected |
Definition at line 667 of file cpdf_colorspace.cpp.
Referenced by CPDF_PatternCS::InitializeStockPattern().
|
virtual |
Reimplemented in CPDF_DeviceCS.
Definition at line 614 of file cpdf_colorspace.cpp.
References kIndexed.
|
protectedpure virtual |
Implemented in CPDF_DeviceCS, CPDF_IndexedCS, and CPDF_PatternCS.
|
friend |
Definition at line 150 of file cpdf_colorspace.h.
|
friend |
Definition at line 151 of file cpdf_colorspace.h.