<?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 support for camera zoom in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Android-support-for-camera-zoom/m-p/1481305#M191987</link>
    <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/167845"&gt;@dennis3&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had the same findings.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also found the following section that explains that '4' in the zoom:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chrispeterson_0-1656431650027.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/184916i2542930CF88D5840/image-size/medium?v=v2&amp;amp;px=400" role="button" title="chrispeterson_0-1656431650027.png" alt="chrispeterson_0-1656431650027.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is located in the &lt;A href="https://www.nxp.com/docs/en/user-guide/iMX8MP_CAMERA_DISPLAY_GUIDE.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/user-guide/iMX8MP_CAMERA_DISPLAY_GUIDE.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/61445"&gt;@nxp&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This also defines the interface to control through an IOCTL call.&lt;/P&gt;&lt;P&gt;Is this API to get the ISP to do the scaling?&amp;nbsp; Does this happen in the GPU? In Software?&lt;/P&gt;&lt;P&gt;I searched through the i.MX 8M Plus Application Processor Reference manual and I didn't find any reference in the ISP of DEWARP section that&amp;nbsp; upscale / zoom is a feature.&amp;nbsp; Those sections do mention downscaling though.&lt;/P&gt;&lt;P&gt;Is the ISP capably of upscaling / zooming digitally?&lt;/P&gt;&lt;P&gt;-Chris&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jun 2022 15:59:06 GMT</pubDate>
    <dc:creator>chrispeterson</dc:creator>
    <dc:date>2022-06-28T15:59:06Z</dc:date>
    <item>
      <title>Android support for camera zoom</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-support-for-camera-zoom/m-p/1470179#M191240</link>
      <description>&lt;P&gt;Testing Android 11 2.2.0 and 2.6.0 on imx8m plus. &amp;nbsp;I need to support a legacy application on Android that uses the Camera1 api. &amp;nbsp;The HAL imx layer reports the number 4 for digital zoom.&lt;/P&gt;&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/android-imx/platform/hardware/imx/tree/camera/CameraMetadata.cpp?h=android-11.0.0_2.6.0#n156" target="_blank" rel="noopener"&gt;CameraMetadata.cpp&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is resulting in the Android API legacy camera parameters isZoomSupported() returning true and getMaxZoom() returning 99. &amp;nbsp;if I then call setZoom on the camera parameters, the output image is not changed. &amp;nbsp;It appears as near as I can tell that digital zoom is ignored. &amp;nbsp;It's unclear why the number 4 is used in the HAL and whether or not zoom is actually supposed to be supported or not.&lt;/P&gt;&lt;P&gt;If I change the metadata to report 1 instead of 4 for the zoom. &amp;nbsp;The api reports false for isZoomSupported.&lt;/P&gt;&lt;P&gt;If zoom is supposed to be supported what do I need to change or implement in my camera? &amp;nbsp;It seems the imx8m plus has IPU capability of zooming the image but that the HAL is not honoring the zoom parameters.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 21:28:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-support-for-camera-zoom/m-p/1470179#M191240</guid>
      <dc:creator>dennis3</dc:creator>
      <dc:date>2022-06-07T21:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Android support for camera zoom</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-support-for-camera-zoom/m-p/1479999#M191911</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/167845"&gt;@dennis3&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;I am having the same issue.&amp;nbsp; Did you ever figure out how to get the ISP to zoom while in Android?&lt;/P&gt;&lt;P&gt;I am currently using Android 11 2.6.0.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 21:43:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-support-for-camera-zoom/m-p/1479999#M191911</guid>
      <dc:creator>chrispeterson</dc:creator>
      <dc:date>2022-06-24T21:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Android support for camera zoom</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-support-for-camera-zoom/m-p/1480672#M191951</link>
      <description>&lt;P&gt;I'm afraid no, there has been no activity on this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the mean time, I've simply changed the HAL layer to report 1 for zoom and then the Camera API parameters report false for isZoomSupported. &amp;nbsp;It's an OK workaround unless you need zoom.&lt;/P&gt;&lt;P&gt;Near as I can tell, there is just no support for zoom in the HAL layer. &amp;nbsp;The only references to it are in the metadata and there isn't any code that calls those functions anyway. &amp;nbsp;So unless I missed something the zoom parameters are simply is ignored.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 15:23:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-support-for-camera-zoom/m-p/1480672#M191951</guid>
      <dc:creator>dennis3</dc:creator>
      <dc:date>2022-06-27T15:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Android support for camera zoom</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-support-for-camera-zoom/m-p/1481305#M191987</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/167845"&gt;@dennis3&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had the same findings.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also found the following section that explains that '4' in the zoom:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chrispeterson_0-1656431650027.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/184916i2542930CF88D5840/image-size/medium?v=v2&amp;amp;px=400" role="button" title="chrispeterson_0-1656431650027.png" alt="chrispeterson_0-1656431650027.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is located in the &lt;A href="https://www.nxp.com/docs/en/user-guide/iMX8MP_CAMERA_DISPLAY_GUIDE.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/user-guide/iMX8MP_CAMERA_DISPLAY_GUIDE.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/61445"&gt;@nxp&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This also defines the interface to control through an IOCTL call.&lt;/P&gt;&lt;P&gt;Is this API to get the ISP to do the scaling?&amp;nbsp; Does this happen in the GPU? In Software?&lt;/P&gt;&lt;P&gt;I searched through the i.MX 8M Plus Application Processor Reference manual and I didn't find any reference in the ISP of DEWARP section that&amp;nbsp; upscale / zoom is a feature.&amp;nbsp; Those sections do mention downscaling though.&lt;/P&gt;&lt;P&gt;Is the ISP capably of upscaling / zooming digitally?&lt;/P&gt;&lt;P&gt;-Chris&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 15:59:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-support-for-camera-zoom/m-p/1481305#M191987</guid>
      <dc:creator>chrispeterson</dc:creator>
      <dc:date>2022-06-28T15:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Android support for camera zoom</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-support-for-camera-zoom/m-p/1481334#M191991</link>
      <description>&lt;P&gt;We are also not using the ISP. &amp;nbsp;I haven't searched the code to figure out if this is ISP specific or not.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 17:54:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-support-for-camera-zoom/m-p/1481334#M191991</guid>
      <dc:creator>dennis3</dc:creator>
      <dc:date>2022-06-28T17:54:53Z</dc:date>
    </item>
  </channel>
</rss>

