<?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>i.MX ProcessorsのトピックRe: IMX Android 8.0.0 add yuyv format support</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX-Android-8-0-0-add-yuyv-format-support/m-p/1020706#M150965</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what board and bsp are you talking about?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Feb 2020 01:48:17 GMT</pubDate>
    <dc:creator>joanxie</dc:creator>
    <dc:date>2020-02-10T01:48:17Z</dc:date>
    <item>
      <title>IMX Android 8.0.0 add yuyv format support</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX-Android-8-0-0-add-yuyv-format-support/m-p/1020705#M150964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I download&amp;nbsp;&lt;SPAN style="color: #6f6f73; background-color: #ffffff; font-size: 16px;"&gt;Android 8.0.0 Oreo (O8.0.0_1.0.0, 4.9 kernel)&lt;SPAN&gt;&amp;nbsp; from&amp;nbsp;Official website。We connected a camera with DVP interface，and&amp;nbsp;need to get the raw data in YUYV format in the android application layer。I modified the camera file to add yuyv support in &lt;SPAN style="color: #3d3d3d;"&gt;vendor\nxp-opensource\imx\libcamera3\&lt;/SPAN&gt;InfraredCsi.cpp as follows：&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sensorFormats[index] = v4l2_fourcc('Y', 'U', 'Y', 'V');&lt;BR /&gt; availFormats[index++] = v4l2_fourcc('Y', 'U', 'Y', 'V');&lt;BR /&gt; mSensorFormatCount = changeSensorFormats(sensorFormats, mSensorFormats, index);&lt;BR /&gt; if (mSensorFormatCount == 0) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;ALOGE("%s no sensor format enum", __func__);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;close(fd);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;return BAD_VALUE;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also&amp;nbsp;&lt;SPAN style="color: #6f6f73; background-color: #ffffff;"&gt;I add print in&amp;nbsp;&lt;/SPAN&gt;vendor\nxp-opensource\imx\libcamera3\Metadata.cpp ：&lt;/P&gt;&lt;P&gt;m.addInt32(ANDROID_SCALER_AVAILABLE_FORMATS,&lt;BR /&gt; sensor.mAvailableFormatCount,&lt;BR /&gt; sensor.mAvailableFormats);&lt;BR /&gt; int i = 0;&lt;BR /&gt; for(i = 0; i &amp;lt; sensor.mAvailableFormatCount; i++)&lt;BR /&gt; {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;ALOGE("====waz: mAvailableFormats = %d\n", sensor.mAvailableFormats[i]);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only one value is printed here is 20,&amp;nbsp;represents the yuyv format。&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But&amp;nbsp;use the camera2 interface to view in the application layer, and there is no such format。&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add yuyv support, what else needs to be modified?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks！&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Dec 2019 01:55:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX-Android-8-0-0-add-yuyv-format-support/m-p/1020705#M150964</guid>
      <dc:creator>wangaizhi</dc:creator>
      <dc:date>2019-12-26T01:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: IMX Android 8.0.0 add yuyv format support</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX-Android-8-0-0-add-yuyv-format-support/m-p/1020706#M150965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what board and bsp are you talking about?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2020 01:48:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX-Android-8-0-0-add-yuyv-format-support/m-p/1020706#M150965</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2020-02-10T01:48:17Z</dc:date>
    </item>
  </channel>
</rss>

