Video Display Interface
Libraries:
SoC Blockset /
Peripherals
Description
The Video Display Interface block simulates the behavior of a video output device. This block receives image samples as messages from a connected Video Display block that simulates the video driver code connected to your algorithm.
Ports
Input
msg — SoC message data
vector
This port receives the image data as a message from the msg port of a connected Video Display block.
Data Types: SoCData
Output
data — Image data
3*height*width-element vector
The port outputs the unwrapped image matrix data as three
heightwidth-element vectors where
height and width are the dimensions of the
image matrix defined by the Image Size
parameter. The
3
is the multiplier for the RGB channels.
Dependencies
To enable this port, set the Output parameter to
To output port
.
Data Types: uint8
Parameters
Output — Output type
To terminator
(default) | To output port
Specify if the block acts as a terminator, similar to the Terminator block, or produces data to an output port.
Image size — Image size
160x120
(default) | 320x240
| 640x480
| 800x600
| custom
Specify the height and width dimensions of the image emitted as a vector by the
data
port of this block. Specify custom
to set
custom image dimensions.
Image size ([width, height]) — Image size
[320, 240]
(default) | two-element vector of positive integers
Specify custom height and width dimensions of the image matrix emitted by the data port of this block.
Dependencies
To enable this parameter, set the Image size parameter to
custom
.
Pixel format — Format of the pixel data
RGB
(default) | YCbCr 4:2:2
Specify the image data output encoding as RGB
or
YCbCr 4:2:2
triplets.
Dependencies
To enable this parameter, set the Image size parameter to
custom
.
Sample time — Sample time in seconds
-1
(default) | positive scalar
Enter the sample time defining the rate at which to receive the message containing video data.
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.
To automatically generate C code for your design, and execute on an SoC device, use the SoC Builder tool. To generate and execute C code for your SoC models, Embedded Coder® features are required. For more information on generating code for SoC designs, see Use SoC Builder to Generate SoC Design.
Embedded Coder does not generate code for this block. In the generated code,the V4L2 driver framework performs the video display on the device. The related Video Display block represents the V4L2 driver. For more information on the V4L2 driver framework, see Video4Linux.
Version History
Introduced in R2021a
See Also
Video Display | Video Capture | Video Capture Interface | Video Stream FIFO | Video Stream Connector | Video Test Sink | Video Test Source
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)