| 184 | } |
| 185 | |
| 186 | bool JpegCodec::readPixels(const ImageInfo& dstInfo, void* dstPixels) const { |
| 187 | if (auto scaleDimensions = getScaledDimensions(dstInfo.width(), dstInfo.height())) { |
| 188 | return readScaledPixels(dstInfo.colorType(), dstInfo.alphaType(), dstInfo.rowBytes(), dstPixels, |
| 189 | scaleDimensions); |
| 190 | } |
| 191 | return ImageCodec::readPixels(dstInfo, dstPixels); |
| 192 | } |
| 193 | |
| 194 | bool JpegCodec::onReadPixels(ColorType colorType, AlphaType alphaType, size_t dstRowBytes, |
| 195 | void* dstPixels) const { |
no test coverage detected