<?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のトピックCamera frames handling</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Camera-frames-handling/m-p/597627#M89667</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;I've a custom camera which will give the frame size what we requested.&lt;/P&gt;&lt;P&gt;Say for ex, if we request frames in 1000bytes, then it will give you the 1000bytes on the MIPI data channel.&lt;/P&gt;&lt;P&gt;Now, I'm requesting the 1440000bytes (800x600x3) data from camera, it give and able to receive as a frame in buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In driver, I took square root of 1440000 and assigned the value to both width and height of image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drivers/media/platform/mxc/capture/mxc_v4l2_capture.c&lt;/P&gt;&lt;P&gt;Function: mxc_v4l2_s_fmt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case V4L2_PIX_FMT_BAYER:&lt;BR /&gt;//&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;size = f-&amp;gt;fmt.pix.width * f-&amp;gt;fmt.pix.height * 3;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;printk("V4L2_PIX_FMT_BAYER&amp;nbsp; %d:\n",f-&amp;gt;fmt.pix.sizeimage);//Size is set by user v4l2 app code i.e 1440000&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;size = f-&amp;gt;fmt.pix.sizeimage;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;f-&amp;gt;fmt.pix.width = f-&amp;gt;fmt.pix.height = (int_sqrt(size));&lt;BR /&gt;//&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;bytesperline = f-&amp;gt;fmt.pix.width * 3;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;break;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using the above change, able to get the complete frame for 1440000bytes of data, but not for if I increase 1 bytes (1440001)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if I have requested 1440055bytes from camera, it gives data to the iMX MIPI channel then its able to get data but misaligned.&lt;/P&gt;&lt;P&gt;How can I get the correct data ?&lt;/P&gt;&lt;P&gt;I'm using Bayer camera sensor so I've used IPU_PIX_FMT_GENERIC option and setting the RAW sensor settings in registers by seeing the other posts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any insights or pointers on this problem, how we can apply workaround for this case.&lt;/P&gt;&lt;P&gt;I appreciate your help on this.&lt;/P&gt;&lt;P&gt;Thanks for your help.&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>Fri, 09 Dec 2016 15:05:41 GMT</pubDate>
    <dc:creator>titusstalin</dc:creator>
    <dc:date>2016-12-09T15:05:41Z</dc:date>
    <item>
      <title>Camera frames handling</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-frames-handling/m-p/597627#M89667</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;I've a custom camera which will give the frame size what we requested.&lt;/P&gt;&lt;P&gt;Say for ex, if we request frames in 1000bytes, then it will give you the 1000bytes on the MIPI data channel.&lt;/P&gt;&lt;P&gt;Now, I'm requesting the 1440000bytes (800x600x3) data from camera, it give and able to receive as a frame in buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In driver, I took square root of 1440000 and assigned the value to both width and height of image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drivers/media/platform/mxc/capture/mxc_v4l2_capture.c&lt;/P&gt;&lt;P&gt;Function: mxc_v4l2_s_fmt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case V4L2_PIX_FMT_BAYER:&lt;BR /&gt;//&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;size = f-&amp;gt;fmt.pix.width * f-&amp;gt;fmt.pix.height * 3;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;printk("V4L2_PIX_FMT_BAYER&amp;nbsp; %d:\n",f-&amp;gt;fmt.pix.sizeimage);//Size is set by user v4l2 app code i.e 1440000&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;size = f-&amp;gt;fmt.pix.sizeimage;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;f-&amp;gt;fmt.pix.width = f-&amp;gt;fmt.pix.height = (int_sqrt(size));&lt;BR /&gt;//&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;bytesperline = f-&amp;gt;fmt.pix.width * 3;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;break;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using the above change, able to get the complete frame for 1440000bytes of data, but not for if I increase 1 bytes (1440001)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if I have requested 1440055bytes from camera, it gives data to the iMX MIPI channel then its able to get data but misaligned.&lt;/P&gt;&lt;P&gt;How can I get the correct data ?&lt;/P&gt;&lt;P&gt;I'm using Bayer camera sensor so I've used IPU_PIX_FMT_GENERIC option and setting the RAW sensor settings in registers by seeing the other posts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any insights or pointers on this problem, how we can apply workaround for this case.&lt;/P&gt;&lt;P&gt;I appreciate your help on this.&lt;/P&gt;&lt;P&gt;Thanks for your help.&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>Fri, 09 Dec 2016 15:05:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-frames-handling/m-p/597627#M89667</guid>
      <dc:creator>titusstalin</dc:creator>
      <dc:date>2016-12-09T15:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Camera frames handling</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-frames-handling/m-p/597628#M89668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="233051" data-username="titusstalin" href="https://community.nxp.com/people/titusstalin"&gt;Titus&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; i.MX SoC requires there should be ISP function in ISP module, otherwise camera image can't be displayed on screen. in mxc_v4l2_capture.c, RAW data from camera can normally be received by IPU_PIX_FMT_GENERIC, but no any subsequent handling.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; so you will have to confirm if there is ISP module in your camera!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Weidong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 08:30:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-frames-handling/m-p/597628#M89668</guid>
      <dc:creator>weidong_sun</dc:creator>
      <dc:date>2016-12-13T08:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Camera frames handling</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-frames-handling/m-p/597629#M89669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wigros sun,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Yes, our camera has ISP internally.&lt;/P&gt;&lt;P&gt;I have mentioned the issue clearly in the below post too, can you please support ?&lt;/P&gt;&lt;P&gt;Actually I was working iMX+MIPI for a month, spent more time on this, can you please guide me on this to resolve the problem.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/860167"&gt;https://community.nxp.com/message/860167&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your help is greatly appreciated.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 11:43:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-frames-handling/m-p/597629#M89669</guid>
      <dc:creator>titusstalin</dc:creator>
      <dc:date>2016-12-14T11:43:32Z</dc:date>
    </item>
  </channel>
</rss>

