Go to the source code of this file.
◆ get_src_row_bytes()
static size_t get_src_row_bytes |
( |
int |
width | ) |
|
|
inlinestatic |
Definition at line 33 of file SkWbmpCodec.cpp.
33 {
35}
static constexpr T SkAlign8(T x)
◆ read_byte()
static bool read_byte |
( |
SkStream * |
stream, |
|
|
uint8_t * |
data |
|
) |
| |
|
static |
◆ read_header()
Definition at line 75 of file SkWbmpCodec.cpp.
75 {
76 {
78 if (!
read_byte(stream, &data) || data != 0) {
79 return false;
80 }
81 if (!
read_byte(stream, &data) || (data & 0x9F)) {
82 return false;
83 }
84 }
85
88 return false;
89 }
91 return false;
92 }
93 if (size) {
95 }
96 return true;
97}
constexpr int32_t SkToS32(S x)
static bool read_mbf(SkStream *stream, uint64_t *value)
static bool read_byte(SkStream *stream, uint8_t *data)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data
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 constexpr SkISize Make(int32_t w, int32_t h)
◆ read_mbf()
static bool read_mbf |
( |
SkStream * |
stream, |
|
|
uint64_t * |
value |
|
) |
| |
|
static |
Definition at line 57 of file SkWbmpCodec.cpp.
57 {
58 uint64_t n = 0;
60 const uint64_t kLimit = 0xFE00000000000000;
61 SkASSERT(kLimit == ~((~
static_cast<uint64_t
>(0)) >> 7));
62 do {
63 if (n & kLimit) {
64 return false;
65 }
66 if (
stream->read(&data, 1) != 1) {
67 return false;
68 }
69 n = (n << 7) | (data & 0x7F);
70 } while (data & 0x80);
72 return true;
73}
◆ valid_color_type()
static bool valid_color_type |
( |
const SkImageInfo & |
dstInfo | ) |
|
|
inlinestatic |
Definition at line 37 of file SkWbmpCodec.cpp.
37 {
43 return true;
46 default:
47 return false;
48 }
49}
@ 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
SkColorSpace * colorSpace() const
SkColorType colorType() const