IPU deinterlacing of UYVY image

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IPU deinterlacing of UYVY image

723 Views
thomassoehus
Contributor I

Hi,

I have implemented a driver for the TVP5150AM1 TVIN controller. It outputs interlaced PAL, and the output looks good. The output from the camera driver is interlaced video at 720x576 UYVY. So far so good. I am using the 3.14.28 linux kernel, and from what I can gather de-interlacing is not supported in capture part of IPU. There seems to be a patch (for an older kernel) regarding IPU VDI but I did not try to integrate that.

Instead I used the mxc_ipu device (/dev/mxc_ipu) and followed some examples for how to de-interlace an image. I am however struggling to get it to work. I can flip the images and scale using the same IPU_QUEUE_TASK, but when it comes to de-interlacing nothing happens. The examples provided by imx-test all do de-interlacing on NV12 images which is quite different from an UYVY format, so I am curious if this is supported at all?

Anyone that have been able to de-interlace an UYVY image using the mxc_ipu driver?

My deinterlace parameters in ipu_task is set as follows:

t->input.deinterlace.motion = HIGH_MOTION (2)

t->input.deinterlace.enable = 1

From what I can see in the kernel source for ipuv3 it should be supported. When I try to do the de-interlacing I get no errors, and the image is being processed by the IPU because the output image is slightly different from the input. But the output is still interlaced.

Thanks for you help,

Br,

Thomas

Labels (3)
0 Kudos
1 Reply

341 Views
joanxie
NXP TechSupport
NXP TechSupport

for old version, we use v4l2 path, did you try to use v4l2 path? I'm not sure that yocto support ipu path or not, you can try to use v4l2 path to test it.

0 Kudos