Convert frame-based video to pixel stream
Vision HDL Toolbox / I/O Interfaces
The Frame To Pixels block converts color or grayscale video frames to a pixel stream and control signals. The control signals indicate the validity of each pixel and its location in the frame. The pixel stream format can include padding pixels around the active frame. You can configure the frame and padding dimensions by selecting a common video format or by specifying custom dimensions. The pixel stream can support scalar streaming or multipixel streaming. Multipixel streaming provides 4 or 8 pixels per clock cycle to support high-rate or high-resolution formats. For details of the pixel stream format, see Streaming Pixel Interface.
This block does not support HDL code generation. However, you can use this block to generate input for a separate subsystem targeted for HDL code generation.
If your model converts frames to a pixel stream and later converts the stream back to frames, specify the same video format for the Frame To Pixels block and the Pixels To Frame block.