16 return fs.loadJpeg(path, config, error);
20 return fs.openMp3(path, error);
25 return fs.openVideo(path, pixelsPerFrame, fps, nFrameHistory);
30 return fs.openMpeg1Video(path, pixelsPerFrame, fps, nFrameHistory);
34 return fs.readText(path, out);
38 return fs.readJson(path, doc);
43 return fs.readScreenMap(path, name, out, error);
48 return fs.readScreenMaps(path, out, error);
52 return fs.loadFled(path);
bool readJson(FileSystem &fs, const char *path, json *doc) FL_NO_EXCEPT
Parse a file as JSON.
Fled readFled(FileSystem &fs, const char *path) FL_NO_EXCEPT
Load a .fled container.
Video readMpeg1Video(FileSystem &fs, const char *path, fl::size pixelsPerFrame, float fps, fl::size nFrameHistory) FL_NO_EXCEPT
MPEG1 video. Null if the file could not be opened.
InputGamut g FL_NO_EXCEPT
bool readScreenMaps(FileSystem &fs, const char *path, fl::flat_map< string, ScreenMap > *out, string *error) FL_NO_EXCEPT
Every screen map in a screenmap JSON file, keyed by name.
bool readScreenMap(FileSystem &fs, const char *path, const char *name, ScreenMap *out, string *error) FL_NO_EXCEPT
One named screen map from a screenmap JSON file.
Video readVideo(FileSystem &fs, const char *path, fl::size pixelsPerFrame, float fps, fl::size nFrameHistory) FL_NO_EXCEPT
Raw-frame video. Null if the file could not be opened.
fl::shared_ptr< Mp3Decoder > Mp3DecoderPtr
FramePtr readJpeg(FileSystem &fs, const char *path, const JpegConfig &config, string *error) FL_NO_EXCEPT
Decode a JPEG into a Frame. Null on failure; error receives why.
bool readText(FileSystem &fs, const char *path, string *out) FL_NO_EXCEPT
Whole file as text.
Mp3DecoderPtr readMp3(FileSystem &fs, const char *path, string *error) FL_NO_EXCEPT
Streaming MP3 decoder over a file. Null on failure.
Base definition for an LED controller.
Decoding files into FastLED types.