Skia
2D Graphics Library
SkNamedTransferFn Namespace Reference

Variables

static constexpr skcms_TransferFunction kSRGB
 
static constexpr skcms_TransferFunction k2Dot2
 
static constexpr skcms_TransferFunction kLinear
 
static constexpr skcms_TransferFunction kRec2020
 
static constexpr skcms_TransferFunction kPQ
 
static constexpr skcms_TransferFunction kHLG
 

Variable Documentation

◆ k2Dot2

constexpr skcms_TransferFunction SkNamedTransferFn::k2Dot2
staticconstexpr
Initial value:
=
{ 2.2f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f }

◆ kHLG

constexpr skcms_TransferFunction SkNamedTransferFn::kHLG
staticconstexpr
Initial value:
=
{-3.0f, 2.0f, 2.0f, 1/0.17883277f, 0.28466892f, 0.55991073f, 0.0f }

◆ kLinear

constexpr skcms_TransferFunction SkNamedTransferFn::kLinear
staticconstexpr
Initial value:
=
{ 1.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f }

◆ kPQ

constexpr skcms_TransferFunction SkNamedTransferFn::kPQ
staticconstexpr
Initial value:
=
{-2.0f, -107/128.0f, 1.0f, 32/2523.0f, 2413/128.0f, -2392/128.0f, 8192/1305.0f }

◆ kRec2020

constexpr skcms_TransferFunction SkNamedTransferFn::kRec2020
staticconstexpr
Initial value:
=
{2.22222f, 0.909672f, 0.0903276f, 0.222222f, 0.0812429f, 0, 0}

◆ kSRGB

constexpr skcms_TransferFunction SkNamedTransferFn::kSRGB
staticconstexpr
Initial value:
=
{ 2.4f, (float)(1/1.055), (float)(0.055/1.055), (float)(1/12.92), 0.04045f, 0.0f, 0.0f }