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.

  • SDL Video Display block

Libraries:
Embedded Coder Support Package for BeagleBone Black Hardware

Description

The SDL Video Display block displays video data using the Simple DirectMedia Layer (SDL). This block accepts planar video data in the RGB or YCbCr 4:2:2 formats.

Ports

Input

expand all

Input port at which to specify the red component of each pixel of the input video.

Dependencies

  • To enable this port, set Pixel format to RGB.

Data Types: uint8

Input port at which to specify the green component of each pixel of the input video.

Dependencies

  • To enable this port, set Pixel format to RGB.

Data Types: uint8

Input port at which to specify the blue component of each pixel of the input video.

Dependencies

  • To enable this port, set Pixel format to RGB.

Data Types: uint8

Input port at which to specify the luma component of each pixel of the input video.

Dependencies

  • To enable this port, set Pixel format to YCbCr 4:2:2.

Data Types: uint8

Input port at which to specify the blue difference component of each pixel of the input video.

Dependencies

  • To enable this port, set Pixel format to YCbCr 4:2:2.

Data Types: uint8

Input port at which to specify the red difference component of each pixel of the input video.

Dependencies

  • To enable this port, set Pixel format to YCbCr 4:2:2.

Data Types: uint8

Parameters

expand all

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

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

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.

Version History

Introduced in R2014b