<?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 How to print the camera frame buffer? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-print-the-camera-frame-buffer/m-p/634049#M96499</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell me how to print the content of camera frame buffer ?&lt;/P&gt;&lt;P&gt;Want to print the camera frame buffer in kernel driver for debugging purposes.&lt;/P&gt;&lt;P&gt;May be need to add some code in below code, don't know how to access.&lt;/P&gt;&lt;P&gt;drivers/media/platform/mxc/capture/mxc_v4l2_capture.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Titus S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Nov 2016 12:22:35 GMT</pubDate>
    <dc:creator>titusstalin</dc:creator>
    <dc:date>2016-11-30T12:22:35Z</dc:date>
    <item>
      <title>How to print the camera frame buffer?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-print-the-camera-frame-buffer/m-p/634049#M96499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell me how to print the content of camera frame buffer ?&lt;/P&gt;&lt;P&gt;Want to print the camera frame buffer in kernel driver for debugging purposes.&lt;/P&gt;&lt;P&gt;May be need to add some code in below code, don't know how to access.&lt;/P&gt;&lt;P&gt;drivers/media/platform/mxc/capture/mxc_v4l2_capture.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Titus S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 12:22:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-print-the-camera-frame-buffer/m-p/634049#M96499</guid>
      <dc:creator>titusstalin</dc:creator>
      <dc:date>2016-11-30T12:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to print the camera frame buffer?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-print-the-camera-frame-buffer/m-p/634050#M96500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Titus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check this user application example:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/rogeriorps/v4l2-examples/blob/master/example2/example2.c" title="https://github.com/rogeriorps/v4l2-examples/blob/master/example2/example2.c"&gt;v4l2-examples/example2.c at master · rogeriorps/v4l2-examples · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's based on /unit_tests/mxc_v4l2_tvin.out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On lines 397 and 399 it makes a memcopy to copy the image between input and output buffers. The camera buffer is available at "&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;capture_buffers[capture_buf.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333; background-color: #ffffff;"&gt;index&lt;/SPAN&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;].&lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333; background-color: #ffffff;"&gt;start" in this example.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #333333; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #333333; background-color: #ffffff;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #333333; background-color: #ffffff;"&gt;Rogerio&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 12:56:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-print-the-camera-frame-buffer/m-p/634050#M96500</guid>
      <dc:creator>rogerio_silva</dc:creator>
      <dc:date>2016-11-30T12:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to print the camera frame buffer?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-print-the-camera-frame-buffer/m-p/634051#M96501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;But I'm able to do this already in userspace.&lt;/P&gt;&lt;P&gt;I want to do it in kernel driver.&lt;/P&gt;&lt;P&gt;Can you please help me on this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Titus S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 14:50:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-print-the-camera-frame-buffer/m-p/634051#M96501</guid>
      <dc:creator>titusstalin</dc:creator>
      <dc:date>2016-11-30T14:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to print the camera frame buffer?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-print-the-camera-frame-buffer/m-p/634052#M96502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Supposing you're using an i.MX with IPU, in kernel drivers, the starting address of framebuffers are registered on EBA0 (and in case of double buffer also in EBA1) registers inside each IDMAC CPMEM Parameters. I think it will be easier to work on IPU drivers instead V4L2. They're located at linix/drivers/mxc/ipu3/.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 15:07:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-print-the-camera-frame-buffer/m-p/634052#M96502</guid>
      <dc:creator>rogerio_silva</dc:creator>
      <dc:date>2016-11-30T15:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to print the camera frame buffer?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-print-the-camera-frame-buffer/m-p/634053#M96503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rogerio.&lt;/P&gt;&lt;P&gt;I'm able to print the contents of frame buffer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;char *pTmp = (char *) cam-&amp;gt;frame[0].vaddress;&lt;BR /&gt;printk("\n ####################### Titus Start 0x%x 0x%x ####################\n",buf-&amp;gt;m.offset,cam-&amp;gt;frame[0].vaddress);&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;for(i=0;i&amp;lt;100;i++)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;printk(" i -&amp;gt; %d, 0x%x ",i,*pTmp++);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 17:40:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-print-the-camera-frame-buffer/m-p/634053#M96503</guid>
      <dc:creator>titusstalin</dc:creator>
      <dc:date>2016-11-30T17:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to print the camera frame buffer?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-print-the-camera-frame-buffer/m-p/634054#M96504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very good! Thanks for the feedback.&lt;/P&gt;&lt;P&gt;Rogerio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 18:14:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-print-the-camera-frame-buffer/m-p/634054#M96504</guid>
      <dc:creator>rogerio_silva</dc:creator>
      <dc:date>2016-11-30T18:14:57Z</dc:date>
    </item>
  </channel>
</rss>

