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

Chapter 15: Deinterlacer MegaCore Function 15–9
Functional Description
January 2013 Altera Corporation Video and Image Processing Suite
User Guide
When you select the weave algorithm, the MegaCore function may stall for longer
than the usual periods between each output row of the image. Stalls of up to 45 clock
cycles are possible due to the time taken for internal processing in between lines.
When you select the motion-adaptive algorithm, the Deinterlacer may stall up to 90
clock cycles.
Error Recovery
An error condition occurs if an
endofpacket
signal is received too early or too late
relative to the field dimensions contained in the last control packet processed. In all its
configurations, the Deinterlacer discards extra data if the
endofpacket
signal is
received too late.
If an early
endofpacket
signal is received when the Deinterlacer is configured for no
buffering, the MegaCore function interrupts its processing within one or two lines
sending undefined pixels, before propagating the
endofpacket
signal.
If an early
endofpacket
signal is received when the Deinterlacer is configured to
buffer data in external memory, the input side of the MegaCore function stops
processing input pixels. It is then ready to process the next frame after writing
undefined pixels for the remainder of the current line into external RAM. The output
side of the Deinterlacer assumes that incomplete fields have been fully received and
pads the incomplete fields to build a frame, using the undefined content of the
memory.
1 For more information about the stall behavior and error recovery, refer to “Stall
Behavior and Error Recovery” on page 1–3.
Latency
Table 15–2 lists the approximate latency from the video data input to the video data
output for typical usage modes of the Deinterlacer MegaCore function. You can use
this table to predict the approximate latency between the input and the output of your
video processing pipeline.
The latency is described using one or more of the following measures:
■ the number of progressive frames
■ the number of interlaced fields
■ the number of lines when less than a field of latency
■ a small number of cycles O (cycles)