| 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 |
nothing calls this directly
no test coverage detected