FastLED 3.9.15
Loading...
Searching...
No Matches

◆ openVideo()

Video fl::FileSystem::openVideo ( const char * path,
fl::size pixelsPerFrame,
float fps = 30.0f,
fl::size nFrameHistory = 0 )

Definition at line 161 of file file_system.cpp.

162 {
163 Video video(pixelsPerFrame, fps, nFrameHistory);
164 FileHandlePtr file = openRead(path);
165 if (!file) {
166 video.setError(fl::string("Could not open file: ").append(path));
167 return video;
168 }
169 video.begin(file);
170 return video;
171}
FileHandlePtr openRead(const char *path)

References fl::Video::begin(), openRead(), and fl::Video::setError().

+ Here is the call graph for this function: