C_av_st_video_data, C_av_st_video_file_io – Altera Video and Image Processing Suite User Manual
Page 289

c_av_st_video_data
The declaration for the c_av_st_video_data class:
class c_av_st_video_data#(parameter BITS_PER_CHANNEL = 8,
CHANNELS_PER_PIXEL = 3) extends c_av_st_video_item;
Table A-6: Method Calls for c_av_st_video_data Class
Method Call
Description
function new();
Constructor
function void copy (c_av_st_video_data c);
Copies object c into this object.
function bit compare (c_av_st_video_data r);
Compares this instance to object r. Returns 1 if
identical, 0 if otherwise.
function void set_max_length(int length);
—
function int get_length();
—
function c_pixel #(BITS_PER_CHANNEL,CHANNELS_
PER_PIXEL) pop_pixel();
Returns a pixel object from the packet in first
in first out (FIFO) order.
function c_pixel #(BITS_PER_CHANNEL,CHANNELS_
PER_PIXEL) query_pixel(int i);
Returns a pixel object from the packet at index
i, without removing the pixel.
function void unpopulate(bit display);
Pops all pixels from the packet, displaying
them if display = 1.
function void push_pixel(c_pixel #(BITS_PER_
CHANNEL, CHANNELS_PER_PEXEL)pixel);
Pushes a pixel into the packet.
Table A-7: Members of c_av_st_video_data Class
Member
Description
c_pixel #(BITS_PER_CHANNEL,CHANNELS_PER_PIXEL)
pixels [$];
The video data is held in a queue of pixel
objects.
c_pixel #(BITS_PER_CHANNEL,CHANNELS_PER_PIXEL)
pixel, new_pixel, r_pixel;
Pixel objects used for storing intermediate
data.
rand int video_length;
The length of the video packet (used for
constrained random generation only).
int video_max_length = 10;
Maximum length of video packet (used for
constrained random generation only).
c_av_st_video_file_io
The declaration for the c_av_st_video_file_io class:
class c_av_st_video_file_io#(parameter BITS_PER_CHANNEL = 8,
CHANNELS_PER_PIXEL = 3);
UG-VIPSUITE
2015.05.04
c_av_st_video_data
A-21
Avalon-ST Video Verification IP Suite
Altera Corporation