<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Android UVC front Camera issue in Android 8 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Android-UVC-front-Camera-issue-in-Android-8/m-p/1259078#M172289</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since it is a web camera you will of course get a mirrored image. Nevertheless, you may refer to the driver V4L2 IOCT- IPU_ROTATE_HORIZ_FLIP in the i.MX6Q BSP to flip the image horizontally.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR,&lt;/P&gt;
&lt;P&gt;Ivan.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Apr 2021 17:51:44 GMT</pubDate>
    <dc:creator>IvanRuiz</dc:creator>
    <dc:date>2021-04-09T17:51:44Z</dc:date>
    <item>
      <title>Android UVC front Camera issue in Android 8</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-UVC-front-Camera-issue-in-Android-8/m-p/1254913#M171875</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using imx6Q with Android 8.0.&lt;BR /&gt;I have managed to work uvc camera Logitech C525 with the setup .&lt;BR /&gt;The issue is I get a mirrored image and to get the desired image I have to use it as front camera.&lt;BR /&gt;I have modified init.rc to configure the camera as front camera.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;setprop back_camera_name 0&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;setprop front_camera_name uvc&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;After this change my camera doesn't work at all and I get the following error in the logcat :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#666699"&gt;292-292/? I/chatty: uid=1047(cameraserver) /system/bin/cameraserver expire 3 lines&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#666699"&gt;292-292/? W//system/bin/cameraserver: Waited one second for android.hardware.camera.provider@2.4::ICameraProvider/legacy/0. Waiting another...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#666699"&gt;10007-10007/? I/android.hardware.camera.provider@2.4-service: Camera provider Service is starting.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#666699"&gt;10007-10007/? I/vndksupport: sphal namespace is not configured for this process. Loading /vendor/lib/hw/android.hardware.camera.provider@2.4-impl.so from the current namespace instead.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#666699"&gt;10007-10007/? I/vndksupport: sphal namespace is not configured for this process. Loading /vendor/lib/hw/camera.imx6.so from the current namespace instead.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#666699"&gt;10007-10007/? I/FslCameraHAL: enumSensorSet&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#666699"&gt;10007-10007/? I/FslCameraHAL: matchDevNodes&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#666699"&gt;10007-10007/? I/FslCameraHAL: getNodeName: dev path:/dev/video1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#666699"&gt;10007-10007/? I/FslCameraHAL: getNodeName: node name:uvcvideo&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#666699"&gt;10007-10007/? I/FslCameraHAL: getNodeName CHIP_IDENT dev path:/dev/video1 failed&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#666699"&gt;10007-10007/? I/FslCameraHAL: getNodeNames: node name:uvcvideo,HD Webcam C525&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#666699"&gt;10007-10007/? I/FslCameraHAL: getNodeName: dev path:/dev/video17&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#666699"&gt;10007-10007/? W/FslCameraHAL: getNodeName dev path:/dev/video17 is not capture&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#666699"&gt;10007-10007/? I/FslCameraHAL: getNodeName: dev path:/dev/video0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#666699"&gt;10007-10007/? W/FslCameraHAL: getNodeName open dev path:/dev/video0 failed:Try again&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#666699"&gt;10007-10007/? I/FslCameraHAL: getNodeName: dev path:/dev/video16&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#666699"&gt;10007-10007/? W/FslCameraHAL: getNodeName open dev path:/dev/video16 failed:Permission denied&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#666699"&gt;10007-10007/? I/FslCameraHAL: matchPropertyName: index:0, 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#666699"&gt;10007-10007/? I/FslCameraHAL: matchPropertyName: index:1, uvc&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#666699"&gt;10007-10007/? I/FslCameraHAL: index:1, propName:uvc&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#666699"&gt;10007-10007/? I/FslCameraHAL: matchNodeName&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#666699"&gt;10007-10007/? I/FslCameraHAL: matchNodeName: sensor:uvcvideo,HD Webcam C525, dev:/dev/video1, node:uvc, index:1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#666699"&gt;10007-10007/? I/FslCameraHAL: Camera ID 1: name uvcvideo,HD Webcam C525, Facing 1, orientation 0, dev path /dev/video1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#666699"&gt;10007-10007/? I/FslCameraHAL: create id:1 usb camera device&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#666699"&gt;10007-10007/? I/FslCameraHAL: newInstance usb sensor name:uvcvideo,HD Webcam C525&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#666699"&gt;10007-10007/? I/FslCameraHAL: newInstance usb sensor:uvcvideo,HD Webcam C525 use standard UVC device&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#666699"&gt;10007-10007/? I/FslCameraHAL: Camera:1: new camera device&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#666699"&gt;10007-10007/? I/FslCameraHAL: camera number is 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#666699"&gt;10007-10007/? I/CamProvider@2.4-impl: Loaded "Default Camera HAL" camera module&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#666699"&gt;10007-10007/? I/FslCameraHAL: getCameraInfo: camera id 0: info=0xbefa5598&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#666699"&gt;10007-10007/? E/FslCameraHAL: getCameraInfo: Invalid camera id 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#666699"&gt;10007-10007/? E/CamProvider@2.4-impl: initialize: Camera info query failed!&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#666699"&gt;10007-10007/? E/CamProvider@2.4-impl: HIDL_FETCH_ICameraProvider: camera provider init failed!&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#666699"&gt;10007-10007/? E/android.hardware.camera.provider@2.4-service: Could not get passthrough implementation for android.hardware.camera.provider@2.4::ICameraProvider/legacy/0.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 10:38:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-UVC-front-Camera-issue-in-Android-8/m-p/1254913#M171875</guid>
      <dc:creator>Ketki</dc:creator>
      <dc:date>2021-03-31T10:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Android UVC front Camera issue in Android 8</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-UVC-front-Camera-issue-in-Android-8/m-p/1259078#M172289</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since it is a web camera you will of course get a mirrored image. Nevertheless, you may refer to the driver V4L2 IOCT- IPU_ROTATE_HORIZ_FLIP in the i.MX6Q BSP to flip the image horizontally.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR,&lt;/P&gt;
