Hi. I have working with basically the same configuration. Since the OV5640 has a flip logic at camera level, my suggestion is to edit the kernel driver in order to set the flip parameter at 90 (or 270, depending on the orientation) degree. If needed, it support also mirroring of the image. They should be flags on configuration registers. In this way there is no need to work at OS level or HAL level.
Il giorno venerdì 12 marzo 2021 alle 16:43:33 UTC+1 devendrad...@gmail.com ha scritto: > Hi, > I am using an (Android Pie) AOSP Camera2 application. > (packages/apps/Camera2) > > I am working on NXP's i.MX8MMini board with Android Pie AOSP. > > We are using Camera module OV5640 as back camera module. Able to preview > and capture the image and video in reverse landscape mode. > But the mechanical enclosure fitting camera module rotated 90 degrees > right physically. > And in camera application for preview, image is coming as 90 degree left. > > Please can you help on this ? What changes I need to do in the Hardware > layer? > > I had posted complete issue details in this link with physical camera > image sensor. > > https://groups.google.com/g/android-platform/c/2XZ0zCp0pqg/m/Gm6OtE2yBgAJ > > The camera sensor in the image is uased as back camera. > > In init.rc file I changed below line : > > device/fsl/imx8m/iwg34m_8mm/init.rc > > setprop back_camera_orient 0 ==> setprop back_camera_orient 90 > > But still not working. > > I traced where this values is parsing and got this: > > vendor/nxp-opensource/imx/libcamera3/CameraHAL.cpp:316: > property_get("back_camera_name", mSets[BACK_CAMERA_ID].mPropertyName, "0"); > > In NXP's libcamera3 layer parsing values happening but finally how it > effect to camera orientation I didn't get. > > Please can anyone check this and help me ? > > Thanks and Regards, > > Devendra > > > > > -- -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting --- You received this message because you are subscribed to the Google Groups "android-porting" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/android-porting/98dd3c24-f29a-4296-ba68-560def5c33ban%40googlegroups.com.