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

15–2 Chapter 15: Deinterlacer MegaCore Function
Functional Description
Video and Image Processing Suite January 2013 Altera Corporation
User Guide
Figure 15–1 shows a simple block diagram of the Deinterlacer MegaCore function
with frame buffering.
Deinterlacing Methods
The Deinterlacer MegaCore function supports four deinterlacing methods:
■ Bob with scanline duplication
■ Bob with scanline interpolation
■ Weave
■ Motion-adaptive
1 The Deinterlacer does not support interlaced streams where F0 fields are one line
higher than F1 fields in most of its parameterizations. (Bob with one output frame for
each input frame is the only exception.) Altera recommends using the Clipper
MegaCore function to feed the Deinterlacer with an interlaced video stream that it can
support.
Bob with Scanline Duplication
The bob with scanline duplication algorithm is the simplest and cheapest in terms of
logic. Output frames are produced by simply repeating every line in the current field
twice. The function uses only the current field, therefore if the output frame rate is the
same as the input frame rate, the function discards half of the input fields.
Bob with Scanline Interpolation
The bob with scanline interpolation algorithm has a slightly higher logic cost than bob
with scanline duplication but offers significantly better quality.
Figure 15–1. Deinterlacer Block Diagram with Buffering in External RAM
Note to Figure 15–1:
(1) There can be one or two Avalon-MM masters connected to the Memory Reader.
Deinterlacing
Algorithm
Memory
Reader
Memory
Writer
Arbitration Logic
DDR2
SDRAM
Avalon-ST Input
(din)
Avalon-ST Output
(dout)
Avalon-MM Master
(write_master)
Avalon-MM Master
(read_master)