| 110 | // ---------------------------------------------------------------------------------------- |
| 111 | |
| 112 | void webp_loader::read_rgb(unsigned char *out, const size_t out_size, const int out_stride) const |
| 113 | { |
| 114 | if (!WebPDecodeRGBInto(data_.data(), data_.size(), out, out_size, out_stride)) |
| 115 | { |
| 116 | throw image_load_error("webp_loader: decoding failed"); |
| 117 | } |
| 118 | } |
| 119 | |
| 120 | // ---------------------------------------------------------------------------------------- |
| 121 |
nothing calls this directly
no test coverage detected