SDL Video Display
Display video using SDL
Add-On Required: This feature requires the Simulink Coder Support Package for Beaglebone Blue Hardware add-on.
Libraries:
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
R — Red component of pixel
matrix
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
G — Green component of pixel
matrix
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
B — Blue component of pixel
matrix
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
Y — Luma component of pixel
matrix
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
Cb — Blue difference component of pixel
matrix
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
Cr — Red difference component of pixel
matrix
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
Pixel format — Format of input video stream
RGB (default) | YCbCr 4:2:2
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.
Version History
Introduced in R2018b
See Also
External Websites
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)