YUV to RGB conversion using IPU

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

YUV to RGB conversion using IPU

4,186 Views
johnturnur
Contributor III

Hi,

I want to run my custom application.

In which i want to do YUV to RGB color conversion using IPU, and display that output.

What code change does it required?

Labels (2)
0 Kudos
Reply
10 Replies

2,675 Views
rogerio_silva
NXP Employee
NXP Employee

What processor are you using?

If you're using i.MX6, you can use this code to test CSC.

https://github.com/rogeriorps/ipu-examples/blob/master/mx6/csc/example1/csc_ex1.c

It will read 4 files from different color formats and transform to RGB565 to be shown on lcd.

Rgds

Rogerio

0 Kudos
Reply

2,675 Views
johnturnur
Contributor III

Thanks for your reply.

I am using IMX35.

0 Kudos
Reply

2,675 Views
johnturnur
Contributor III

Any update on this will be appreciated

0 Kudos
Reply

2,675 Views
rogerio_silva
NXP Employee
NXP Employee

Hi John,

If you're using i.MX53 you have 2 options. You can use IOCTLs as made on example I mentioned or you can use the ipulib. (see the imx5x_IPU_LIB_UG.pdf, located at linux documentation package.

You can check the ipu unit test, located at your rootfs /unit_tests/mxc_ipudev_test.out

The source code can be extracted using LTIB using the command:

./ltib -p imx-test -m prep

The source code will be located at ltib/rpm/BUILD/imx-test-12.09.01/test

Rgds

Rogerio

0 Kudos
Reply

2,675 Views
johnturnur
Contributor III

Hi,

Rogerio

I am using IMX35. Does IMX53 IPU code works on IMX35?


0 Kudos
Reply

2,675 Views
rogerio_silva
NXP Employee
NXP Employee

I'm not sure if the same source code will work because they use different drivers. i.MX35 uses IPUv1 instead IPUv3.

You can check and use as programming reference the /unit_tests built on your rootfs/unit_tests/

Rgds

Rogerio

0 Kudos
Reply

2,675 Views
johnturnur
Contributor III

Hi

Rogeriopimentel

Can  you send me IPU test for YUV to RGB for IMX35?

Thanks

John

0 Kudos
Reply

2,675 Views
rogerio_silva
NXP Employee
NXP Employee

You can extract the unit test using the command: ./ltib -p imx-test -m prep

It will be extracted to <your ltib folder>/rpm/BUILD/imx-test-09.12.01/........

You can build and install this package using:

./ltib -p imx-test -m scbuild

./ltib -p imx-test -m scdeploy

Rgds

Rogerio

2,675 Views
johnturnur
Contributor III

Hi,

but mxc_ipudev_test is not build.

What chagnes is requied to bulid?

0 Kudos
Reply

2,675 Views
admin
Specialist II

John, do you still have a build problem?

0 Kudos
Reply