We designed our customized board based on sabresdq platform, ported android 4.4.2. It has 5MP OV5640 Mipi auto focus camera. According to our baord layout we had changed setprop back_camera_orient 270 in init.rc file. We are able to capture images. During preview image is stretched , however captured image is not stretched.
Please find the images,driver attached.
Original Attachment has been moved to: ov5640_mipi.c.zip
Hello,
hope your problem has been resolved.
Indeed, I am in a situation where I cannot capture an image at 5MP with the ov5640.
Could you please share me your pilot camera?
thank you in advance
I think it is depends the camera apps in Android. For example,
android - Camera preview stretched even after setting the correct dimensions - Stack Overflow
One suggestion is that you can try to change the parameters in Android camera source code. please check the Ov5640Mipi.* in hardware/imx/mx6/libcamera2. Attached is the Android FAQ document. please read the section 25, 26 for more details about how to config the camera in Android.
Or you can add the resolution 800x480 in the ov5640 driver in kernel. But this you need to understand the ov5640 registers setting first. You may need to get the datasheet from OV.