Flutter Engine
The Flutter Engine
|
#include "include/core/SkColor.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkScalar.h"
#include "include/core/SkTypes.h"
#include "include/private/SkColorData.h"
#include "include/private/base/SkCPUTypes.h"
#include "include/private/base/SkNoncopyable.h"
#include "include/private/base/SkTo.h"
#include <cstdint>
Go to the source code of this file.
Classes | |
class | SkColorSpaceLuminance |
class | SkTMaskGamma< R_LUM_BITS, G_LUM_BITS, B_LUM_BITS > |
class | SkTMaskPreBlend< R_LUM_BITS, G_LUM_BITS, B_LUM_BITS > |
Functions | |
void | SkTMaskGamma_build_correcting_lut (uint8_t table[256], U8CPU srcI, SkScalar contrast, const SkColorSpaceLuminance &srcConvert, SkScalar srcGamma, const SkColorSpaceLuminance &dstConvert, SkScalar dstGamma) |
template<U8CPU N> | |
static U8CPU | sk_t_scale255 (U8CPU base) |
template<> | |
U8CPU | sk_t_scale255< 1 > (U8CPU base) |
template<> | |
U8CPU | sk_t_scale255< 2 > (U8CPU base) |
template<> | |
U8CPU | sk_t_scale255< 4 > (U8CPU base) |
template<> | |
U8CPU | sk_t_scale255< 8 > (U8CPU base) |
template<bool APPLY_LUT> | |
static U8CPU | sk_apply_lut_if (U8CPU component, const uint8_t *) |
template<> | |
U8CPU | sk_apply_lut_if< true > (U8CPU component, const uint8_t *lut) |
|
inlinestatic |
If APPLY_LUT is false, returns component unchanged. If APPLY_LUT is true, returns lut[component].
APPLY_LUT | whether or not the look-up table should be applied to component. @component the initial component. @lut a look-up table which transforms the component. |
Definition at line 229 of file SkMaskGamma.h.
|
inline |
Definition at line 232 of file SkMaskGamma.h.
Scales base <= 2^N-1 to 2^8-1
N | [1, 8] the number of bits used by base. |
base | the number to be scaled to [0, 255]. |
Definition at line 61 of file SkMaskGamma.h.
|
inline |
Definition at line 69 of file SkMaskGamma.h.
|
inline |
Definition at line 72 of file SkMaskGamma.h.
|
inline |
Definition at line 75 of file SkMaskGamma.h.
|
inline |
Definition at line 78 of file SkMaskGamma.h.
void SkTMaskGamma_build_correcting_lut | ( | uint8_t | table[256], |
U8CPU | srcI, | ||
SkScalar | contrast, | ||
const SkColorSpaceLuminance & | srcConvert, | ||
SkScalar | srcGamma, | ||
const SkColorSpaceLuminance & | dstConvert, | ||
SkScalar | dstGamma | ||
) |
Definition at line 78 of file SkMaskGamma.cpp.