| 120 | // ---------------------------------------------------------------------------------------- |
| 121 | |
| 122 | void webp_loader::read_bgr(unsigned char *out, const size_t out_size, const int out_stride) const |
| 123 | { |
| 124 | if (!WebPDecodeBGRInto(data_.data(), data_.size(), out, out_size, out_stride)) |
| 125 | { |
| 126 | throw image_load_error("webp_loader: decoding failed"); |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | // ---------------------------------------------------------------------------------------- |
| 131 |
nothing calls this directly
no test coverage detected