MCPcopy Create free account
hub / github.com/SmingHub/Sming / AnimatedGifTask

Method AnimatedGifTask

Sming/Libraries/AnimatedGIF/src/AnimatedGifTask.cpp:122–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122AnimatedGifTask::AnimatedGifTask(Graphics::Surface& surface, const void* data, size_t length, bool inFlash)
123 : surface(surface)
124{
125 auto ptr = static_cast<uint8_t*>(const_cast<void*>(data));
126 if(inFlash) {
127 gif.openFLASH(ptr, length, draw);
128 } else {
129 gif.open(ptr, length, draw);
130 }
131}
132
133void AnimatedGifTask::loop()
134{

Callers

nothing calls this directly

Calls 1

openMethod · 0.45

Tested by

no test coverage detected