MCPcopy Create free account
hub / github.com/davisking/dlib / read_rgba

Method read_rgba

dlib/image_loader/webp_loader.cpp:92–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90// ----------------------------------------------------------------------------------------
91
92 void webp_loader::read_rgba(unsigned char *out, const size_t out_size, const int out_stride) const
93 {
94 if (!WebPDecodeRGBAInto(data_.data(), data_.size(), out, out_size, out_stride))
95 {
96 throw image_load_error("webp_loader: decoding failed");
97 }
98 }
99
100// ----------------------------------------------------------------------------------------
101

Callers

nothing calls this directly

Calls 3

image_load_errorClass · 0.70
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected