56 for (
int i = 0;
i < 256;
i++) {
62 memcpy(fTable,
table,
sizeof(fTable));
73 dst->bounds() =
src.fBounds;
76 dst->image() =
nullptr;
81 const uint8_t* srcP =
src.fImage;
82 uint8_t* dstP =
dst->image();
83 const uint8_t*
table = fTable;
84 int dstWidth =
dst->fBounds.width();
85 int extraZeros =
dst->fRowBytes - dstWidth;
87 for (
int y =
dst->fBounds.height() - 1;
y >= 0; --
y) {
88 for (
int x = dstWidth - 1;
x >= 0; --
x) {
91 srcP +=
src.fRowBytes;
97 for (
int i = extraZeros - 1;
i >= 0; --
i) {
144 const float dx = 1 / 255.0f;
145 const float g = gamma;
148 for (
int i = 0;
i < 256;
i++) {
176 for (j = 0; j < 256; j++) {
182 for (; j < 256; j++) {
static constexpr T SkAlign4(T x)
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
#define SkFixedRoundToInt(x)
#define SK_FLATTENABLE_HOOKS(type)
#define sk_float_round2int(x)
static constexpr const T & SkTPin(const T &x, const T &lo, const T &hi)
void flatten(SkWriteBuffer &) const override
SkTableMaskFilterImpl(const uint8_t table[256])
SkMask::Format getFormat() const override
bool filterMask(SkMaskBuilder *, const SkMask &, const SkMatrix &, SkIPoint *) const override
~SkTableMaskFilterImpl() override
SkMaskFilterBase::Type type() const override
static void MakeGammaTable(uint8_t table[256], SkScalar gamma)
static SkMaskFilter * CreateGamma(SkScalar gamma)
static SkMaskFilter * Create(const uint8_t table[256])
static void MakeClipTable(uint8_t table[256], uint8_t min, uint8_t max)
static SkMaskFilter * CreateClip(uint8_t min, uint8_t max)
virtual void writeByteArray(const void *data, size_t size)=0
static float max(float r, float g, float b)
static float min(float r, float g, float b)
skia_private::AutoTArray< sk_sp< SkImageFilter > > filters TypedMatrix matrix TypedMatrix matrix SkScalar dx
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer
void set(int32_t x, int32_t y)
static uint8_t * AllocImage(size_t bytes, AllocType=kUninit_Alloc)
@ kA8_Format
8bits per pixel mask (e.g. antialiasing)