MCPcopy Create free account
hub / github.com/FastLED/FastLED / openVideo

Method openVideo

src/fl/system/file_system.cpp.hpp:168–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166 return fl::ifstream(mFs->openRead(path));
167}
168Video FileSystem::openVideo(const char *path, fl::size pixelsPerFrame, float fps,
169 fl::size nFrameHistory) {
170 Video video(pixelsPerFrame, fps, nFrameHistory);
171 fl::ifstream file = openRead(path);
172 if (!file.is_open()) {
173 video.setError(fl::string("Could not open file: ").append(path));
174 return video;
175 }
176 video.begin(file.rdbuf());
177 return video;
178}
179
180bool FileSystem::readText(const char *path, fl::string *out) {
181 fl::ifstream file = openRead(path);

Callers

nothing calls this directly

Calls 6

stringClass · 0.50
is_openMethod · 0.45
setErrorMethod · 0.45
appendMethod · 0.45
beginMethod · 0.45
rdbufMethod · 0.45

Tested by

no test coverage detected