MCPcopy Create free account
hub / github.com/BruceDevices/firmware / openGIF

Method openGIF

src/core/display.cpp:1460–1474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1458} /* GIFDraw() */
1459
1460bool Gif::openGIF(FS *fs, const char *filename) {
1461 if (fs != NULL) {
1462 GifFs = fs;
1463 if (!fs->exists(filename)) return false;
1464 } else {
1465 GifFs = NULL;
1466 }
1467
1468 gif = new AnimatedGIF();
1469 gif->begin(BIG_ENDIAN_PIXELS);
1470 if (gif->open(filename, openFile, closeFile, readFile, seekFile, GIFDraw)) { return true; }
1471
1472 log_e("GIF opening error: %d\n", gif->getLastError());
1473 return false;
1474}
1475
1476// Play a single frame
1477// returns:

Callers 2

native_gifOpenFunction · 0.80
showGifFunction · 0.80

Calls 2

getLastErrorMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected