Android framework issue while porting new camera to imx7d

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

Android framework issue while porting new camera to imx7d

Jump to solution
1,323 Views
patrickzhang1024
Contributor II

Hi,

    I was porting the new camera to the imx7d board. It output the 640x480 YUYV image and my screen is 320x240 RGB565. I noticed that there is some config files for OV5640 in libcamera3 and I try to write my own cpp file refer by those files. But looks like there is some mistake by color converting in android framework. My screen shows massive green pixels.

 

    Could you give me some suggestion about this?

 

#linux #Android

Labels (1)
Tags (2)
0 Kudos
Reply
1 Solution
189 Views
patrickzhang1024
Contributor II

The problem is solved. The previous camera are not outputting YUYV format, they only provid RAW8/RAW10(but their datasheet said they have YUYV...). I got another new batch of cameras, they are showing video correctly.

View solution in original post

0 Kudos
Reply
4 Replies
190 Views
patrickzhang1024
Contributor II

The problem is solved. The previous camera are not outputting YUYV format, they only provid RAW8/RAW10(but their datasheet said they have YUYV...). I got another new batch of cameras, they are showing video correctly.

0 Kudos
Reply
1,299 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello,

Do  you want to convert the camera format into RGB in HAL layer?  Why you comment YUYV in HAL code. I don't think you need convert it to RGB in HAL layer.

Zhiming_Liu_0-1739930697854.png

 



Best Regards,
Zhiming

0 Kudos
Reply
1,284 Views
patrickzhang1024
Contributor II

Hi Zhiming,

 

   I try both YUYV before, but is not working. So, I was trying to use different availFormats in here.

 

BestRegards!

PatrickZ

 
 
0 Kudos
Reply
1,232 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello,

I try both YUYV before, but is not working

--> The original hal driver also support it but it can work when capturing and rendering. Please make sure there is no issue in the HAL format input and output. Then check the android framework configuration and your application, make sure that application layer can convert and display it correctly.

Best Regards,
Zhiming

0 Kudos
Reply