CPMEM Deinterlace Setting for planar YUV422

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

CPMEM Deinterlace Setting for planar YUV422

1,153件の閲覧回数
stevelongerbeam
Contributor IV

Hi Freescale,

It was recently discovered that simple deinterlace carried out by the IDMAC (i.e. simple interlacing of odd and even field lines by setting the SO field in CPMEM, and _not_ the motion compensated deinterlace carried out by the VDIC), works fine when deinterlacing captured fields from the ADV7180 on the SabreAuto, when the requested pixel format is one of the following planar formats (the PFS field in non-interleaved CPMEM):

PFS = 2 = non-interleaved 4:2:0 ("YU12")

PFS = 4 = partial-interleaved 4:2:0 ("NV12")

But does _not_ work correctly for the following planar formats:

PFS = 1 = non-interleaved 4:2:2 ("422P")

PFS = 3 = partial-interleaved 4:2:2 ("NV16")

In the IPU driver code, when enabling simple deinterlace, the ILO field in CPMEM is set to y-stride / 8, where y-stride is the line stride of the Y plane in bytes, and the SLY field is set to (y-stride * 2) - 1.

As stated those settings work fine for YU12 and NV12, but what should they be set to for 422P and NV16?

Thanks for your help,

Steve

0 件の賞賛
返信
3 返答(返信)

905件の閲覧回数
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi stevelongerbeam

There is a test application named mxc_ipudev_test.c under the /imxtest-" version"/test/mxc_ipudev_test directory. Before running the ipu device test application, you should be able see that the /dev/ mxc_ipu has been created. Run test like: ./mxc_ipudev_test.out -C config_file raw_data_file ./mxc_ipudev_test.out -command_line_options raw_data_file Pixel format for non-intetrleaved 422 is used. Please refer to /imx-test-"version"/test/ipudev_config_file for configure file instruction. In document iM6 Linux Reference manual section 6.4.3, Please check the simple test source code of ipu device overlay which use alpha(global/local) blending to combine two layers: NOTE: the overlay width and height must be same as output's. For example, the input is 240x320, output is 1024x768 which using rotation 90 degree, the overlay must be same as output, said, 1024x768.

Hope this helsp

0 件の賞賛
返信

905件の閲覧回数
dmitrijfrasenya
Contributor II

Hi Bio, Can we can get an update and answer on specific question posted by Steve ?

0 件の賞賛
返信

905件の閲覧回数
stevelongerbeam
Contributor IV

Hi @bio,

Sorry this doesn't help, my question is very simple: does the IPU support setting the SO field to 1, and the PFS field to 1 or 3, in non-interleaved CPMEM, does that produce correct images from an interleaved video source such as the ADV7180.

0 件の賞賛
返信