<?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: After enable 16 csi0, video is rolling and color was wrong in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/After-enable-16-csi0-video-is-rolling-and-color-was-wrong/m-p/485645#M77608</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, igorpadykov.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on Table 66, I have verified the CSI_DATA19~CSI_DATA4 and the connections are correct with my sensor.&lt;/P&gt;&lt;P&gt;I think I should check the &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;CPMEM. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;BTW, I have surveyed some articles like &lt;A href="https://community.nxp.com/thread/349887"&gt;Missing v-sync in Bt.656 capture (rolling video)&lt;/A&gt; . I also have the video rolling issue but I make sure that my V_Sync, H_Sync pins are fine by Oscilloscope machine. Do you have any idea??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Thanks again! The information you provide is what I need.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Apr 2016 02:07:31 GMT</pubDate>
    <dc:creator>jayhuang</dc:creator>
    <dc:date>2016-04-29T02:07:31Z</dc:date>
    <item>
      <title>After enable 16 csi0, video is rolling and color was wrong</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/After-enable-16-csi0-video-is-rolling-and-color-was-wrong/m-p/485643#M77606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My environment is:&lt;/P&gt;&lt;P&gt; platform : imx6q&lt;/P&gt;&lt;P&gt; linux kernel: Linux version 3.10.53-88228-g9ebf157-dirty &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I wanted to enlarge the csi0 width from 8 to 16 between my sensor and ipu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My sensor supports bt656 8-bit and YCbCr 4:2:2 16-bit. Based on IMX6DQRM, the ipu of imx6q supports bt656 8-bit and 16 bit YUV422 (In 37.4.3.9 16-bit camera support.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following are my combination:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; sensor&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt; --- &amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; imx6&lt;/P&gt;&lt;P&gt;BT656 8-bit&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BT656 8-bit&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; fine, please check the attach normal.jpg&lt;/P&gt;&lt;P&gt;YCbCr4:2:2 16-bit&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IPU_PIX_FMT_GENERIC_16&amp;nbsp;&amp;nbsp; =&amp;gt; wrong, please check the video.mp4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My modifications (I used v4l2 to link my sensor and imx6q):&lt;/P&gt;&lt;P&gt;In my sensor driver:&lt;/P&gt;&lt;P&gt;* ioctl_g_ifparm:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Change the V4L2_IF_TYPE_BT656_SPECIFY to V4L2_IF_TYPE_GATE.&lt;/P&gt;&lt;P&gt;&amp;nbsp; There are detail:&lt;/P&gt;&lt;P&gt;&amp;nbsp; if_type = V4L2_IF_TYPE_GATE;&lt;/P&gt;&lt;P&gt;&amp;nbsp; u.gate.csi_data_width = 9; //16-bit&lt;/P&gt;&lt;P&gt;&amp;nbsp; u.gate.nobt_hs_inv = sensor.HPolarity;&lt;/P&gt;&lt;P&gt;&amp;nbsp; u.gate.nobt_vs_inv = sensor..CurVTiming.VPolarity;&lt;/P&gt;&lt;P&gt;&amp;nbsp; u.gate.latch_clk_inv = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; u.gate.swap = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; u.gate.frame_start_on_rising_vs = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; u.gate.v_sync_correct = 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; u.gate.clock_curr = sensor.curclk;&lt;/P&gt;&lt;P&gt;&amp;nbsp; u.gate.clock_min = sensor.minclk;&lt;/P&gt;&lt;P&gt;&amp;nbsp; u.gate.clock_max = sensor.maxclk;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* ioctl_g_fmt_cap:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Change the V4L2_PIX_FMT_UYVY to IPU_PIX_FMT_GENERIC_16.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; fmt.pix.pixelformat = IPU_PIX_FMT_GENERIC_16;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; fmt.pix.width = sensor.HActive;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; fmt.pix.height = (sensor.ScanMode != 0) ? sensor.VActive * 2 : sensor.VActive;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; fmt.pix.field = V4L2_FIELD_INTERLACED_BT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; fmt.pix.sizeimage = f-&amp;gt;fmt.pix.width * f-&amp;gt;fmt.pix.height;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; fmt.pix.colorspace = V4L2_COLORSPACE_JPEG;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In imx6:&lt;/P&gt;&lt;P&gt; I didn't do any change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone give me a hand??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 11:03:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/After-enable-16-csi0-video-is-rolling-and-color-was-wrong/m-p/485643#M77606</guid>
      <dc:creator>jayhuang</dc:creator>
      <dc:date>2016-04-28T11:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: After enable 16 csi0, video is rolling and color was wrong</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/After-enable-16-csi0-video-is-rolling-and-color-was-wrong/m-p/485644#M77607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first please verify correct sensor connection, it should be&lt;/P&gt;&lt;P&gt;CSI_DATA19 ~ CSI_DATA4 as shown in Table 66. Camera Input&lt;/P&gt;&lt;P&gt;Signal Cross Reference, Format, and Bits Per Cycle i.MX6DQ Datasheet&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fcache.freescale.com%2Ffiles%2F32bit%2Fdoc%2Fdata_sheet%2FIMX6DQCEC.pdf" rel="nofollow" target="_blank"&gt;http://cache.freescale.com/files/32bit/doc/data_sheet/IMX6DQCEC.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;then please try to implement settings suggested in :&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/307846"&gt;MX53 CSI/IDMAC config for Aptina 12-bit grayscale camera?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 11:34:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/After-enable-16-csi0-video-is-rolling-and-color-was-wrong/m-p/485644#M77607</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-04-28T11:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: After enable 16 csi0, video is rolling and color was wrong</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/After-enable-16-csi0-video-is-rolling-and-color-was-wrong/m-p/485645#M77608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, igorpadykov.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on Table 66, I have verified the CSI_DATA19~CSI_DATA4 and the connections are correct with my sensor.&lt;/P&gt;&lt;P&gt;I think I should check the &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;CPMEM. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;BTW, I have surveyed some articles like &lt;A href="https://community.nxp.com/thread/349887"&gt;Missing v-sync in Bt.656 capture (rolling video)&lt;/A&gt; . I also have the video rolling issue but I make sure that my V_Sync, H_Sync pins are fine by Oscilloscope machine. Do you have any idea??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Thanks again! The information you provide is what I need.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2016 02:07:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/After-enable-16-csi0-video-is-rolling-and-color-was-wrong/m-p/485645#M77608</guid>
      <dc:creator>jayhuang</dc:creator>
      <dc:date>2016-04-29T02:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: After enable 16 csi0, video is rolling and color was wrong</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/After-enable-16-csi0-video-is-rolling-and-color-was-wrong/m-p/485646#M77609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have fixed the rolling and 4 frames issues by changing the pixel format to IPU_PIX_FMT_GENERIC_16 of csi-&amp;gt;mem channel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I got another issue, please see the attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pic_1 is the correct. pic_2 is my current status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dump the frame via "&lt;SPAN style="color: #3b3a3c; font-family: ProximaNova-Light, nova, arial, sans-serif; font-size: 17px;"&gt;mxc-v4l2-capture&lt;/SPAN&gt;" program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone give me a hand??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 06:13:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/After-enable-16-csi0-video-is-rolling-and-color-was-wrong/m-p/485646#M77609</guid>
      <dc:creator>jayhuang</dc:creator>
      <dc:date>2016-05-11T06:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: After enable 16 csi0, video is rolling and color was wrong</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/After-enable-16-csi0-video-is-rolling-and-color-was-wrong/m-p/485647#M77610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Jay：&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have&amp;nbsp; you resolved the problem ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2019 11:22:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/After-enable-16-csi0-video-is-rolling-and-color-was-wrong/m-p/485647#M77610</guid>
      <dc:creator>765077233</dc:creator>
      <dc:date>2019-06-10T11:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: After enable 16 csi0, video is rolling and color was wrong</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/After-enable-16-csi0-video-is-rolling-and-color-was-wrong/m-p/485648#M77611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. I solved this problem two years ago.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;765077233@qq.com &amp;lt;admin@community.nxp.com&amp;gt; 於 2019年6月10日 週一 下午10:45寫道：&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;P&gt;NXP Community&lt;/P&gt;&lt;P&gt;&amp;lt;https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg&amp;gt;&lt;/P&gt;&lt;P&gt;Re: After enable 16 csi0, video is rolling and color was wrong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from Kyle Niu&lt;/P&gt;&lt;P&gt;&amp;lt;https://community.nxp.com/people/765077233@qq.com?et=watches.email.thread&amp;gt;&lt;/P&gt;&lt;P&gt;in &lt;STRONG&gt;i.MX Processors&lt;/STRONG&gt; - View the full discussion&lt;/P&gt;&lt;P&gt;&amp;lt;https://community.nxp.com/message/1162518?commentID=1162518&amp;amp;et=watches.email.thread#comment-1162518&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2019 15:26:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/After-enable-16-csi0-video-is-rolling-and-color-was-wrong/m-p/485648#M77611</guid>
      <dc:creator>jayhuang</dc:creator>
      <dc:date>2019-06-10T15:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: After enable 16 csi0, video is rolling and color was wrong</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/After-enable-16-csi0-video-is-rolling-and-color-was-wrong/m-p/485649#M77612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jay:&lt;/P&gt;&lt;P&gt;Could you tell me how to resolve it?By the way ,where is the macro&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;V4L2_IF_TYPE_GATE from?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2019 07:21:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/After-enable-16-csi0-video-is-rolling-and-color-was-wrong/m-p/485649#M77612</guid>
      <dc:creator>765077233</dc:creator>
      <dc:date>2019-06-12T07:21:22Z</dc:date>
    </item>
  </channel>
</rss>

