This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

SDL Video Display

Display video using SDL

  • Library:
  • Simulink Coder Support Package for BeagleBone Blue Hardware / Video

Description

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.

Ports

Input

expand all

Input port to specify red component of each pixel.

Dependencies

This port appears only when you select the RGB from Pixel format.

Data Types: uint8

Input port to specify green component of each pixel.

Dependencies

This port appears only when you select the RGB from Pixel format.

Data Types: uint8

Input port to specify blue component of each pixel.

Dependencies

This port appears only when you select the RGB from Pixel format.

Data Types: uint8

Input port to specify the luma component of each pixel.

Dependencies

This port appears only when you select the YCbCr 4:2:2 from Pixel format.

Data Types: uint8

Input port to specify the blue difference component of each pixel.

Dependencies

This port appears only when you select the YCbCr 4:2:2 from Pixel format.

Data Types: uint8

Input port to specify the red difference component of each pixel.

Dependencies

This port appears only when you select the YCbCr 4:2:2 from Pixel format.

Data Types: uint8

Parameters

expand all

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.

See Also

External Websites

Introduced in R2018b