<?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: Accessing camera frame buffer in iMX8M plus kernel.</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Accessing-camera-frame-buffer-in-iMX8M-plus-kernel/m-p/1527812#M195592</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Please try to refer function&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;mxc_isi_channel_set_m2m_src_addr &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;to get address&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Sep 2022 04:30:43 GMT</pubDate>
    <dc:creator>Zhiming_Liu</dc:creator>
    <dc:date>2022-09-26T04:30:43Z</dc:date>
    <item>
      <title>Accessing camera frame buffer in iMX8M plus kernel.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Accessing-camera-frame-buffer-in-iMX8M-plus-kernel/m-p/1525551#M195414</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are trying to modify first few bytes of camera frame buffer with custom header data for our use.&lt;BR /&gt;&lt;BR /&gt;We are using Variscite DART-MX8MPLUS kit which is having binaries corresponding to following kernel source.&lt;BR /&gt;Git&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; : &lt;A href="https://github.com/varigit/linux-imx.git" target="_blank"&gt;https://github.com/varigit/linux-imx.git&lt;/A&gt;&lt;BR /&gt;Branch : lf-5.10.y_var03&lt;BR /&gt;&lt;BR /&gt;We found that, following two functions are continuously called during streaming.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; i) &lt;STRONG&gt;mxc_isi_cap_frame_write_done&lt;/STRONG&gt; function in "&lt;STRONG&gt;drivers/staging/media/imx/imx8-isi-cap.c&lt;/STRONG&gt;" &amp;amp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ii) &lt;STRONG&gt;vb2_core_dqbuf&lt;/STRONG&gt; function in "&lt;STRONG&gt;drivers/media/common/videobuf2/videobuf2-core.c&lt;/STRONG&gt;"&lt;BR /&gt;&lt;BR /&gt;And we could get the frame pointer address by adding following codes inside &lt;STRONG&gt;mxc_isi_cap_frame_write_done&lt;/STRONG&gt; function.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;void *ptr;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned int buf_size = 0;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; ptr = (__u32 *)vb2_plane_vaddr(vb2, 0);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; buf_size = vb2_plane_size(vb2, 0);&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;But if we try to access the memory pointed by &lt;STRONG&gt;ptr&lt;/STRONG&gt; using &lt;STRONG&gt;memcpy&lt;/STRONG&gt; function, the whole kit blocks and reboots after few seconds.&lt;BR /&gt;Could you please guide us on how to access the camera buffer in kernel space properly?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 06:09:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Accessing-camera-frame-buffer-in-iMX8M-plus-kernel/m-p/1525551#M195414</guid>
      <dc:creator>koilarulraj</dc:creator>
      <dc:date>2022-09-21T06:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing camera frame buffer in iMX8M plus kernel.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Accessing-camera-frame-buffer-in-iMX8M-plus-kernel/m-p/1527812#M195592</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Please try to refer function&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;mxc_isi_channel_set_m2m_src_addr &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;to get address&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 04:30:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Accessing-camera-frame-buffer-in-iMX8M-plus-kernel/m-p/1527812#M195592</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2022-09-26T04:30:43Z</dc:date>
    </item>
  </channel>
</rss>

