Video field life cycle, Table a-3: stages of the video field life cycle, And pushes the pixels into a – Altera Video and Image Processing Suite User Manual
Page 282

Video Field Life Cycle
Figure A-5: Video Field Life Cycle
The figure below shows the life cycle of the video field.
Avalon
Source BFM
Video
Source BFM
Video
Sink BFM
DUT
Avalon
Sink BFM
Method calls
File
reader
BFM
Input
File
Method calls
File
writer
Output
File
Field
Stage 1:
Field stored as
c_av_st_video_data
Stage 2:
Field stored as
c_av_st_video_item
Field
Stage 3:
Field stored as
Height x width +1
transactions to the
source BFM
Field
Field
Stage 4:
Field stored as
Height x width +1
beats on the
Avalon-ST bus
Stage 5:
Field stored as
Height x width +1
transactions from the sink BFM
Field
Stage 6:
Field stored as
c_av_st_video_data
Stage 7:
Field stored as
c_av_st_video_item
Field
Stage 8:
Field stored as
binary data
Field
Before stage 1:
Field stored as
binary file data
mailbox
mailbox
Field
Field
Table A-3: Stages of the Video Field Life Cycle
Stage
Description
Stage 1
• A method call to the reader initiates the field to be read by the file reader
BFM.
• The reader streams binary pixel data from the file, packs each pixel into an
object of type
c_pixel
, and pushes the pixels into a
c_av_st_video_data
video object.
Stage 2
• After the reader assembles a complete video object, the reader casts the
video object into the base class (c_av_st_video_item). This code is for this
base class:
typedef c_av_st_video_data #(BITS_PER_CHANNEL, CHANNELS_
PER_PIXEL) video_t;
item_data = video_t'(video_data);
• After the reader casts the video object into the base class, it sends the video
object to the mailbox.
A-14
Video Field Life Cycle
UG-VIPSUITE
2015.05.04
Altera Corporation
Avalon-ST Video Verification IP Suite