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–4 Appendix A: Avalon-ST Video Verification IP Suite
Avalon-ST Video Class Library
Video and Image Processing Suite January 2013 Altera Corporation
User Guide
Table A–1 describes each of the classes in the av_st_video_classes package shown in
Figure A–2.
Table A–1. Class Descriptions
Class Description Parameter
class c_av_st_video_item
The most fundamental of all the classes. Represents any item
that is sent over the Avalon-ST bus and contains a
packet_type
field. You can set the field to
video_packet
,
control_packet
, or
user_packet
types. These three packet
types are represented by classes which extend this base class.
Structuring the classes in this way allows you to define the
mailboxes and queues of c_av_st_video_items. Then, you can
send any type of packet in the order that they appear on the bus.
For more information about the method call and members of
this class library, refer to “c_av_st_video_item” on page A–28.
—
class c_pixel
Fundamental and parameterized class. Comprised of an array of
channels that contains pixel data. For example, a pixel from an
RGB24 video system comprises an array of three channels
(8 bits per channel). A pixel for a YcbCr system is comprised of
two channels. An individual channel either represents a
luminence or chroma-type component of video data, one RGB
component, or one alpha component. The class provides
“getters”, “setters”, and “copy” methods.
For more information about the method call and members of
this class library, refer to “c_pixel” on page A–33.
■ BITS_PER_CHANNEL
■ CHANNELS_PER_PIXEL
class c_av_st_video_data
Parameterized class. Contains a queue of pixel elements. This
class library is used by other classes to represent fields of video
and line (or smaller) units of video. It extends c_av_video_item.
The class provides methods to push and pop pixels on and off
the queue.
For more information about the method call and members of
this class library, refer to “c_av_st_video_data” on page A–24.
■ BITS_PER_CHANNEL
■ CHANNEL_PER_PIXEL
class c_av_st_video_control
Parameterized class. Extends c_av_video_item. Comprised of
width, height, and interlaced bits (the fields found in an
Avalon-ST video control packet). It also contains data types and
methods that control the addition of garbage beats that are used
by other classes. The class provides methods to get and set the
individual fields.
For more information about the method call and members of
this class library, refer to “c_av_st_video_control” on
page A–23.
■ BITS_PER_CHANNEL
■ CHANNELS_PER_PIXEL
class c_av_st_user_packet
Parameterized class. Contains a queue of data and is used by the
other classes to represent packets of user data. It extends
c_av_video_item. The class provides methods to push and pop
data on and off the queue.
For more information about the method call and members of
this class library, refer to “c_av_st_video_user_packet” on
page A–32.
■ BITS_PER_CHANNEL
■ CHANNEL_PER_PIXEL