MJPEG playback on a SmartMatrix panel

Does anyone have code for, or know of an example of, playing back frames of an MJPEG file on a SmartMatrix?

There’s no decoding per se, each frame is just a jpeg. I can already display a jpeg so it might just be a matter of walking the frames, but not sure how to do that offhand!


best is that you find a C mjpeg decoder on linux or whatnot, find its decoding code and have it output RGB888 buffers compatible with smartmatrix. It’s not that different from what the gif decoder library is doing