
Method Call Description
function void set_video_data_type(string s);
Sets the fourcc[3] code associated with the
raw video data. The following are the
supported four character code (FOURCC)
codes:
• RGB32
• IYU2
• YUY2
• Y410
• A2R10GB10
• Y210
function string get_video_data_type(); Returns the FOURCC code (for example,
RGB32) being used for the raw video data.
function int get_video_packets_handled(); —
function int get_control_packets_handled(); —
function int get_user_packets_handled(); —
function new(mailbox #(c_av_st_video_item)m_
vid_out);
Constructor. The mailbox is used to pass all
packets in and out of the file I/O object.
function void open_file(string fname, t_rwrw); Files are opened using this method. For
example:
video_file_reader.open_file(‘’vip_car_
0.bin”, read);
t_rw is an enumerated type with values read or
write.
NB. The read fails if there is no associated .spc
file, for example, vip_car_o.spc).
function void close_file(); For example, video_file_reader.close_
file();
task read_file(); Read_file() optionally calls send_user_
packet() and send_control_packet(), then
calls read_video_packet().
task send_control_packet(); The control packet sent is derived from the
image height, width, and interlace fields as
provided by open_file().
task send_user_packet(); The user packet sent is always comprised of
random data and had a maximum length
hard-coded to 33 data items.
task_generate_spc_file(); When writing a file, this call creates the
necessary associated .spc file.
A-24
c_av_st_video_file_io
UG-VIPSUITE
2015.05.04
Altera Corporation
Avalon-ST Video Verification IP Suite
Send Feedback
Komentáře k této Příručce