&lt;P&gt;Ivan.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 17:51:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-UVC-front-Camera-issue-in-Android-8/m-p/1259078#M172289</guid>
      <dc:creator>IvanRuiz</dc:creator>
      <dc:date>2021-04-09T17:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Android UVC front Camera issue in Android 8</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-UVC-front-Camera-issue-in-Android-8/m-p/1259559#M172343</link>
      <description>&lt;P&gt;Hi Ivan ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You for your reply.&lt;/P&gt;&lt;P&gt;Previously I used Android 7.1 (Nougat) and to fix this issue I modified the camera.h file and changed the parameter &lt;STRONG&gt;CAMERA_FACING_BACK = 1;&lt;/STRONG&gt; from its default value 0. So now my back camera was mirror and was similar to front camera facing showing exact image.&lt;/P&gt;&lt;P&gt;When I try the same with Android 8.0 it doesn't work .&amp;nbsp;&lt;BR /&gt;Can you please tell me in detail where the orientation is set in Android 8.0&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 09:47:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-UVC-front-Camera-issue-in-Android-8/m-p/1259559#M172343</guid>
      <dc:creator>Ketki</dc:creator>
      <dc:date>2021-04-09T09:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Android UVC front Camera issue in Android 8</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-UVC-front-Camera-issue-in-Android-8/m-p/1259827#M172370</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead of modifying directly from the camera, you may try to flip the image horizontally as I already mentioned. The driver is available in the BSP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR,&lt;/P&gt;
&lt;P&gt;Ivan.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 17:52:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-UVC-front-Camera-issue-in-Android-8/m-p/1259827#M172370</guid>
      <dc:creator>IvanRuiz</dc:creator>
      <dc:date>2021-04-09T17:52:16Z</dc:date>
    </item>
  </channel>
</rss>

