Skia
2DGraphicsLibrary
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SkColorSpaceTransferFn Struct Reference

Contains the coefficients for a common transfer function equation, specified as a transformation from a curved space to linear. More...

#include <SkColorSpace.h>

Public Member Functions

SkColorSpaceTransferFn invert () const
 Produces a new parametric transfer function equation that is the mathematical inverse of this one.
 

Public Attributes

float fG
 
float fA
 
float fB
 
float fC
 
float fD
 
float fE
 
float fF
 

Detailed Description

Contains the coefficients for a common transfer function equation, specified as a transformation from a curved space to linear.

LinearVal = C*InputVal + F , for 0.0f <= InputVal < D LinearVal = (A*InputVal + B)^G + E, for D <= InputVal <= 1.0f

Function is undefined if InputVal is not in [ 0.0f, 1.0f ]. Resulting LinearVals must be in [ 0.0f, 1.0f ]. Function must be positive and increasing.


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