Android framework issue while porting new camera to imx7d

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

Android framework issue while porting new camera to imx7d

ソリューションへジャンプ
1,327件の閲覧回数
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

ラベル(1)
タグ(2)
0 件の賞賛
返信
1 解決策
193件の閲覧回数
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 件の賞賛
返信
4 返答(返信)
194件の閲覧回数
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 件の賞賛
返信
1,303件の閲覧回数
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 件の賞賛
返信
1,288件の閲覧回数
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 件の賞賛
返信
1,236件の閲覧回数
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 件の賞賛
返信