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

Appendix A: Avalon-ST Video Verification IP Suite A–25
Complete Class Reference
January 2013 Altera Corporation Video and Image Processing Suite
User Guide
Table A–6 lists the members of the method calls.
c_av_st_video_file_io
The following is 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);
Table A–7 lists the method calls for the c_av_st_video_file_io class.
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–5. Method Calls for the c_av_st_video_data Class (Part 2 of 2)
Method Call Description
Table A–6. Members of the c_av_st_video_data Class
Members 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).
Table A–7. Method Calls for the c_av_st_video_file_io Class (Part 1 of 3)
Method Call Description
function void
set_send_control_packets(t_packet_controls);
If this method is used to set the
send_control_packet
control to off, then one control packet is sent at the
beginning of video data, but no further control packets are
sent.
function t_packet_control
get_send_control_packets();
—
function void
set_send_user_packets(t_packet_control s);
If the
send_user_packets
control is off, no user packets at
all are sent. Otherwise, user packets are sent before and
after any control packets.
function t_packet_control
get_send_user_packets();
—
function void
set_send_early_eop_packets(t_packet_control s);
If the
send_eop_packets
control is off, all packets are of
the correct length (or longer). Otherwise, early EOP are sent
of a length determined by the constraints on
early_eop_packet_length
.
function t_packet_control
get_send_early_eop_packets();
—