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–30 Appendix A: Avalon-ST Video Verification IP Suite
Complete Class Reference
Video and Image Processing Suite January 2013 Altera Corporation
User Guide
c_av_st_video_source_sink_base
The following is the declaration for the c_av_st_video_source_sink_base class:
class c_av_st_video_source_sink_base;
Table A–11 lists the method calls for the c_av_st_video_source_sink_base class.
Table A–12 lists the members of the method calls for the c_av_st_video_source_sink_base
class.
Table A–11. Method Calls for the c_av_st_video_source_sink_base Class
Method Call Description
function new(mailbox #(c_av_st_video_item)m_vid);
Constructor. The video source
and sink classes transfer video
objects through their
mailboxes.
function void set_readiness_probability(int percentage);
—
function int get_readiness_probability();
—
function void set_long_delay_probability(real percentage);
—
function real get_long_delay_probability();
—
function void set_long_delay_duration_min_beats(int percentage);
—
function int get_long_delay_duration_min_beats();
—
function void set_long_delay_duration_max_beats(int percentage);
—
function int get_long_delay_duration_max_beats();
—
function void set_pixel_transport(t_pixel_format in_parallel);
—
function t_pixel_format get_pixel_transport();
—
function void set_name(string s);
—
function string get_name();
—
Table A–12. Members of the c_av_st_video_source_sink_base Class
Member Description
mailbox # (c_av_st_video_item) m_video_items= new(0);
—
t_pixel_format pixel_transport = parallel;
The Avalon-ST video standard allows you to send
symbols in serial or parallel format. You can set
this control to either format.
string name = "undefined";
—
int video_packets_sent = 0;
—
int control_packets_sent = 0;
—
int user_packets_sent = 0;
—
int readiness_probability = 80;
Determines the probability of when a sink or
source is ready to receive or send data in any given
clock cycle, as manifested on the bus by the
READY
and
VALID
signals, respectively.