User guide
Table Of Contents
- Contents
- 1. About This MegaCore Function Suite
- Release Information
- Device Family Support
- Features
- Design Example
- Performance and Resource Utilization
- 2D FIR Filter
- 2D Median Filter
- Alpha Blending Mixer
- Avalon-ST Video Monitor
- Chroma Resampler
- Clipper
- Clocked Video Input
- Clocked Video Output
- Color Plane Sequencer
- Color Space Converter
- Control Synchronizer
- Deinterlacer
- Deinterlacer II
- Frame Buffer
- Gamma Corrector
- Interlacer
- Scaler
- Scaler II
- Switch
- Test Pattern Generator
- Trace System
- 2. Getting Started with Altera IP Cores
- 3. Interfaces
- Interface Types
- Avalon-ST Video Protocol
- Avalon-MM Slave Interfaces
- Avalon-MM Master Interfaces
- Buffering of Non-Image Data Packets in Memory
- 4. 2D FIR Filter MegaCore Function
- 5. 2D Median Filter MegaCore Function
- 6. Alpha Blending MegaCore Function
- 7. Avalon-ST Video Monitor MegaCore Function
- 8. Chroma Resampler MegaCore Function
- 9. Clipper MegaCore Function
- 10. Clocked Video Input MegaCore Function
- 11. Clocked Video Output MegaCore Function
- 12. Color Plane Sequencer MegaCore Function
- 13. Color Space Converter MegaCore Function
- 14. Control Synchronizer MegaCore Function
- 15. Deinterlacer MegaCore Function
- Core Overview
- Functional Description
- Parameter Settings
- Signals
- Control Register Maps
- 16. Deinterlacer II MegaCore Function
- 17. Frame Reader MegaCore Function
- 18. Frame Buffer MegaCore Function
- 19. Gamma Corrector MegaCore Function
- 20. Interlacer MegaCore Function
- 21. Scaler MegaCore Function
- 22. Scaler II MegaCore Function
- 23. Switch MegaCore Function
- 24. Test Pattern Generator MegaCore Function
- 25. Trace System MegaCore Function
- A. Avalon-ST Video Verification IP Suite
- B. Choosing the Correct Deinterlacer
- Additional Information

A–28 Appendix A: Avalon-ST Video Verification IP Suite
Complete Class Reference
Video and Image Processing Suite January 2013 Altera Corporation
User Guide
Table A–8 lists the members of the method calls.
Table A–8. Members of the c_av_st_video_file_io Class (Part 1 of 2)
Members 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;
—
Int late_eop_probability = 20;
—
int user_packet_probability = 20;
—
int control_packet_probability = 20;
—
mailbox #(c_av_st_video_item) m_video_item_out
= new(0);
The mailbox is used to pass all packets in/out of the file i/o
object.
rand t_packet_control send_control_packets =
on;
—
rand t_packet_control send_user_packets = off;
—
rand t_packet_control send_early_eop_packets =
off;
—
rand t_packet_control send_late_eop_packets =
off;
If both
send_late_eop_packets
and
send_early_eop_packets
are set to random, a late EOP
will only be generated if an early EOP has not been.
rand t_packet_control
send_garbage_after_control_packets = off;
—