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

3–8 Chapter 3: Interfaces
Avalon-ST Video Protocol
Video and Image Processing Suite January 2013 Altera Corporation
User Guide
When a video data packet uses a subsampled color pattern, the individual color
planes of the video data packet have different dimensions. For example, 4:2:2 has one
full width, full height plane and two half width, full height planes. For 4:2:0 there are
one full width, full height plane and two half width, half height planes. In these cases
you must configure the width and height fields of the control data packet for the fully
sampled, full width, and full height plane.
The interlacing value in the control packet indicates whether the video data packets
that follow contain progressing or interlaced video. The most significant two bits of
the interlacing nibble describe whether the next video data packet is either
progressive, interlaced field 0 (F0) containing lines 0, 2, 4.... or interlaced field 1 (F1)
containing lines 1, 3, 5... 00 means progressive, 10 means interlaced F0, and 11 means
interlaced F1.
The meaning of the second two bits is dependent on the first two bits. If the first two
bits are set to 10 (F0) or 11 (F1), the second two bits describe the synchronization of
interlaced data. Use the synchronization bits for progressive segmented frame (PsF)
content, where progressive frames are transmitted as two interlaced fields.
Synchronizing on F0 means that a video frame should be constructed from an F1
followed by an F0. Similarly, synchronizing on F1 means that a video frame should be
constructed from an F0 followed by an F1. The other synchronization options are don't
care when there is no difference in combining an F1 then F0, or an F0 then F1. The final
option is don't know to indicate that the synchronization of the interlaced fields is
unknown. The encoding for these options are 00 for synchronize on F0, 01 for
synchronize on F1, 11 for don't care, and 10 for don't know.
1 The synchronization bits do not affect the behavior of the Deinterlacer because the
synchronization field is fixed at compile time. However, they do affect the behavior of
the Frame Buffer when dropping and repeating pairs of fields.
If the first two bits indicate a progressive frame, the second two bits indicate the type
of the last field that the progressive frame was deinterlaced from. The encoding for
this is 10 for unknown or 11 for not deinterlaced, 00 for F0 last, and 01 for F1 last.
Table 3–4 gives some examples of the control parameters.
Table 3–4. Examples of Control Data Packet Parameters
Parameters
Description
Type Width Height Interlacing
15 1920 1080 0011 The frames that follow are progressive with a resolution of 1920×1080.
15 640 480 0011 The frames that follow are progressive with a resolution of 640×480.
15 640 480 0000
The frames that follow are progressive with a resolution of 640×480. The frames
were deinterlaced using F0 as the last field.
15 640 480 0001
The frames that follow are progressive with a resolution of 640×480. The frames
were deinterlaced using F1 as the last field.
15 640 240 1000
The fields that follow are 640 pixels wide and 240 pixels high. The next field is F0
(even lines) and it is paired with the F1 field that precedes it.
15 1920 540 1100
The fields that follow are 1920 pixels wide and 540 pixels high. The next field is F1
(odd lines) and it is paired with the F0 field that follows it.
15 1920 540 1101
The fields that follow are 1920 pixels wide and 540 pixels high. The next field is F1
(odd lines) and it is paired with the F0 field that precedes it.