Go to the source code of this file.
◆ decode_memory()
bool decode_memory |
( |
const void * |
mem, |
|
|
size_t |
size, |
|
|
SkBitmap * |
bm |
|
) |
| |
|
inline |
Definition at line 21 of file CodecPriv.h.
21 {
23 if (!codec) {
24 return false;
25 }
26
31}
void allocPixels(const SkImageInfo &info, size_t rowBytes)
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)
◆ DEFINE_string()
static DEFINE_string |
( |
codecWritePath |
, |
|
|
"" |
, |
|
|
"Dump image decodes from codec unit tests here." |
|
|
) |
| |
|
static |
◆ write_bm()
void write_bm |
( |
const char * |
name, |
|
|
const SkBitmap & |
bm |
|
) |
| |
|
inline |
Definition at line 33 of file CodecPriv.h.
33 {
34 if (FLAGS_codecWritePath.isEmpty()) {
35 return;
36 }
37
43 }
44}
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
const SkPixmap & pixmap() const
static SkString Join(const char *rootPath, const char *relativePath)
const char * c_str() const
void void void appendf(const char format[],...) SK_PRINTF_LIKE(2
SK_API bool Encode(SkWStream *dst, const SkPixmap &src, const Options &options)