| 1458 | } /* GIFDraw() */ |
| 1459 | |
| 1460 | bool 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: |
no test coverage detected