<?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: MIPI CSI2 RAW10 which V4L2 pixel format?</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/MIPI-CSI2-RAW10-which-V4L2-pixel-format/m-p/690485#M106956</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi joachim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IPU can receive bayer format from CSI port as generic data, but&lt;BR /&gt;IPU don't make Bayer conversion and IPU (IC, DP, DC and etc) doesn't &lt;BR /&gt;recognize bayer as a valid image format.&lt;BR /&gt;You will need to use some graphics library/API like gstreamer, ffmpeg and &lt;BR /&gt;others to make this conversion using the CPU. Please also check&lt;BR /&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/357122"&gt;https://community.nxp.com/thread/357122&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Jul 2017 23:00:25 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2017-07-10T23:00:25Z</dc:date>
    <item>
      <title>MIPI CSI2 RAW10 which V4L2 pixel format?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MIPI-CSI2-RAW10-which-V4L2-pixel-format/m-p/690484#M106955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a gray scale Image Sensor with SubLVDS. I use e Lattis FPGA to convert the SubLVDS to MIPI CSI2. The MIPI signal is connected to an imx6.&amp;nbsp;I configure the sensor to 10Bit and the FPGA to RAW10. Now i write a V4L2 modul.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I configure the MIPI with "mipi_csi2_set_datatype(mipi_csi2_info,MIPI_DT_RAW10);" to RAW10.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Userspace i need image Data with&amp;nbsp;10 bit gray scale saved in 16bit Array.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there&amp;nbsp;is a chapter&amp;nbsp;"40.5.15 RAW10 Data Reception" in IMX6DQRM.pdf&lt;/P&gt;&lt;P&gt;&lt;A data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fcache.freescale.com%2Ffiles%2F32bit%2Fdoc%2Fref_manual%2FIMX6DQRM.pdf" rel="nofollow" style="color: #5e89c1; border: 0px; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6DQRM.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"The RAW10 data format the byte to 32-bit memory word mapping follows the generic&lt;BR /&gt;CSI-2 rule."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which&amp;nbsp;Pixelformat i need for "sensor_data.pix.pixelformat" to get correct data from MIPI CSI2?&lt;/P&gt;&lt;P&gt;how i can convert the image data?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 09:33:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MIPI-CSI2-RAW10-which-V4L2-pixel-format/m-p/690484#M106955</guid>
      <dc:creator>joachimjaehn</dc:creator>
      <dc:date>2017-07-10T09:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: MIPI CSI2 RAW10 which V4L2 pixel format?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MIPI-CSI2-RAW10-which-V4L2-pixel-format/m-p/690485#M106956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi joachim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IPU can receive bayer format from CSI port as generic data, but&lt;BR /&gt;IPU don't make Bayer conversion and IPU (IC, DP, DC and etc) doesn't &lt;BR /&gt;recognize bayer as a valid image format.&lt;BR /&gt;You will need to use some graphics library/API like gstreamer, ffmpeg and &lt;BR /&gt;others to make this conversion using the CPU. Please also check&lt;BR /&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/357122"&gt;https://community.nxp.com/thread/357122&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 23:00:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MIPI-CSI2-RAW10-which-V4L2-pixel-format/m-p/690485#M106956</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-07-10T23:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: MIPI CSI2 RAW10 which V4L2 pixel format?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MIPI-CSI2-RAW10-which-V4L2-pixel-format/m-p/690486#M106957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i fond this Pixelformats in videodev2.h:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* 10bit raw bayer packed, 5 bytes for every 4 pixels */&lt;BR /&gt;#define V4L2_PIX_FMT_SBGGR10P v4l2_fourcc('p', 'B', 'A', 'A')&lt;BR /&gt;#define V4L2_PIX_FMT_SGBRG10P v4l2_fourcc('p', 'G', 'A', 'A')&lt;BR /&gt;#define V4L2_PIX_FMT_SGRBG10P v4l2_fourcc('p', 'g', 'A', 'A')&lt;BR /&gt;#define V4L2_PIX_FMT_SRGGB10P v4l2_fourcc('p', 'R', 'A', 'A')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the bit order at this Link&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.linuxtv.org/downloads/v4l-dvb-apis-old/pixfmt-srggb10p.html" title="https://www.linuxtv.org/downloads/v4l-dvb-apis-old/pixfmt-srggb10p.html"&gt;V4L2_PIX_FMT_SRGGB10P ('pRAA'), V4L2_PIX_FMT_SGRBG10P ('pgAA'), V4L2_PIX_FMT_SGBRG10P ('pGAA'), V4L2_PIX_FMT_SBGGR10P ('…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the right bit order. now i have a problem. There is no implementations of 10bit raw bayer packed in my kernel files.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mxc_v4l2_capture.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*!&lt;BR /&gt; * Indicates whether the palette is supported.&lt;BR /&gt; *&lt;BR /&gt; * @param palette V4L2_PIX_FMT_RGB565, V4L2_PIX_FMT_BGR24 or V4L2_PIX_FMT_BGR32&lt;BR /&gt; *&lt;BR /&gt; * @return 0 if failed&lt;BR /&gt; */&lt;BR /&gt;static inline int valid_mode(u32 palette)&lt;BR /&gt;{&lt;BR /&gt; return (&lt;BR /&gt; (palette == V4L2_PIX_FMT_RGB565) ||&lt;BR /&gt; (palette == V4L2_PIX_FMT_BGR24) ||&lt;BR /&gt; (palette == V4L2_PIX_FMT_RGB24) ||&lt;BR /&gt; (palette == V4L2_PIX_FMT_BGR32) ||&lt;BR /&gt; (palette == V4L2_PIX_FMT_RGB32) ||&lt;BR /&gt; (palette == V4L2_PIX_FMT_YUV422P) ||&lt;BR /&gt; (palette == V4L2_PIX_FMT_UYVY) ||&lt;BR /&gt; (palette == V4L2_PIX_FMT_YUYV) ||&lt;BR /&gt; (palette == V4L2_PIX_FMT_YUV420) ||&lt;BR /&gt; (palette == V4L2_PIX_FMT_YVU420) ||&lt;BR /&gt; (palette == V4L2_PIX_FMT_NV12)) ||&lt;BR /&gt; (palette == V4L2_PIX_FMT_GREY) || /* Enabling the 8-bit greyscale pixelformat*/&lt;BR /&gt; (palette == V4L2_PIX_FMT_Y10); /* Enabling the 10-bit greyscale pixelformat*/&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2017 11:38:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MIPI-CSI2-RAW10-which-V4L2-pixel-format/m-p/690486#M106957</guid>
      <dc:creator>joachimjaehn</dc:creator>
      <dc:date>2017-07-11T11:38:31Z</dc:date>
    </item>
  </channel>
</rss>

