MCPcopy Create free account
hub / github.com/Tencent/tgfx / readPixels

Method readPixels

src/core/codecs/jpeg/JpegCodec.cpp:186–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186bool 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
194bool JpegCodec::onReadPixels(ColorType colorType, AlphaType alphaType, size_t dstRowBytes,
195 void* dstPixels) const {

Callers 5

onReadPixelsMethod · 0.45
EncodeMethod · 0.45
onReadPixelsMethod · 0.45
EncodeMethod · 0.45
readScaledPixelsMethod · 0.45

Calls 5

widthMethod · 0.45
heightMethod · 0.45
colorTypeMethod · 0.45
alphaTypeMethod · 0.45
rowBytesMethod · 0.45

Tested by

no test coverage detected