Hi.
I'd like to set VDI mode motion 0 on the Android BSP with below source.
How could I do it???
According to Doc :
i.MX6 IPU TVIN Application Note
4.3 On The Fly De-interlace
Except for the memory to memory de-interlace, the IPU can also support on the fly de-interlace
with CSI->VDI->MEM (g_input = 3 with VIDIOC_S_INPUT) and CSI->VDI->IC->MEM (g_input = 2
with VIDIOC_S_INPUT) capture path: https://community.nxp.com/docs/DOC-330441
Limitations:
1. Since the IC can only output resolution up to 1024*1024, so this is the limitation on output for
CSI->VDI->IC->MEM path.
2. Since the VDI can only output resolution up to 968*1024, so CSI->VDI->MEM can’t work for
1080i capture.
3. Only VDI motion mode 2 was supported. To avoid dithering, the driver should set one field
data for CSI->VDI->xxx path, set VDI_SKIP and VDI_MAX_RATIO_SKIP to 1 in register
IPU_SKIP.
Note: The reason to set VDI_SKIP to skip one field data, ODD field starts from line 1 and EVEN
field starts from line2, so they are one line shift, if the VDI using both field data, the output video will
dithering between switching ODD and EVEN field.
Hi notyet
for "VDI mode motion 0" one can refer to liniux vdi driver, in particular function void _ipu_vdi_set_motion():
https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/mxc/ipu3/ipu_ic.c?h=imx_5.4.47_2.2...
https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/gpu/imx/ipu-v3/ipu-vdi.c?h=imx_5.4...
Best regards
igor