Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

Deinterlacing a video frame

adi_shavit
Beginner
608 Views
Hi,
I want to use IPPi for some video analysis and I was wondering what's the best way to deinterlace a full-size video frame into 2 separate field frames.
In analog video (NTSC/PAL) a full size frame usually consists of two parts/fields. The even rows are the even rows of one captured frames and the odd rows are the odd rows of the following frame. This means that a 24 frame per sec. sequence is really 48 inteleaved frames, with each consequtive pair combined into one frame.
Is there a way to use IPP (4.0) to split each frame into 2 half height frames? A way other than just looping on all the rows and copying them using ippiCopy_<mod>() or ippsCopy_<mod>().
Is there an eqivalent to the stride concept in IPPS or IPPI?
Thanks,
Adi
0 Kudos
2 Replies
Intel_C_Intel
Employee
608 Views

There is step parameter in functions. For ippIP functions it means the number of bytes between adjucent lines. Please, look on ippi manual, chapter 2, IPP Concepts for the details.

So you need to call ippiCopy twice, one time for the first field and the second time for the other field.

Regards,
Vladimir

0 Kudos
adi_shavit
Beginner
608 Views
Right! I don't know why I didn't think of that.
Thanks,
Adi
0 Kudos
Reply