<?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: JPEG hardware decode and resize in i.MX6</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/JPEG-hardware-decode-and-resize-in-i-MX6/m-p/241132#M20060</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mr Shaojun,&lt;/P&gt;&lt;P&gt;I 've tried the code "mxc_jpeg_test.tgz",but I'm getting errors,when I executed.&lt;/P&gt;&lt;P&gt;The errors is following.&lt;/P&gt;&lt;P&gt;"g2d_open: fail with status -24"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think "status -24" is version miss match between g2d library version and kernel version.&lt;/P&gt;&lt;P&gt;How can I solve error?&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jun 2014 07:58:27 GMT</pubDate>
    <dc:creator>takezoumurakami</dc:creator>
    <dc:date>2014-06-13T07:58:27Z</dc:date>
    <item>
      <title>JPEG hardware decode and resize in i.MX6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/JPEG-hardware-decode-and-resize-in-i-MX6/m-p/241129#M20057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;MX6 VPU can support baseline JPEG decode and encode. This demo show how to use VPU to decode baseline JPEG and how to use G2D to convert, crop and resize the VPU output image.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The BSP version in this demo is L3.0.35_4.1.0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;1. VPU decode&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;1.1 VPU lib patch&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;VPU can support JPEG decode and downscale, the downscale rate is 0, 1/2, 1/4 and 1/8.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;0001-support-jpeg-downscale-in-vpu-lib.patch: VPU lib patch to support JPEG decode and downscale.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Run below step to extract VPU lib source code from ltib, apply patch and build new VPU lib&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;$ ./ltib -m prep -p imx-vpu&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;$ Apply 0001-support-jpeg-downscale-in-vpu-lib.patch to ltib/rpm/BUILD/imx-vpu-lib-3.0.35-4.1.0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;$ ./ltib -m scbuild -p imx-vpu&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;$ Update ltib/rpm/BUILD/imx-vpu-lib-3.0.35-4.1.0/libvpu.so.4 to your rootfs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;1.2 Kernel patch&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;When run stress test, VPU may not get DMA buffer. The decode would failed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;0001-VPU-Reserve-64MB-physical-memory-for-VPU.patch can fix the memory allocate failed issue, it reserve 64MB physical memory for VPU.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;1.3 JPEG file size and VPU output image size&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;In L3.0.35_4.1.0, CONFIG_FORCE_MAX_ZONEORDER is set to 14, so the max DMA buffer size is 2^(14-1)*4094=32MB.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;If your Kernel CONFIG_FORCE_MAX_ZONEORDER is less than 14, please modify STREAM_BUF_SIZE in mxc_jpeg_test/jpeg_test.h to the correct value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;In VPU lib, two DMA buffers are allocated, one is input buffer, for JPEG source file; the other is output buffer, for VPU output raw image. So the JPEG file size should not larger than 32MB. This demo use VPU downscale function to limit output image size to less than 32MB.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;2. G2D&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Since VPU output format is YUV, to show the image to display, need to convert the format to RGB and resize.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;This demo use G2D to do the conversion. Make sure gpu-viv-bin-mx6q is built into your rootfs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;About more information of G2D, please refer to i.MX_6_G2D API.pdf.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;In ltib, extract GPU lib by&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;$ ./ltib -m prep -p gpu-viv-bin-mx6q&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;3. Build the demo&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;In mxc_jpeg_test/Makefile, modify INC and LFLAGS to point to the correct path of Linux kernel, VPU lib and GPU lib, then run below command&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;$ export CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-none-linux-gnueabi-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;$ make clean; make&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;4. Run the demo&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;4.1 Get help of this demo&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;$ ./mxc_jpeg_test.out -H&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;4.2 Decode and display in a window&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;$ ./mxc_jpeg_test.out -D "-i 1.jpg -w 640 -h 480 -l 200 -t 200"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;4.4 &lt;/SPAN&gt;Enable zoom and drag effect on small window, rotate 90&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: 'Calibri','sans-serif';"&gt;$ ./mxc_jpeg_test.out -D "-i 1.jpg -z 29 -w 320 -h 240 -l 200 -t 200 -r 1"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: 'Calibri','sans-serif';"&gt;5. VPU &lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA;"&gt;limitation&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-bidi-language: AR-SA; mso-fareast-language: ZH-CN; mso-bidi-font-family: 'Times New Roman'; font-size: 11pt; mso-ansi-language: EN-US; mso-hansi-theme-font: minor-latin; mso-fareast-theme-font: minor-fareast; mso-ascii-theme-font: minor-latin; font-family: 'Calibri','sans-serif'; mso-fareast-font-family: 宋体; mso-bidi-theme-font: minor-bidi;"&gt;5.1 There &lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA;"&gt;are two kinds of JPEG format, Baseline and Progressive. VPU only support Baseline format.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-bidi-language: AR-SA; mso-fareast-language: ZH-CN; mso-bidi-font-family: 'Times New Roman'; font-size: 11pt; mso-ansi-language: EN-US; mso-hansi-theme-font: minor-latin; mso-fareast-theme-font: minor-fareast; mso-ascii-theme-font: minor-latin; font-family: 'Calibri','sans-serif'; mso-fareast-font-family: 宋体; mso-bidi-theme-font: minor-bidi;"&gt;5.2 VPU &lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA;"&gt;can’t decode JPEG file with width or height larger than 8192&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-336345"&gt;0001-support-jpeg-downscale-in-vpu-lib.patch.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-336345"&gt;libvpu.so.4.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-336345"&gt;mxc_jpeg_test.tgz&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-336345"&gt;0001-VPU-Reserve-64MB-physical-memory-for-VPU.patch.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 10:04:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/JPEG-hardware-decode-and-resize-in-i-MX6/m-p/241129#M20057</guid>
      <dc:creator>shaojun_wang</dc:creator>
      <dc:date>2014-01-17T10:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: JPEG hardware decode and resize in i.MX6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/JPEG-hardware-decode-and-resize-in-i-MX6/m-p/241130#M20058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shaojun,&lt;/P&gt;&lt;P&gt;How can I download &lt;SPAN style="font-size: 10pt;"&gt;i.MX_6_G2D API.pdf?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 03:39:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/JPEG-hardware-decode-and-resize-in-i-MX6/m-p/241130#M20058</guid>
      <dc:creator>远李</dc:creator>
      <dc:date>2014-02-13T03:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: JPEG hardware decode and resize in i.MX6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/JPEG-hardware-decode-and-resize-in-i-MX6/m-p/241131#M20059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can find it in Ltib release doc, such as L3.0.35_4.1.0_docs.tar.gz.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 08:35:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/JPEG-hardware-decode-and-resize-in-i-MX6/m-p/241131#M20059</guid>
      <dc:creator>shaojun_wang</dc:creator>
      <dc:date>2014-02-13T08:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: JPEG hardware decode and resize in i.MX6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/JPEG-hardware-decode-and-resize-in-i-MX6/m-p/241132#M20060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mr Shaojun,&lt;/P&gt;&lt;P&gt;I 've tried the code "mxc_jpeg_test.tgz",but I'm getting errors,when I executed.&lt;/P&gt;&lt;P&gt;The errors is following.&lt;/P&gt;&lt;P&gt;"g2d_open: fail with status -24"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think "status -24" is version miss match between g2d library version and kernel version.&lt;/P&gt;&lt;P&gt;How can I solve error?&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 07:58:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/JPEG-hardware-decode-and-resize-in-i-MX6/m-p/241132#M20060</guid>
      <dc:creator>takezoumurakami</dc:creator>
      <dc:date>2014-06-13T07:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: JPEG hardware decode and resize in i.MX6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/JPEG-hardware-decode-and-resize-in-i-MX6/m-p/241133#M20061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First you need to build gpu-viv-bin-mx6q into your rootfs.&lt;/P&gt;&lt;P&gt;Then modiry the Makefile to link to your g2d lib in rootfs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 07:53:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/JPEG-hardware-decode-and-resize-in-i-MX6/m-p/241133#M20061</guid>
      <dc:creator>shaojun_wang</dc:creator>
      <dc:date>2014-06-27T07:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: JPEG hardware decode and resize in i.MX6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/JPEG-hardware-decode-and-resize-in-i-MX6/m-p/241134#M20062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,Shaojun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I decode the picture with MODE224?&lt;/P&gt;&lt;P&gt;I try to modify your code like this:&lt;/P&gt;&lt;P&gt;---g2d.c---&lt;/P&gt;&lt;P&gt;case MODE422:&lt;/P&gt;&lt;P&gt;case MODE224://add&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; src.format = NV16;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pfb_dec=dec-&amp;gt;pfbpool[0];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;Unfortunately,the color is strange.&lt;/P&gt;&lt;P&gt;I'm looking forward to your replay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Aug 2014 03:21:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/JPEG-hardware-decode-and-resize-in-i-MX6/m-p/241134#M20062</guid>
      <dc:creator>tongchunyang</dc:creator>
      <dc:date>2014-08-16T03:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: JPEG hardware decode and resize in i.MX6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/JPEG-hardware-decode-and-resize-in-i-MX6/m-p/241135#M20063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,Shaojun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I decode the picture with MODE224?&lt;/P&gt;&lt;P&gt;I try to modify your code like this:&lt;/P&gt;&lt;P&gt;---g2d.c---&lt;/P&gt;&lt;P&gt;case MODE422:&lt;/P&gt;&lt;P&gt;case MODE224://add&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; src.format = NV16;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pfb_dec=dec-&amp;gt;pfbpool[0];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;Unfortunately,the color is strange.&lt;/P&gt;&lt;P&gt;I'm looking forward to your replay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 01:30:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/JPEG-hardware-decode-and-resize-in-i-MX6/m-p/241135#M20063</guid>
      <dc:creator>tongchunyang</dc:creator>
      <dc:date>2014-09-15T01:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: JPEG hardware decode and resize in i.MX6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/JPEG-hardware-decode-and-resize-in-i-MX6/m-p/241136#M20064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The mxc_jpeg_test.tgz has been upgraded to support to MODE224.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 09:10:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/JPEG-hardware-decode-and-resize-in-i-MX6/m-p/241136#M20064</guid>
      <dc:creator>shaojun_wang</dc:creator>
      <dc:date>2014-09-16T09:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: JPEG hardware decode and resize in i.MX6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/JPEG-hardware-decode-and-resize-in-i-MX6/m-p/241137#M20065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Oct 2014 02:12:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/JPEG-hardware-decode-and-resize-in-i-MX6/m-p/241137#M20065</guid>
      <dc:creator>tongchunyang</dc:creator>
      <dc:date>2014-10-25T02:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: JPEG hardware decode and resize in i.MX6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/JPEG-hardware-decode-and-resize-in-i-MX6/m-p/241138#M20066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; Shaojun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any example for 3.10.53 BSP ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 03:04:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/JPEG-hardware-decode-and-resize-in-i-MX6/m-p/241138#M20066</guid>
      <dc:creator>Danube</dc:creator>
      <dc:date>2015-05-14T03:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: JPEG hardware decode and resize in i.MX6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/JPEG-hardware-decode-and-resize-in-i-MX6/m-p/241139#M20067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can the VPU-Reserve-64MB-physical-memory patch be modified for newer kernels that use device tree and do not use board files? Where the dma_declare_coherent_memory() call can be placed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Aug 2015 03:16:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/JPEG-hardware-decode-and-resize-in-i-MX6/m-p/241139#M20067</guid>
      <dc:creator>alik</dc:creator>
      <dc:date>2015-08-22T03:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: JPEG hardware decode and resize in i.MX6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/JPEG-hardware-decode-and-resize-in-i-MX6/m-p/241140#M20068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To answer my own question, the VPU-Reserve patch could be modified, the file to edit is mach-imx6q.c and it has board init function and reserve function can be added to port the patch to the device tree kernels. However, that patch did not help with the "Physical memory allocation error!" that I intermittently had when using VPU to decode large JPEG images that required 70MB buffers. Upon further investigation, it turned out that CMA is actually being used to allocate DMA memory in vpu_lib L3.10.17 kernel that I am using. The default kernel config in my case had CMA size set at 256M, but that was not enough. Increasing CMA to a larger value (I tried 512M so far) through cmm=512M kernel command line parameter helped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Aug 2015 23:59:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/JPEG-hardware-decode-and-resize-in-i-MX6/m-p/241140#M20068</guid>
      <dc:creator>alik</dc:creator>
      <dc:date>2015-08-23T23:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: JPEG hardware decode and resize in i.MX6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/JPEG-hardware-decode-and-resize-in-i-MX6/m-p/241141#M20069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Shaojun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You said that :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA;"&gt;&amp;gt;5.1 There &lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA;"&gt;are two kinds of JPEG format, Baseline and Progressive. VPU only support Baseline format.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-fareast-font-family: 宋体; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-theme-font: minor-fareast; mso-fareast-language: ZH-CN; font-size: 11pt; font-family: 'Calibri','sans-serif'; mso-hansi-theme-font: minor-latin; mso-bidi-theme-font: minor-bidi; mso-bidi-language: AR-SA; mso-ascii-theme-font: minor-latin;"&gt;So if I want to decode a JPEG file with Progressive format, how should I do.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-fareast-font-family: 宋体; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-theme-font: minor-fareast; mso-fareast-language: ZH-CN; font-size: 11pt; font-family: 'Calibri','sans-serif'; mso-hansi-theme-font: minor-latin; mso-bidi-theme-font: minor-bidi; mso-bidi-language: AR-SA; mso-ascii-theme-font: minor-latin;"&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-fareast-font-family: 宋体; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-theme-font: minor-fareast; mso-fareast-language: ZH-CN; font-size: 11pt; font-family: 'Calibri','sans-serif'; mso-hansi-theme-font: minor-latin; mso-bidi-theme-font: minor-bidi; mso-bidi-language: AR-SA; mso-ascii-theme-font: minor-latin;"&gt;ZongbiaoLiao&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 09:47:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/JPEG-hardware-decode-and-resize-in-i-MX6/m-p/241141#M20069</guid>
      <dc:creator>宗標廖</dc:creator>
      <dc:date>2015-09-02T09:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: JPEG hardware decode and resize in i.MX6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/JPEG-hardware-decode-and-resize-in-i-MX6/m-p/241142#M20070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the mean of "Up-scaling and down-scaling from source to destination",is downscale the file size or image resolution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2015 07:54:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/JPEG-hardware-decode-and-resize-in-i-MX6/m-p/241142#M20070</guid>
      <dc:creator>yongtang</dc:creator>
      <dc:date>2015-09-07T07:54:31Z</dc:date>
    </item>
  </channel>
</rss>

