| 100 | // ---------------------------------------------------------------------------------------- |
| 101 | |
| 102 | void webp_loader::read_bgra(unsigned char *out, const size_t out_size, const int out_stride) const |
| 103 | { |
| 104 | if (!WebPDecodeBGRAInto(data_.data(), data_.size(), out, out_size, out_stride)) |
| 105 | { |
| 106 | throw image_load_error("webp_loader: decoding failed"); |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | // ---------------------------------------------------------------------------------------- |
| 111 |
nothing calls this directly
no test coverage detected