<?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: RGB888 pixel data: disable zero-byte padding?</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/RGB888-pixel-data-disable-zero-byte-padding/m-p/856000#M130883</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For anyone stumbling upon this thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot receive packed RGB888 (RGB24) from the CSI-reciever on the IMX6/IMX7/IMX8.&lt;/P&gt;&lt;P&gt;See: &lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/message/1290681#comment-1300322" title="https://community.nxp.com/message/1290681#comment-1300322"&gt;https://community.nxp.com/message/1290681#comment-1300322&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you have to do is enabling PARALLEL24_EN in CSIRC18 and receive the data as XBGR32.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Aug 2020 17:35:57 GMT</pubDate>
    <dc:creator>andreasgustafss</dc:creator>
    <dc:date>2020-08-20T17:35:57Z</dc:date>
    <item>
      <title>RGB888 pixel data: disable zero-byte padding?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RGB888-pixel-data-disable-zero-byte-padding/m-p/855995#M130878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to capture RGB888 data via the MIPI-CSI2 link on an IMX8M.&lt;/P&gt;&lt;P&gt;I had to modify the mx6s_capture.c driver to set the PARALLEL24_EN bit in register CSIRC18 (otherwise all I got was bits 2-9 of&amp;nbsp;each 24-bit pixel).&amp;nbsp; Setting the PARALLEL24_EN bit got me all 24 bits of the RGB888 pixels, but unfortunately it looks as though the CSI bridge is padding a zero byte onto each pixel, so that the pixels go from 24 bits wide to 32 bits wide.&amp;nbsp; That is, each 32-bit word in the bridge fifo contains a 24-bit RGB pixel with a zero byte added as padding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The IMX7 reference manual states -- section 13.3.6.1.3 -- (for some bizarre reason, the CSI bridge is completely undocumented in the IMX8M manual, you *really* need to fix that)&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;An optional scheme to pack a dummy byte is provided. For every group of 3 bytes data, a&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dummy zero is packed to form a 32-bit word as shown in the figure below. The dummy&lt;/P&gt;&lt;P&gt;zero can be packed at the LSB position or MSB position. Using&lt;/P&gt;&lt;P&gt;RGB888A_FORMAT_SEL in CSI_CSICR18[18] to determine to put the dummy bytes&lt;/P&gt;&lt;P&gt;packed at LSB or MSB position.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;I see the bit in CSICR18 that controls *where* the zero byte gets added (lsb v msb), but I don't see any bit that stops the zero-byte padding altogether, as the first sentence in the above quote suggests.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to disable the zero-byte padding for RGB888 data?&lt;/P&gt;&lt;P&gt;Alternatively, is there any way to make the zero pad byte drop away when transferring data out of the bridge fifo?&amp;nbsp; (Other than software repacking the image data?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2019 23:02:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RGB888-pixel-data-disable-zero-byte-padding/m-p/855995#M130878</guid>
      <dc:creator>john_obendorfer</dc:creator>
      <dc:date>2019-01-23T23:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: RGB888 pixel data: disable zero-byte padding?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RGB888-pixel-data-disable-zero-byte-padding/m-p/855996#M130879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;if you use bsp 4.14.78, try to set CSICR3_TWO_8BIT_SESNSOR=0 and CSICR18.PARALLEL24_EN=1(you should set it already)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2019 09:21:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RGB888-pixel-data-disable-zero-byte-padding/m-p/855996#M130879</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2019-02-21T09:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: RGB888 pixel data: disable zero-byte padding?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RGB888-pixel-data-disable-zero-byte-padding/m-p/855997#M130880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've run into the same issue with an i.MX6ULL.&amp;nbsp; So no MIPI, but same 24-bit CSI interface.&amp;nbsp; PARALLEL24_EN in CSI_CSICR18 is set, and TWO_8BIT_SENSOR in CSI_CSICR3 is unset.&amp;nbsp; I get exactly what &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/john.obendorfer@cognex.com"&gt;john.obendorfer@cognex.com&lt;/A&gt;‌ reported:&amp;nbsp; the (correct) 3 bytes of RGB24 image data, with with a 0-byte added to pad every pixel out to 32 bits.&amp;nbsp; Most frustratingly, CSI_CSICR3 has a ZERO_PACK_EN bit that purports to enable/disable this exact feature, but does not:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80947i0FCFDAB76FFEBD87/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Just for the sake of trying everything, I attempted to set that bit as well, but with no change in behavior.&amp;nbsp; The throughput advantage of the 24-bit input is useless if the resulting image data needs to be software-unpacked to remove the zero bytes.&amp;nbsp; Certainly there must be a way around this?&lt;/P&gt;&lt;P&gt;i.mx 6ull&amp;nbsp;imx 6ull&amp;nbsp;6ull&amp;nbsp;csi imx6&amp;nbsp;24-bit&amp;nbsp;rgb888&amp;nbsp;rgb24&amp;nbsp;zero_pack_en&amp;nbsp;&lt;A href="https://community.nxp.com/t5/tag/parallel24_en/tg-p"&gt;#parallel24_en&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2019 14:50:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RGB888-pixel-data-disable-zero-byte-padding/m-p/855997#M130880</guid>
      <dc:creator>johncairns</dc:creator>
      <dc:date>2019-04-25T14:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: RGB888 pixel data: disable zero-byte padding?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RGB888-pixel-data-disable-zero-byte-padding/m-p/855998#M130881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&amp;nbsp;John&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Do you figure out this question? I have come across the same problem, and I did what you did before, but it does not work, is there some detials to pay attention to?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2020 06:28:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RGB888-pixel-data-disable-zero-byte-padding/m-p/855998#M130881</guid>
      <dc:creator>1603354597</dc:creator>
      <dc:date>2020-03-11T06:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: RGB888 pixel data: disable zero-byte padding?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RGB888-pixel-data-disable-zero-byte-padding/m-p/855999#M130882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wang,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, no.&amp;nbsp; We worked around the issue by going to an 8-bit pixel mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2020 01:02:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RGB888-pixel-data-disable-zero-byte-padding/m-p/855999#M130882</guid>
      <dc:creator>john_obendorfer</dc:creator>
      <dc:date>2020-05-14T01:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: RGB888 pixel data: disable zero-byte padding?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RGB888-pixel-data-disable-zero-byte-padding/m-p/856000#M130883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For anyone stumbling upon this thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot receive packed RGB888 (RGB24) from the CSI-reciever on the IMX6/IMX7/IMX8.&lt;/P&gt;&lt;P&gt;See: &lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/message/1290681#comment-1300322" title="https://community.nxp.com/message/1290681#comment-1300322"&gt;https://community.nxp.com/message/1290681#comment-1300322&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you have to do is enabling PARALLEL24_EN in CSIRC18 and receive the data as XBGR32.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2020 17:35:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RGB888-pixel-data-disable-zero-byte-padding/m-p/856000#M130883</guid>
      <dc:creator>andreasgustafss</dc:creator>
      <dc:date>2020-08-20T17:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: RGB888 pixel data: disable zero-byte padding?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RGB888-pixel-data-disable-zero-byte-padding/m-p/1355821#M181559</link>
      <description>&lt;P&gt;Hello All&lt;BR /&gt;Does the way exist to fill "dummy zero" by 0xFF while packing?&lt;BR /&gt;Thanks in advance for response&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 12:00:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RGB888-pixel-data-disable-zero-byte-padding/m-p/1355821#M181559</guid>
      <dc:creator>Skeef</dc:creator>
      <dc:date>2021-10-14T12:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: RGB888 pixel data: disable zero-byte padding?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RGB888-pixel-data-disable-zero-byte-padding/m-p/1402891#M186104</link>
      <description>&lt;P&gt;great thanks for this comment&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 22:33:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RGB888-pixel-data-disable-zero-byte-padding/m-p/1402891#M186104</guid>
      <dc:creator>ilyakosharov</dc:creator>
      <dc:date>2022-01-20T22:33:11Z</dc:date>
    </item>
  </channel>
</rss>

