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

B–4 Appendix B: Choosing the Correct Deinterlacer
Cadence Detection and Reverse Pulldown in the Deinterlacer II MegaCore Function—In Depth
Video and Image Processing Suite January 2013 Altera Corporation
User Guide
For broadcast, a telecine is applied to minimize artifacts due to the rate conversion,
which introduces a 3:2 cadence to the fields, as shown in Figure B–5:
A video sequence such as Figure B–5 may be correctly handled by detecting the
cadence and reconstructing (reverse pulldown) the original film. You can achieve this
by comparing each field with the preceding field of the same type (3:2 detection) or
detecting possible comb artifacts that occurs if weaving two consecutive fields (2:2
detection), as shown in Figure B–6:
The 3:2 cadence detector tries to detect matches separated by four mismatches. When
this pattern is seen a couple of times, the 3:2 cadence detector locks. The 3:2 cadence
detector unlocks after 11 successive mismatches.
After six fields of cadenced video is presented, the 2:2 cadence detector will lock.
After three fields of uncadenced data is presented, the 2:2 cadence detector will
unlock.
Figure B–5. Incoming Interlaced Video
Figure B–6. 3:2 Detection and 2:2 Detection Comparison
1
1
1
2
2
3 3
3 4
4
Incoming interlaced video with 3:2 telecine
3
2
32
1
1
1
2
2
3 3
3 4
4
2
1
3
4
5
6
7
8
1
1 2
2
3
3 4
4
2
13
4
5
6
7