Main Content

SDL Video Display

Display video using SDL

Add-On Required: This feature requires the Embedded Coder Support Package for BeagleBone Black Hardware add-on.


Display video data using the Simple Directmedia Layer (SDL) multimedia library. A Simulink® model can contain only one SDL Video Display block.

This block takes planar video data in YCbCr 4:2:2 or RGB formats.

  • SDL Video Display block


Pixel format

Specify the format of the input video stream: YCbCr 4:2:2 or RGB.

YCbCr 4:2:2 uses three channels to represent color image data for each pixel:

  • Y is the luma component (essentially a grayscale signal).

  • Cb is the blue-difference chroma component.

  • Cr is the red-difference chroma component.

Cb and Cr are sampled at half the rate of Y. Therefore, if the dimensions of Y are M*N, the dimensions of Cb and Cr are each (M/2) by N.

RGB uses three 8-bit values to represent the red, green, and blue components of each pixel.

This parameter value defaults to YCbCr 4:2:2.