Definition at line 48 of file get_images_from_skps.cpp.
◆ Sniffer()
Sniffer::Sniffer |
( |
std::string |
name | ) |
|
|
inline |
◆ sniff()
void Sniffer::sniff |
( |
const void * |
ptr, |
|
|
size_t |
len |
|
) |
| |
|
inline |
Definition at line 56 of file get_images_from_skps.cpp.
56 {
60
61 if (
gSeen.contains(digest)) {
62 return;
63 }
65
68 if (!codec) {
69
70
73 return;
74 }
76 switch (codec->getEncodedFormat()) {
85 default:
86
87
89 }
90
91 auto writeImage = [&] (
const char*
name,
int num) {
94
97
99 };
100
101 if (FLAGS_testDecode) {
111 break;
112 default:
114 if (FLAGS_writeFailedImages) {
116 }
118 return;
119 }
120 }
121
122 if (FLAGS_writeImages) {
124 }
125
127 }
static SkMD5::Digest md5(const SkBitmap &bm)
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static std::unique_ptr< SkCodec > MakeFromData(sk_sp< SkData >, SkSpan< const SkCodecs::Decoder > decoders, SkPngChunkReader *=nullptr)
static sk_sp< SkData > MakeWithoutCopy(const void *data, size_t length)
static std::map< std::string, unsigned int > gSkpToUnknownCount
static THashSet< SkMD5::Digest > gSeen
static const char * gOutputDir
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
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data
SkImageInfo makeColorType(SkColorType newColorType) const
◆ skpName
std::string Sniffer::skpName |
The documentation for this struct was generated from the following file: