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

Appendix B: Choosing the Correct Deinterlacer B–5
Cadence Detection and Reverse Pulldown in the Deinterlacer II MegaCore Function—In Depth
January 2013 Altera Corporation Video and Image Processing Suite
User Guide
When the cadence detect component enters a lock state, the deinterlacer continuously
assembles a coherent frame from the incoming fields, by either weaving the current
incoming field with the previous one (shown as weave current in Figure B–7) or by
weaving the two past fields together (weave past), as shown in Figure B–7:
If the incoming video contains any cadenced video, you must enable the Cadence
detection and reverse pulldown option from the Behavior parameter in the
Parameter Settings tab. Then, select the cadence detection algorithm according to the
type of content you are expecting. If the incoming video will contain both 3:2 and 2:2
cadences, select 3:2 & 2:2 detector.
The cadence detection algorithms are also designed to be robust to false-lock
scenarios—for example, features on adjacent fields may trick other detection schemes
into detecting a cadence where there is none.
Figure B–7. Weave Current and Weave Past
3 3
3 4
4
5
5
5
6
6
Cadence detection declares
telecine lock at this point (after the
field was processed)
Weave
current (4)
Normal
deinterlace
Scheduler behaviour
Normal
deinterlace
Normal
deinterlace
N
o
r
m
a
l
d
e
i
n
t
e
r
l
a
c
e
N
o
r
m
a
l
d
e
i
n
t
e
r
l
a
c
e
N
o
r
m
a
l
d
e
i
n
t
e
r
l
a
c
e
W
e
a
v
e
c
u
r
r
e
r
r
n
t
(
4
)
The deinterlacer starts to use cadence
information to weave fields correctly
Normal deinterlacing
Inverse telecine deinterlacing
Weave
current (6)
Weave
past (5)
Weave
past (5)
Weave
current (5)
Weave
past (4)
Weave
past (3)