<?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: Capturing YUV420 from MIPI CSI camera for VPU compression in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228842#M16783</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Liu Ying&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will try that, thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I need to stop the sensor itself from streaming when I de-activate and re-activate the IPU CSI receiving path?&lt;/P&gt;&lt;P&gt;I'm looking for a solution which does not require such a restart of the stream, since it will consume time on the sensor itself as well...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jan 2013 11:51:14 GMT</pubDate>
    <dc:creator>ofer_livny</dc:creator>
    <dc:date>2013-01-29T11:51:14Z</dc:date>
    <item>
      <title>Capturing YUV420 from MIPI CSI camera for VPU compression</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228828#M16769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the iMX6Q MIPI CSI and IPU to capture video from a camera.&lt;/P&gt;&lt;P&gt;My camera supports multiple data types, and I am able to capture with the data-types: RGB and YUV422.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am now experimenting with YUV420, and I hope I'll be able to send the video stream into the VPU for compression (Which only supports YUV420 for most codecs).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, it is not clear by the iMX6 and IPU spec if I can use this YUV420 datatype:&lt;/P&gt;&lt;P&gt;According to IMX6DQRM.pdf I found that the MIPI component supports all formats, CSI2IPU component supports all format, but it seems that the IPU does not support YUV420 (it is missing from the description of register IPUx_CSI0_SENS_CONF)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understand correctly, I can only use YUV420 if I configure it as a GENERIC MIPI data, and I won't be able to have the IPU working on it (i.e. stream the frame through its conversion block, or format converter in the IDMAC)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, since the VPU codecs can only work on YUV420, is it possible to create a capture loop which compresses the video without using CPU for format conversion ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advice :smileyhappy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ofer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 17:13:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228828#M16769</guid>
      <dc:creator>ofer_livny</dc:creator>
      <dc:date>2013-01-17T17:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing YUV420 from MIPI CSI camera for VPU compression</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228829#M16770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this is exactly the problem I have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am considering using imgconvert.c from ffmpegcolorspace&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://code.google.com/p/ossbuild/source/browse/trunk/Main/GStreamer/Source/gst-plugins-base/gst/ffmpegcolorspace/imgconvert.c"&gt;http://code.google.com/p/ossbuild/source/browse/trunk/Main/GStreamer/Source/gst-plugins-base/gst/ffmpegcolorspace/imgconvert.c&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I fear it will be very CPU intensive. Currently without colorspace conversion encoding uses 7% of the CPU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can the IC be used to do this YUV422 -&amp;gt; YUV420 color space conversion? I am using the IC to do resizing so it could be difficult to reconfigure it to alternately perform each task...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 05:08:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228829#M16770</guid>
      <dc:creator>fcs</dc:creator>
      <dc:date>2013-01-18T05:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing YUV420 from MIPI CSI camera for VPU compression</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228830#M16771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I know you can use the IC for conversion.&lt;/P&gt;&lt;P&gt;The only problem is that its output is limited to 1024x1024, which means that higher resolution cannot be encoded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saying that, I must add again that this means that the VPU encoders are very VERY limited:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The VPU encoders support 1080p (&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: sans-serif; font-size: 12.499999046325684px; background-color: #ffffff;"&gt;1920×1080&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;) but only with a specific variation of YUV420 (Y channel must be planar)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The only way to encode 1080p video will be to use a camera sensor which streams this exact variation of YUV420.&lt;/P&gt;&lt;P&gt;Since this PLANAR format is not exactly the best known way for streaming video (and thats an understatement) - it actually means that VPU encoders can effectively work only on 1024x1024 resolution. (which is the IPU's output limit).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means more complicated software, heavier RAM usage (capture interleaved YUV420 image to memory, read into IPU IC, write planar YUV420 to memory, and read it into VPU...), and resolution limit lower than 1080p.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully someone at Freescale will explain what this 1080p encoding capability can be really used for...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For now, I suppose I'm stuck with YUV422 and MJPEG encoding. Not too bad, but not optimal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 13:10:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228830#M16771</guid>
      <dc:creator>ofer_livny</dc:creator>
      <dc:date>2013-01-18T13:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing YUV420 from MIPI CSI camera for VPU compression</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228831#M16772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;720p is enough for us.&lt;/P&gt;&lt;P&gt;You say you are "stuck with YUV422 and MJPEG encoding", does this use the VPU?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Jan 2013 23:24:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228831#M16772</guid>
      <dc:creator>fcs</dc:creator>
      <dc:date>2013-01-20T23:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing YUV420 from MIPI CSI camera for VPU compression</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228832#M16773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1080p camera record was validated on MX6 Android. The similar data flow can be adopted in any Linux based OS: The data from CSI is YUYV/UYVY format -&amp;gt;&amp;nbsp; When the data is from CSI to memory, the format is NV12 through CPMEM -&amp;gt; VPU use NV12 for encode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2013 03:07:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228832#M16773</guid>
      <dc:creator>lily_zhang</dc:creator>
      <dc:date>2013-01-22T03:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing YUV420 from MIPI CSI camera for VPU compression</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228833#M16774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xiaoli Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks! I was certain that this kind of pixel format conversion must go through the IC which is limited to 1024x1024 output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Never the less, it works :smileyhappy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll appreciate if you can help me figure out the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* I'll still prefer streaming YUV420 into the iMX6 instead of YUV422 - as less bandwidth equals less power consumption and less heat. If I understand correctly, this is still not doable. Am I correct ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* Reading the manual again, I still find it hard to understand how does the IDMAC solve this YUV422-&amp;gt;YUV420 conversion by itself. Is it the FCW block? I was quite certein it only capable of reordering of the bytes... Does it do subsampling of the chroma bytes, or is it something arithmetic?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;nbsp; If YUV422 to YUV420 conversion is done in the IDMAC, why does the IPU library limits the output to 1024x1024 even when all I am trying to do is format conversion (without resizing) ? Is it a software limitation which I can override? Or is there a hardware reason for that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;Ofer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 14:04:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228833#M16774</guid>
      <dc:creator>ofer_livny</dc:creator>
      <dc:date>2013-01-23T14:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing YUV420 from MIPI CSI camera for VPU compression</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228834#M16775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, I use the VPU to encode JPEGs. The MJPEG codec accepts many variations of YUV, and is not limited to YUV420 as the reset of the VPU codecs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 14:06:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228834#M16775</guid>
      <dc:creator>ofer_livny</dc:creator>
      <dc:date>2013-01-23T14:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing YUV420 from MIPI CSI camera for VPU compression</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228835#M16776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000000; font-family: arial,helvetica,sans-serif;"&gt;Following are some comments for your questions:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000000; font-family: arial,helvetica,sans-serif;"&gt;1. According to IPUv3 spec, CSI can not capture YUV420 pixel.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000000; font-family: arial,helvetica,sans-serif;"&gt;2. After CSI captures YUV422 pixels, YUV422 pixels are converted to YUV444 pixels. When pixels need to be written to memory, IDMAC converts YUV444 pixels to YUV420 pixels( CPMEM’s PFS, UBO and VBO entries determine the pixel format. Of course, UBO and VBO are only valid for non-interleaved and partial interleaved pixel formats. ). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000000; font-family: arial,helvetica,sans-serif;"&gt;3. &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #000000; font-family: arial,helvetica,sans-serif;"&gt;IPU IC module has output limitation, which is clearly documented in IPUv3 spec, here is some quotation from IPUv3 spec:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; color: #000000; font-family: arial,helvetica,sans-serif;"&gt;39.3.1.5.3 Image Converter (IC)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000000; font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN lang="ZH-CN"&gt;•&lt;/SPAN&gt; Output: to system memory or (for a single active flow) to a display device (through&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000000; font-family: arial,helvetica,sans-serif;"&gt;the DP).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000000; font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN lang="ZH-CN"&gt;•&lt;/SPAN&gt; &lt;SPAN style="background: yellow;"&gt;Frame size: up to 1024x1024 pixels&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000000; font-family: arial,helvetica,sans-serif;"&gt;IPU library has split mode, which is a software workaround for this IC limitation. For instance, to get a 1080P frame, IC task will be used by 4 times.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 02:53:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228835#M16776</guid>
      <dc:creator>lily_zhang</dc:creator>
      <dc:date>2013-01-24T02:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing YUV420 from MIPI CSI camera for VPU compression</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228836#M16777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you &lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;A href="https://community.nxp.com/people/xiaoli.zhang"&gt;xiaoli.zhang&lt;/A&gt;&lt;/STRONG&gt; for the detailed explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try and use the split mode for that matter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As it seems that you have valuable knowledge of the IPU, may I ask you another question?&lt;/P&gt;&lt;P&gt;I am capturing 5MP images with my camera, and I would like to switch the data path in the IPU on a frame to frame basis.&lt;/P&gt;&lt;P&gt;i.e. Use CSI-PRP-MEM path to reduce the frame size to 1MP and once every 10 frames, get the full 5MP image on the CSI-MEM path.&lt;/P&gt;&lt;P&gt;Is that possible? &lt;/P&gt;&lt;P&gt;And more generally - are you familiar a working example of how to use the SRM mechanism in the IPU?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;Ofer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 08:08:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228836#M16777</guid>
      <dc:creator>ofer_livny</dc:creator>
      <dc:date>2013-01-24T08:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing YUV420 from MIPI CSI camera for VPU compression</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228837#M16778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like CSI--&amp;gt;MEM to generate YUV422P data (ie non-interleaved YUV 4:2:2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when I specify this as the format with VIDIOC_S_FMT on DMA channel 0, it seems that the data being generated is YUV420P. I say this because when displayed the chroma signals are only painted on the top half of the screen and are squashed vertically. The bottom half of the screen is saturated with pink and blue. Throughout whole image the correct luma is apparent. Therefore a 4:2:0 planar format is being interpreted as a 4:2:2 planar format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To prove this, I changed the offsets provided to the encoder:&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; fb[src_fbid].bufY = v4l2_buf.m.offset;&amp;nbsp; //cap_buffers[v4l2_buf.index].offset; // I am encoding directly from the capture buffer&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; fb[src_fbid].bufCb = fb[src_fbid].bufY + img_size;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; // see if we can interpret what should be 422P as 420P by changing the Cr offset&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; fb[src_fbid].bufCr = fb[src_fbid].bufCb +&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; img_size / 2; // position offset as if we are getting 422P&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // (img_size &amp;gt;&amp;gt; 2);&lt;/P&gt;
 &lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The encoded image was perfect! So although the driver is asking for 422P, and setting up the Cr and Cb offsets correctly to allow for enough space for each chroma signal to have all (ie not half) the scan lines, the IDMAC is generating 420P!! Is this a firmware bug??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to determine why the IDMAC would be wrongly decimating the data down to 4:2:0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 23:25:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228837#M16778</guid>
      <dc:creator>fcs</dc:creator>
      <dc:date>2013-01-24T23:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing YUV420 from MIPI CSI camera for VPU compression</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228838#M16779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Ofer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it is feasible to switch CSI data path. You just need to setup CSI-PRP-MEM path to capture 10 1MP frames, stop this path and then setup CSI-MEM path to capture full 5MP image. v4l2 capture driver in mxc linux BSP can cover this use case(simply streamon, streamoff and then streamon).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding SRM, the IPUv3 driver in mxc linux BSP touches that in drivers/mxc/ipu3/ipu_disp.c. This is what we've done for SRM currently, as far as I know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Liu Ying &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jan 2013 07:35:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228838#M16779</guid>
      <dc:creator>LiuYing</dc:creator>
      <dc:date>2013-01-26T07:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing YUV420 from MIPI CSI camera for VPU compression</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228839#M16780</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 think we've already verified generating &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;YUV422P data (ie non-interleaved YUV 4:2:2) by using CSI-MEM path, because w&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;e've got v4l2 capture unit test to cover this. If you use Linux BSP instead of Android, you probably have already got the unit test code in linux-test.git. IIRC, the command to run the unit test to capture several VGA YUV422P frames in test.yuv file could be:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;/unit_tests/mxc_v4l2_capture.out -iw 640 -ih 480 -ow 640 -oh 480 -f 422P -i 1 ./test.yuv&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;To show the captured frames on a XGA display by using v4l2 output, IIRC, the unit test command could be:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;/unit_tests/mxc_v4l2_output.out -iw 640 -ih 480 -ow 1024 -oh 768 -d 3 -f 422P ./test.yuv&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Liu Ying&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jan 2013 07:49:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228839#M16780</guid>
      <dc:creator>LiuYing</dc:creator>
      <dc:date>2013-01-26T07:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing YUV420 from MIPI CSI camera for VPU compression</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228840#M16781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I think I have worked out what is happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am deinterlacing using the CSI-&amp;gt;MEM transfer by setting ILO (interlace offset) to the Y pixel stride and doubling SLY (Y Stride Length) so as to deinterlace into a single capture buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I have changed from non-planar (interleaved) YUV422 to planar (non-interleaved) YUV422P so as to facilitate conversion to YUV420P which is all the VPU encoder can accept.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I believe is happening is that the chroma for the first field is being overwritten by the chroma for the second field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution should be to double SLUV (U and V Stride Length) to deinterlace the chroma planes, just as for the Y plane.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However having tried this it is not working correctly and I wonder if this is because there is no ILO for the chroma planes, that is both fields are still being written over each other, rather than offset from each other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should the ILO setting be automatically offsetting the chroma planes as well as the Y plane for YUV422? This seems to be implied by the Reference Manual table 45-11:&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="JA" style="font-family: HelveticaLTStd-Roman; font-size: 8pt;"&gt;&lt;SPAN lang="JA" style="font-family: HelveticaLTStd-Roman; font-size: 8pt;"&gt;&lt;SPAN lang="JA" style="font-family: HelveticaLTStd-Roman; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P align="left"&gt;For YUV420 formats, the ILO is relevant only to the Y component as the U and V components do not exist for the even lines.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN lang="JA" style="font-family: HelveticaLTStd-Roman; font-size: 8pt;"&gt;&lt;SPAN lang="JA" style="font-family: HelveticaLTStd-Roman; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I need to adjust the UBO, VBO or IOX parameters at the start of each field to offset the writing of the U and V planes?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2013 04:59:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228840#M16781</guid>
      <dc:creator>fcs</dc:creator>
      <dc:date>2013-01-29T04:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing YUV420 from MIPI CSI camera for VPU compression</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228841#M16782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, seems like ILO does adjust chroma offset for each field if I set PFS to 3 for YUV 4:2:2 partial-interleaved, uv_stride = 2 * normal Y stride.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2013 07:48:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228841#M16782</guid>
      <dc:creator>fcs</dc:creator>
      <dc:date>2013-01-29T07:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing YUV420 from MIPI CSI camera for VPU compression</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228842#M16783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Liu Ying&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will try that, thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I need to stop the sensor itself from streaming when I de-activate and re-activate the IPU CSI receiving path?&lt;/P&gt;&lt;P&gt;I'm looking for a solution which does not require such a restart of the stream, since it will consume time on the sensor itself as well...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2013 11:51:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228842#M16783</guid>
      <dc:creator>ofer_livny</dc:creator>
      <dc:date>2013-01-29T11:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing YUV420 from MIPI CSI camera for VPU compression</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228843#M16784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Ofer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that if you don't need changing the sensor output format(resolution or pixel format), you don't have to stop the sensor from streaming when you de-activate and re-activate the IPU CSI receiving path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A possible data path for taking picture when doing preview is that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sensor(5MP) -&amp;gt; csi -&amp;gt; mem(5MP) -&amp;gt; prp_vf -&amp;gt; mem(WVGA) -&amp;gt; WVGA display&lt;/P&gt;&lt;P&gt;&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;&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; |&lt;/P&gt;&lt;P&gt;&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;&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;gt; encoding (5MP)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2013 03:36:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228843#M16784</guid>
      <dc:creator>LiuYing</dc:creator>
      <dc:date>2013-01-30T03:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing YUV420 from MIPI CSI camera for VPU compression</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228844#M16785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ying Liu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the data path you suggested working - thanks. However, I am not satisfied with it since most of the time I only need the low-res image - which means the 5MP image is consuming memory bandwidth (and power) which potentially can be avoided.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am now trying to change the image data path on-the-fly without loosing any frames - I modify CSI0_DATA_DEST register for switching between the CSI-IC-MEM and CSI-MEM paths, without stopping the data stream.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It appears that it is not as trivial as I thought, but I'm still working on it.&lt;/P&gt;&lt;P&gt;I'll also try utilize both data paths simultaniously, and use frame skipping on the CSI-MEM path to reduce the amount of unnesseccary memory transactions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll appreciate your thoughts or tips on that matter...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Feb 2013 08:22:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228844#M16785</guid>
      <dc:creator>ofer_livny</dc:creator>
      <dc:date>2013-02-03T08:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing YUV420 from MIPI CSI camera for VPU compression</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228845#M16786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Ofer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may try to change the image data path on-the-fly. Perhaps, the switching time point would be at the EOF(end of frame) interrupt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Regards,&lt;/P&gt;&lt;P&gt;Liu Ying&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2013 01:49:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228845#M16786</guid>
      <dc:creator>LiuYing</dc:creator>
      <dc:date>2013-02-04T01:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing YUV420 from MIPI CSI camera for VPU compression</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228846#M16787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basically I have proof of concept, so I can display live deinterlaced PAL at low latency (without the VDIC) and simultaneously encode. The encoded video is partial-interleaved 420P, the chroma is resized from CSI's partial-interleaved 422P. The chroma is resized as if it is IPU_PIX_FMT_UYVY. Treating it as IPU_PIX_FMT_GENERIC didn't work even though it should be treated the same?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The i.MX53 hardware is very good but the documentation is a bit lacking and I think must scare potential customers away!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 04:18:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228846#M16787</guid>
      <dc:creator>fcs</dc:creator>
      <dc:date>2013-02-06T04:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing YUV420 from MIPI CSI camera for VPU compression</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228847#M16788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The last obstacle is that the fields are flipped when I capture NTSC. I am not sure whether this is due to a faulty capture device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it is related to analog PAL being "upper field first" and NTSC being "lower field first".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regardless, what should I do to fix this in software? ie be able to deinterlace both V4L2_FIELD_INTERLACED_TB and V4L2_FIELD_INTERLACED_BT.&lt;BR /&gt;I have tried setting channel 0 Interlace Offset to a negative value (the Reference Manual says ILO is signed). However this prevented any video being captured at all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 22:57:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Capturing-YUV420-from-MIPI-CSI-camera-for-VPU-compression/m-p/228847#M16788</guid>
      <dc:creator>fcs</dc:creator>
      <dc:date>2013-02-07T22:57:30Z</dc:date>
    </item>
  </channel>
</rss>

