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
Solved! Go to Solution.
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.
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.
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.
Best Regards,
Zhiming
Hi Zhiming,
I try both YUYV before, but is not working. So, I was trying to use different availFormats in here.
BestRegards!
PatrickZ
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