FastLED 3.9.15
Loading...
Searching...
No Matches
video Directory Reference
+ Directory dependency graph for video:

Files

 frame_interpolator.cpp
 
 frame_interpolator.h
 
 frame_tracker.cpp
 
 frame_tracker.h
 
 pixel_stream.cpp
 
 pixel_stream.h
 
 video_impl.cpp
 
 video_impl.h
 

Detailed Description

This folder implements a simple video playback pipeline for LED arrays. It reads frames from a file or stream, buffers them, and interpolates between them to produce smooth animation at your desired output rate.

Building blocks

Typical flow

  1. Create VideoImpl with your pixelsPerFrame and the source FPS.
  2. Call begin(...) with a FileHandle or ByteStream.
  3. Each frame, call video.draw(now, leds).
    • Internally maintains a buffer of recent frames.
    • Interpolates between frames to match your output timing.
  4. Use setFade(...), pause(...), resume(...), and setTimeScale(...) as needed.
  5. Call end() or rewind() to manage lifecycle.

Notes

This subsystem is optional, intended for MCUs with adequate RAM and I/O throughput.

Examples