ExpressivePixels is an embedded prototype platform for ambient LED based displays that allows for the rapid assembly, authoring and control of animations and lighting sequences.
The dimensions can be determined from an I frame - taking the Square root of the array , and assuming the image is square
However some expressive pixels can render as all P frames. In which case the width needs to be known to render correctly.
Many implementations will have a fixed size that matches the ExpressivePixel being rendered.
This is not the case if you use a display that is larger than the animation.
It would be simpler just to put the dimensions in the JSON
The dimensions can be determined from an I frame - taking the Square root of the array , and assuming the image is square
However some expressive pixels can render as all P frames. In which case the width needs to be known to render correctly.
Many implementations will have a fixed size that matches the ExpressivePixel being rendered. This is not the case if you use a display that is larger than the animation.
It would be simpler just to put the dimensions in the JSON