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 159 of file file_system.cpp.

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

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

+ Here is the call graph for this function: