<?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: problem of VPU 720p mjpg decode with rotation in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/problem-of-VPU-720p-mjpg-decode-with-rotation/m-p/495838#M79768</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, G,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The chroma format of mjpg0.jpg is 4:2:2 (horizontal), 1/2 horizontal subsampling.&lt;/P&gt;&lt;P&gt;The 90 degree rotated image is 4:2:2 (vertical), 1/2 vertical subsampling.&lt;/P&gt;&lt;P&gt;You need to select the correct chroma format in viewer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hongzhang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 May 2016 03:13:27 GMT</pubDate>
    <dc:creator>HongzhangYang</dc:creator>
    <dc:date>2016-05-04T03:13:27Z</dc:date>
    <item>
      <title>problem of VPU 720p mjpg decode with rotation</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/problem-of-VPU-720p-mjpg-decode-with-rotation/m-p/495837#M79767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello NXP experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are developing a product which uses 720p(1280x720)&amp;nbsp; UVC camera. To get high frame rate, we use MJPG format input of the UVC camera and use VPU decode before pipe to 720p ( 720x1280) LCD display.&amp;nbsp; I found the VPU output with rotation has ghost effect. I reproduced problem on i.MX6Q Sabre-SD board with mxc_vpu_test &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Software version : L3.14.52_1.1.0-ga_images_MX6QDLSOLO&lt;/P&gt;&lt;P&gt;Hardware: i.MX6Q sabre-sd&lt;/P&gt;&lt;P&gt;command: /unit_tests/mxc_vpu_test.out -D "-i mjpg0.jpg -o YUV422.raw -f 7 -r 90 -t 0"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. in the below picture, the left is mjpg0.jpg, the right is the YUV output with above command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="VPU_decode_rotation_problem.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/56406i174C97FD5766B462/image-size/large?v=v2&amp;amp;px=999" role="button" title="VPU_decode_rotation_problem.png" alt="VPU_decode_rotation_problem.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. The VPU output is YUV422P&lt;/P&gt;&lt;P&gt;3. If don't use rotation option, the VPU output is correct. &lt;/P&gt;&lt;P&gt;4. VPU version:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product Info: i.MX6Q/D/S&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VPU firmware version: 3.1.1_r46070&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VPU library version: 5.4.32&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. I attached the mjpg0.jpg and output YUV422.raw&amp;nbsp; and YUV422_norot.raw &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help to check. &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;G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 05:50:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/problem-of-VPU-720p-mjpg-decode-with-rotation/m-p/495837#M79767</guid>
      <dc:creator>usrg_s</dc:creator>
      <dc:date>2016-05-03T05:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: problem of VPU 720p mjpg decode with rotation</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/problem-of-VPU-720p-mjpg-decode-with-rotation/m-p/495838#M79768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, G,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The chroma format of mjpg0.jpg is 4:2:2 (horizontal), 1/2 horizontal subsampling.&lt;/P&gt;&lt;P&gt;The 90 degree rotated image is 4:2:2 (vertical), 1/2 vertical subsampling.&lt;/P&gt;&lt;P&gt;You need to select the correct chroma format in viewer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hongzhang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 03:13:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/problem-of-VPU-720p-mjpg-decode-with-rotation/m-p/495838#M79768</guid>
      <dc:creator>HongzhangYang</dc:creator>
      <dc:date>2016-05-04T03:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: problem of VPU 720p mjpg decode with rotation</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/problem-of-VPU-720p-mjpg-decode-with-rotation/m-p/495839#M79769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Hongzhang,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your clarification. Could you give me V4L2 fourcc code of "&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;4:2:2 (vertical), 1/2 vertical subsampling"?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I could not find the correct V4L2 format to display it. &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.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Luminance+Chrominance formats */&lt;/P&gt;&lt;P&gt;#define V4L2_PIX_FMT_YVU410&amp;nbsp; v4l2_fourcc('Y', 'V', 'U', '9') /*&amp;nbsp; 9&amp;nbsp; YVU 4:1:0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;/P&gt;&lt;P&gt;#define V4L2_PIX_FMT_YVU420&amp;nbsp; v4l2_fourcc('Y', 'V', '1', '2') /* 12&amp;nbsp; YVU 4:2:0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;/P&gt;&lt;P&gt;#define V4L2_PIX_FMT_YUYV&amp;nbsp;&amp;nbsp;&amp;nbsp; v4l2_fourcc('Y', 'U', 'Y', 'V') /* 16&amp;nbsp; YUV 4:2:2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;/P&gt;&lt;P&gt;#define V4L2_PIX_FMT_YYUV&amp;nbsp;&amp;nbsp;&amp;nbsp; v4l2_fourcc('Y', 'Y', 'U', 'V') /* 16&amp;nbsp; YUV 4:2:2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;/P&gt;&lt;P&gt;#define V4L2_PIX_FMT_YVYU&amp;nbsp;&amp;nbsp;&amp;nbsp; v4l2_fourcc('Y', 'V', 'Y', 'U') /* 16 YVU 4:2:2 */&lt;/P&gt;&lt;P&gt;#define V4L2_PIX_FMT_UYVY&amp;nbsp;&amp;nbsp;&amp;nbsp; v4l2_fourcc('U', 'Y', 'V', 'Y') /* 16&amp;nbsp; YUV 4:2:2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;/P&gt;&lt;P&gt;#define V4L2_PIX_FMT_VYUY&amp;nbsp;&amp;nbsp;&amp;nbsp; v4l2_fourcc('V', 'Y', 'U', 'Y') /* 16&amp;nbsp; YUV 4:2:2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;/P&gt;&lt;P&gt;#define V4L2_PIX_FMT_YUV422P v4l2_fourcc('4', '2', '2', 'P') /* 16&amp;nbsp; YVU422 planar */&lt;/P&gt;&lt;P&gt;#define V4L2_PIX_FMT_YUV411P v4l2_fourcc('4', '1', '1', 'P') /* 16&amp;nbsp; YVU411 planar */&lt;/P&gt;&lt;P&gt;#define V4L2_PIX_FMT_Y41P&amp;nbsp;&amp;nbsp;&amp;nbsp; v4l2_fourcc('Y', '4', '1', 'P') /* 12&amp;nbsp; YUV 4:1:1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;/P&gt;&lt;P&gt;#define V4L2_PIX_FMT_YUV444&amp;nbsp; v4l2_fourcc('Y', '4', '4', '4') /* 16&amp;nbsp; xxxxyyyy uuuuvvvv */&lt;/P&gt;&lt;P&gt;#define V4L2_PIX_FMT_YUV555&amp;nbsp; v4l2_fourcc('Y', 'U', 'V', 'O') /* 16&amp;nbsp; YUV-5-5-5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;/P&gt;&lt;P&gt;#define V4L2_PIX_FMT_YUV565&amp;nbsp; v4l2_fourcc('Y', 'U', 'V', 'P') /* 16&amp;nbsp; YUV-5-6-5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;/P&gt;&lt;P&gt;#define V4L2_PIX_FMT_YUV32&amp;nbsp;&amp;nbsp; v4l2_fourcc('Y', 'U', 'V', '4') /* 32&amp;nbsp; YUV-8-8-8-8&amp;nbsp;&amp;nbsp; */&lt;/P&gt;&lt;P&gt;#define V4L2_PIX_FMT_YUV410&amp;nbsp; v4l2_fourcc('Y', 'U', 'V', '9') /*&amp;nbsp; 9&amp;nbsp; YUV 4:1:0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;/P&gt;&lt;P&gt;#define V4L2_PIX_FMT_YUV420&amp;nbsp; v4l2_fourcc('Y', 'U', '1', '2') /* 12&amp;nbsp; YUV 4:2:0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;/P&gt;&lt;P&gt;#define V4L2_PIX_FMT_HI240&amp;nbsp;&amp;nbsp; v4l2_fourcc('H', 'I', '2', '4') /*&amp;nbsp; 8&amp;nbsp; 8-bit color&amp;nbsp;&amp;nbsp; */&lt;/P&gt;&lt;P&gt;#define V4L2_PIX_FMT_HM12&amp;nbsp;&amp;nbsp;&amp;nbsp; v4l2_fourcc('H', 'M', '1', '2') /*&amp;nbsp; 8&amp;nbsp; YUV 4:2:0 16x16 macroblocks */&lt;/P&gt;&lt;P&gt;#define V4L2_PIX_FMT_M420&amp;nbsp;&amp;nbsp;&amp;nbsp; v4l2_fourcc('M', '4', '2', '0') /* 12&amp;nbsp; YUV 4:2:0 2 lines y, 1 line uv interleaved */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 05:24:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/problem-of-VPU-720p-mjpg-decode-with-rotation/m-p/495839#M79769</guid>
      <dc:creator>usrg_s</dc:creator>
      <dc:date>2016-05-04T05:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: problem of VPU 720p mjpg decode with rotation</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/problem-of-VPU-720p-mjpg-decode-with-rotation/m-p/495840#M79770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi G,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should be like &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;V4L2_PIX_FMT_YUV440P but &lt;/SPAN&gt;I can't find it in linux/videodev2.h. Maybe this format is rarely used now.&lt;/P&gt;&lt;P&gt;Can you configure your camera to use 4:2:0 format?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hongzhang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 07:26:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/problem-of-VPU-720p-mjpg-decode-with-rotation/m-p/495840#M79770</guid>
      <dc:creator>HongzhangYang</dc:creator>
      <dc:date>2016-05-04T07:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: problem of VPU 720p mjpg decode with rotation</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/problem-of-VPU-720p-mjpg-decode-with-rotation/m-p/495841#M79771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Hongzhang,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our camera can't configure to 4:2:0 mjpg.&amp;nbsp;&amp;nbsp; I will use VPU to decode and use G2D to rotate and convert to RGB, then draw to frame buffer directly.&amp;nbsp; Thanks for your help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 04:05:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/problem-of-VPU-720p-mjpg-decode-with-rotation/m-p/495841#M79771</guid>
      <dc:creator>usrg_s</dc:creator>
      <dc:date>2016-05-05T04:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: problem of VPU 720p mjpg decode with rotation</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/problem-of-VPU-720p-mjpg-decode-with-rotation/m-p/495842#M79772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's a good idea. VPU is good at decoding, and GPU/IPU is more efficient in post processing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 08:18:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/problem-of-VPU-720p-mjpg-decode-with-rotation/m-p/495842#M79772</guid>
      <dc:creator>HongzhangYang</dc:creator>
      <dc:date>2016-05-05T08:18:03Z</dc:date>
    </item>
  </channel>
</rss>

