60 const uint64_t kLimit = 0xFE00000000000000;
61 SkASSERT(kLimit == ~((~
static_cast<uint64_t
>(0)) >> 7));
69 n = (n << 7) | (
data & 0x7F);
70 }
while (
data & 0x80);
103bool SkWbmpCodec::readRow(uint8_t* row) {
104 return this->
stream()->
read(row, fSrcRowBytes) == fSrcRowBytes;
143 for (
int y = 0;
y <
size.height(); ++
y) {
144 if (!this->readRow(
src.get())) {
148 swizzler->swizzle(dstRow,
src.get());
149 dstRow = SkTAddOffset<void>(dstRow, rowBytes);
179int SkWbmpCodec::onGetScanlines(
void*
dst,
int count,
size_t dstRowBytes) {
182 if (!this->readRow(fSrcBuffer.
get())) {
185 fSwizzler->swizzle(dstRow, fSrcBuffer.
get());
186 dstRow = SkTAddOffset<void>(dstRow, dstRowBytes);
191bool SkWbmpCodec::onSkipScanlines(
int count) {
192 const size_t bytesToSkip =
count * fSrcRowBytes;
193 return this->
stream()->
skip(bytesToSkip) == bytesToSkip;
206 fSrcBuffer.
reset(fSrcRowBytes);
221 outResult = &resultStorage;
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
static constexpr T SkAlign8(T x)
static bool valid_alpha(SkAlphaType dstAlpha, bool srcIsOpaque)
@ kBGRA_8888_SkColorType
pixel with 8 bits for blue, green, red, alpha; in 32-bit word
@ kRGBA_F16_SkColorType
pixel with half floats for red, green, blue, alpha;
@ kGray_8_SkColorType
pixel with grayscale level in 8-bit byte
@ kRGB_565_SkColorType
pixel with 5 bits red, 6 bits green, 5 bits blue, in 16-bit word
@ kRGBA_8888_SkColorType
pixel with 8 bits for red, green, blue, alpha; in 32-bit word
#define INHERITED(method,...)
constexpr int32_t SkToS32(S x)
static bool read_mbf(SkStream *stream, uint64_t *value)
static bool read_byte(SkStream *stream, uint8_t *data)
static size_t get_src_row_bytes(int width)
static bool valid_color_type(const SkImageInfo &dstInfo)
static bool read_header(SkStream *stream, SkISize *size)
const SkEncodedInfo & getEncodedInfo() const
const Options & options() const
static std::unique_ptr< SkMemoryStream > Make(sk_sp< SkData > data)
virtual size_t read(void *buffer, size_t size)=0
static std::unique_ptr< SkSwizzler > Make(const SkEncodedInfo &encodedInfo, const SkPMColor *ctable, const SkImageInfo &dstInfo, const SkCodec::Options &, const SkIRect *frame=nullptr)
SkEncodedImageFormat onGetEncodedFormat() const override
static bool IsWbmp(const void *, size_t)
bool conversionSupported(const SkImageInfo &dst, bool srcIsOpaque, bool needsXform) override
Result onGetPixels(const SkImageInfo &, void *, size_t, const Options &, int *) override
static std::unique_ptr< SkCodec > MakeFromStream(std::unique_ptr< SkStream >, Result *)
T * reset(size_t count=0)
SK_API bool IsWbmp(const void *, size_t)
SK_API std::unique_ptr< SkCodec > Decode(std::unique_ptr< SkStream >, SkCodec::Result *, SkCodecs::DecodeContext=nullptr)
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
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
static SkEncodedInfo Make(int width, int height, Color color, Alpha alpha, int bitsPerComponent)
static constexpr SkISize Make(int32_t w, int32_t h)
SkColorSpace * colorSpace() const
SkColorType colorType() const
std::shared_ptr< const fml::Mapping > data