Skia
2DGraphicsLibrary
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SkICC Class Reference
Inheritance diagram for SkICC:
SkRefCnt SkRefCntBase

Classes

struct  Channel
 Please do not call this unless isNumericalTransferFn() has been called and it fails. More...
 
struct  Tables
 

Public Member Functions

bool toXYZD50 (SkMatrix44 *toXYZD50) const
 If the gamut can be represented as transformation into XYZ D50, returns true and sets the proper values in |toXYZD50|. More...
 
bool isNumericalTransferFn (SkColorSpaceTransferFn *fn) const
 If the transfer function can be represented as coefficients to the standard equation, returns true and sets |fn| to the proper values. More...
 
bool rawTransferFnData (Tables *tables) const
 
- Public Member Functions inherited from SkRefCntBase
 SkRefCntBase ()
 Default construct, initializing the reference count to 1.
 
virtual ~SkRefCntBase ()
 Destruct, asserting that the reference count is 1.
 
int32_t getRefCnt () const
 Return the reference count. More...
 
void validate () const
 
bool unique () const
 May return true if the caller is the only owner. More...
 
void ref () const
 Increment the reference count. More...
 
void unref () const
 Decrement the reference count. More...
 

Static Public Member Functions

static sk_sp< SkICCMake (const void *, size_t)
 Parse an ICC profile. More...
 
static sk_sp< SkDataWriteToICC (const SkColorSpaceTransferFn &fn, const SkMatrix44 &toXYZD50)
 Write an ICC profile with transfer function |fn| and gamut |toXYZD50|.
 

Private Member Functions

 SkICC (sk_sp< SkColorSpace > colorSpace)
 

Private Attributes

sk_sp< SkColorSpacefColorSpace
 

Friends

class ICCTest
 

Additional Inherited Members

- Protected Member Functions inherited from SkRefCntBase
void internal_dispose_restore_refcnt_to_1 () const
 Allow subclasses to call this if they've overridden internal_dispose so they can reset fRefCnt before the destructor is called or if they choose not to call the destructor (e.g. More...
 

Member Function Documentation

bool SkICC::isNumericalTransferFn ( SkColorSpaceTransferFn fn) const

If the transfer function can be represented as coefficients to the standard equation, returns true and sets |fn| to the proper values.

If not, returns false. This indicates one of the following: (1) The R, G, and B transfer functions are not the same. (2) The transfer function is represented as a table that we have not managed to match to a standard curve. (3) The ICC data is too complex to isolate a single transfer function.

static sk_sp<SkICC> SkICC::Make ( const void *  ,
size_t   
)
static

Parse an ICC profile.

Returns nullptr if the data is not a valid ICC profile or if the profile input space is not RGB.

bool SkICC::toXYZD50 ( SkMatrix44 toXYZD50) const

If the gamut can be represented as transformation into XYZ D50, returns true and sets the proper values in |toXYZD50|.

If not, returns false. This indicates that the ICC data is too complex to isolate a simple gamut transformation.


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