
Method Call Description
task read_video_packet(); The main file reading method call. Binary data
is read from the file and packed into pixel
objects according to the settings of ycbr_
pixel_order and endianism. Pixel objects are
packed into a video data object, with some
pixels optionally added or discarded if late/
early EOP is being applied. When one
complete field of video has been read (as
determined by the height and width controls),
the video_data object is put in the mailbox.
task wait_for_and_write_video_packet_to_file()
;
When called, this method waits for an object
to be put in the mailbox (usually from a sink
BFM). When a control or a user packet object
arrives, this call is reported and ignored. When
a video packet arrives, the video data is written
to the open file in little endianism format.
Table A-9: Members of c_av_st_video_file_io Class
Member Description
local int video_packets_handled = 0;
video_packets_handled is added whenever a
packet is read or written to or from the file.
local int control_packets_handled = 0; control_packets_handled is added
whenever a control packet is put in the object’s
mailbox.
local int user_packets_handled = 0; user_packets_handled is added whenever a
user packet is put in the object's mailbox.
local reg[15:0] image_height; —
local reg[15:0] image_width; —
local reg[3:0] image_interlaced; —
string image_fourcc; —
local string object_name = "file_io"; —
local string filename; —
local string spc_filename; —
local int fourcc_channels_per_pixel; Set when the associate .spc file is read.
local int fourcc_bits_per_channel; Set when the associate .spc file is read.
local int fourcc_pixels_per_word; Set when the associate .spc file is read.
local int fourcc_channel_lsb; Set when the associate .spc file is read.
int early_eop_probability = 20; —
UG-VIPSUITE
2015.05.04
c_av_st_video_file_io
A-25
Avalon-ST Video Verification IP Suite
Altera Corporation
Send Feedback
Comentarios a estos manuales