MCPcopy Create free account
hub / github.com/Tencent/libpag / readFrame

Method readFrame

src/rendering/PAGDecoder.cpp:158–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158bool PAGDecoder::readFrame(int index, void* pixels, size_t rowBytes, ColorType colorType,
159 AlphaType alphaType) {
160 std::lock_guard<std::mutex> autoLock(locker);
161 auto info =
162 tgfx::ImageInfo::Make(_width, _height, ToTGFX(colorType), ToTGFX(alphaType), rowBytes);
163 auto bitmap = BitmapBuffer::Wrap(info, pixels);
164 return readFrameInternal(index, bitmap);
165}
166
167bool PAGDecoder::readFrame(int index, HardwareBufferRef hardwareBuffer) {
168 std::lock_guard<std::mutex> autoLock(locker);

Callers 8

PAG_TESTFunction · 0.45
getImageMethod · 0.45
pag_decoder_read_frameFunction · 0.45
readFrameInternalMethod · 0.45
renderFrameMethod · 0.45

Calls 2

MakeFunction · 0.50
ToTGFXFunction · 0.50

Tested by 1

PAG_TESTFunction · 0.36