<?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: VPU MJPEG encode 8192x8192 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/VPU-MJPEG-encode-8192x8192/m-p/348189#M48241</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Malek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I don't know what is your mean for 'no encoding available'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; you can use the same vpu encode api as mpeg4/h.264 to encode mjpeg, just set different format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; mxc_vpu_test is open source, suppose you can get the source from our formal release.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The only work you need to do is adjust the memory pool to allow large memory allocation and set proper value for 'VPU_ENC_BITS_BUF_SIZE' accordingly just like mentioned above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eagle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jun 2015 07:03:06 GMT</pubDate>
    <dc:creator>eaglezhou</dc:creator>
    <dc:date>2015-06-09T07:03:06Z</dc:date>
    <item>
      <title>VPU MJPEG encode 8192x8192</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/VPU-MJPEG-encode-8192x8192/m-p/348180#M48232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to test the VPU capability to encode a picture to JPEG. The i.Mx6 manual and datasheets state that it is possible to encode pictures up to 8192x8192 pixels in the VPU. I want to verify this but has not succeded due to memory allocation problems. Can anyone give me a suggestion how to verify and test the capability of i.Mx6 to JPEG encode a picture of size 8192x8192 in the VPU?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tested on a Nitrogen6_max board with 4GB of RAM. I am running Yocto on current master branch (1.8 WIP) with 3.10.53 kernel. On this plattform I have tested gstreamer0.10, gstreamer1.0 and mxc_vpu_test with the same result. In Gstream 1.0 the maximum resolution into &lt;/P&gt;&lt;P&gt;imxvpuenc_mjpeg is 1920x1080, any reason for this constraint?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Gstreamer 0.10:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_1427272696583820" jivemacro_uid="_1427272696583820"&gt;
&lt;P&gt;GST_DEBUG=vpuenc:5 gst-launch-0.10 -v videotestsrc num-buffers=1 ! video/x-raw-yuv,format=\(fourcc\)UYVY,width=8192,height=8192,framerate=1/1,color-matrix=hdtv ! ffmpegcolorspace ! video/x-raw-yuv,format=\(fourcc\)NV12,width=8192,height=8192,framerate=1/1 ! vpuenc codec=mjpg ! filesink location=sample.jpg&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From stdout:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_142727271129371" jivemacro_uid="_142727271129371"&gt;
&lt;P&gt;0:00:02.042111334&amp;nbsp;&amp;nbsp; 678&amp;nbsp; 0x101fd20 ERROR&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; vpuenc /home/sepbe/yocto/nitrogen_master/build/tmp/work/nitrogen6x-poky-linux-gnueabi/gst-fsl-plugin/4.0.2-r0/gst-fsl-plugins-4.0.2/src/video/vpu/src/vpuenc.c:325:vpuenc_core_mem_alloc_dma_buffer: func VPU_EncGetMem failed!!&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From /var/log/messages:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14272727205756262" jivemacro_uid="_14272727205756262"&gt;
&lt;P&gt;mxc_vpu 2040000.vpu: Physical memory allocation error!&lt;/P&gt;
&lt;P&gt;mxc_vpu 2040000.vpu: Physical memory allocation error!&lt;/P&gt;
&lt;P&gt;Mar 25 09:31:27 nitrogen6x user.err kernel: mxc_vpu 2040000.vpu: Physical memory allocation error!&lt;/P&gt;
&lt;P&gt;Mar 25 09:31:27 nitrogen6x user.err kernel: mxc_vpu 2040000.vpu: Physical memory allocation error!&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mxc_vpu_test:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14272728471579012" jivemacro_uid="_14272728471579012"&gt;
&lt;P&gt;root@nitrogen6x:~# VPU_TEST_DBG=5 ./mxc_vpu_test.out -E "-i /home/root/sample_8192_8192.yuv -o /home/root/images/image-205_yuv444.jpg -f 7 -c 1 -w 8192 -h 8192"&lt;/P&gt;
&lt;P&gt;[INFO] main.c:515 VPU test program built on Mar 25 2015 09:24:14&lt;/P&gt;
&lt;P&gt;[INFO] Product Info: i.MX6Q/D/S&lt;/P&gt;
&lt;P&gt;[INFO] main.c:538 VPU firmware version: 3.1.1_r46061&lt;/P&gt;
&lt;P&gt;[INFO] main.c:540 VPU library version: 5.4.27&lt;/P&gt;
&lt;P&gt;[INFO] utils.c:535 Format: STD_MJPG&lt;/P&gt;
&lt;P&gt;[INFO] utils.c:411 Input file "/home/root/sample_8192_8192.yuv" opened.&lt;/P&gt;
&lt;P&gt;[INFO] utils.c:435 Output file "/home/root/images/image-205_yuv444.jpg" opened.&lt;/P&gt;
&lt;P&gt;[INFO] enc.c:980 Capture/Encode fps will be 30&lt;/P&gt;
&lt;P&gt;[DEBUG] enc.c:400 minfb 0&lt;/P&gt;
&lt;P&gt;[ERR] mem allocation failed!&lt;/P&gt;
&lt;P&gt;Frame buffer allocation failure&lt;/P&gt;
&lt;P&gt;[ERR] enc.c:507 failed to allocate single framebuf&lt;/P&gt;
&lt;P&gt;root@nitrogen6x:~# &lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;/Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 08:44:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/VPU-MJPEG-encode-8192x8192/m-p/348180#M48232</guid>
      <dc:creator>PeterBergin</dc:creator>
      <dc:date>2015-03-25T08:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: VPU MJPEG encode 8192x8192</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/VPU-MJPEG-encode-8192x8192/m-p/348181#M48233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for late reply !&lt;/P&gt;&lt;P&gt;Due to the limitation of allocating physically contiguous memory space, the 8Kx8K JPEG encode/decode has not been supported yet in our BSP.&amp;nbsp; For example for YUV444 format, it needs 64x3=192Mbytes contiguous memory which is difficult to achieve. For "vpuenc" gst glugin, we currently support only up to 1080p resolution for JPEG. We are planning to increase the resolution but the maximum resolution has not been determined yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May I ask what is the use case for using the JPEG encode/decode at 8Kx8K resolution ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jones&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 20:43:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/VPU-MJPEG-encode-8192x8192/m-p/348181#M48233</guid>
      <dc:creator>ZhongliHe</dc:creator>
      <dc:date>2015-04-10T20:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: VPU MJPEG encode 8192x8192</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/VPU-MJPEG-encode-8192x8192/m-p/348182#M48234</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;thanks for your reply and the information given. It confirms the results I have got. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The use case is to use the JPEG encoder inside i.Mx6 in a high quality still image camera with resolutions in the range 40-60 mexapixel resolution. The plan was to encode pictures of size 8192x6144 to JPEG, according to i.Mx6's datasheet this should be possible. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is your feeling of the effort needed to develop a driver to Linux that can do JPEG encoding of 8192x6144 in i.Mx6 running Linux?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;/Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Apr 2015 19:20:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/VPU-MJPEG-encode-8192x8192/m-p/348182#M48234</guid>
      <dc:creator>PeterBergin</dc:creator>
      <dc:date>2015-04-12T19:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: VPU MJPEG encode 8192x8192</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/VPU-MJPEG-encode-8192x8192/m-p/348183#M48235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An update around my work to get JPEG encoding of high res pictures to work. Still no luck to get it working but I have come a bit further. A question that is still unanswered is if Freescale with any software ever verified the feature to encode 8192x8192 pictures to JPEG?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to avoid the memory allocation problem I have increased the CMA buffer inte the kernel. The problem I see right now is that I get a timeout from the VPU. I will describe and hope someone can give me some more input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14296275902068939" jivemacro_uid="_14296275902068939"&gt;
&lt;P&gt;GST_DEBUG=vpuenc:5 VPU_LIB_DBG=5 gst-launch-0.10 -v videotestsrc num-buffers=1 ! video/x-raw-yuv,format=\(fourcc\)UYVY,width=6400,height=4800,framerate=1/1,color-matrix=hdtv ! ffmpegcolorspace ! video/x-raw-yuv,format=\(fourcc\)NV12,width=6400,height=4800,framerate=1/1 ! vpuenc codec=mjpg ! filesink location=sample.jpg&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;........&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;vpuenc versions&lt;/P&gt;
&lt;P&gt;&amp;nbsp; plugin: 4.0.3&lt;/P&gt;
&lt;P&gt;&amp;nbsp; wrapper: 1.0.58(VPUWRAPPER_ARM_LINUX Build on Apr 21 2015 15:40:06)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vpulib: 5.4.28&lt;/P&gt;
&lt;P&gt;&amp;nbsp; firmware: 3.1.1.46063&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;........&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;0:00:03.992470667&amp;nbsp;&amp;nbsp; 834&amp;nbsp;&amp;nbsp; 0x759f20 LOG&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; vpuenc /home/sepbe/yocto/nitrogen_master/build/tmp/work/nitrogen6x-poky-linux-gnueabi/gst-fsl-plugin/4.0.3-r0/gst-fsl-plugins-4.0.3/src/video/vpu/src/vpuenc.c:1277:gst_vpuenc_chain: chain in with inbuffer size = 46080000 ts 0:00:00.000000000&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vpu_lib.c:2068 enter vpu_EncGiveCommand()&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vpu_lib.c:1523 enter vpu_EncStartOneFrame()&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vpu_io.c:811 vpu clock gate setting = 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vpu_io.c:811 vpu clock gate setting = 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vpu_io.c:811 vpu clock gate setting = 0&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vpu_lib.c:129 enter vpu_WaitForInt()&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vpu_lib.c:132 ret of IOWaitForInt 0&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vpu_io.c:811 vpu clock gate setting = 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vpu_lib.c:219 status 0x4, wrPtr 0x46300000, bbcEnd 0x46300000&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vpu_lib.c:224 pic not done, wait&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vpu_io.c:811 vpu clock gate setting = 0&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vpu_lib.c:129 enter vpu_WaitForInt()&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vpu_lib.c:132 ret of IOWaitForInt -1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vpu_io.c:811 vpu clock gate setting = 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vpu_lib.c:219 status 0x4, wrPtr 0x46300000, bbcEnd 0x46300000&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vpu_lib.c:224 pic not done, wait&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vpu_io.c:811 vpu clock gate setting = 0&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vpu_lib.c:129 enter vpu_WaitForInt()&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vpu_lib.c:132 ret of IOWaitForInt -1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vpu_io.c:811 vpu clock gate setting = 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vpu_lib.c:219 status 0x4, wrPtr 0x46300000, bbcEnd 0x46300000&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vpu_lib.c:224 pic not done, wait&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vpu_io.c:811 vpu clock gate setting = 0&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vpu_lib.c:129 enter vpu_WaitForInt()&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vpu_lib.c:132 ret of IOWaitForInt -1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vpu_io.c:811 vpu clock gate setting = 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vpu_lib.c:219 status 0x4, wrPtr 0x46300000, bbcEnd 0x46300000&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vpu_lib.c:224 pic not done, wait&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vpu_io.c:811 vpu clock gate setting = 0&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vpu_lib.c:129 enter vpu_WaitForInt()&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vpu_lib.c:132 ret of IOWaitForInt -1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vpu_io.c:811 vpu clock gate setting = 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vpu_lib.c:219 status 0x4, wrPtr 0x46300000, bbcEnd 0x46300000&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vpu_lib.c:224 pic not done, wait&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vpu_io.c:811 vpu clock gate setting = 0&lt;/P&gt;
&lt;P&gt;0:00:24.082916670&amp;nbsp;&amp;nbsp; 834&amp;nbsp;&amp;nbsp; 0x759f20 ERROR&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; vpuenc /home/sepbe/yocto/nitrogen_master/build/tmp/work/nitrogen6x-poky-linux-gnueabi/gst-fsl-plugin/4.0.3-r0/gst-fsl-plugins-4.0.3/src/video/vpu/src/vpuenc.c:1328:gst_vpuenc_chain: func VPU_EncEncodeFrame failed!! with ret 8&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that it is a timeout from the VPU. Inside the function IOWaitForInt the status is traced out. The value of status is read from register MJPEG_PIC_STATUS_REG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;[DEBUG]&lt;/TD&gt;&lt;TD&gt;vpu_lib.c:219 status 0x4, wrPtr 0x46300000, bbcEnd 0x46300000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;#define MJPEG_PIC_STATUS_REG&lt;/TD&gt;&lt;TD&gt;(NPT_BASE + 0x004)&lt;/TD&gt;&lt;TD&gt;// [3] - overflow, [2] - bbc interrupt, [1] - error, [0] - done&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How shall I interpret status=0x4? I can not find any register definition document of the MJPEG_PIC_STATUS_REG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am quite stuck here. Where can I find more information regarding this problem? With my setup I have been able to encode a picture of size 5120x3200, increasing the reolution from there I always end up in this timeout situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;/Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 14:32:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/VPU-MJPEG-encode-8192x8192/m-p/348183#M48235</guid>
      <dc:creator>PeterBergin</dc:creator>
      <dc:date>2015-04-21T14:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: VPU MJPEG encode 8192x8192</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/VPU-MJPEG-encode-8192x8192/m-p/348184#M48236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that there is a limitation of the output buffer to 1MB in the libfslvpuwrap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;/Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 10:50:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/VPU-MJPEG-encode-8192x8192/m-p/348184#M48236</guid>
      <dc:creator>PeterBergin</dc:creator>
      <dc:date>2015-04-23T10:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: VPU MJPEG encode 8192x8192</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/VPU-MJPEG-encode-8192x8192/m-p/348185#M48237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Peter&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yes, buffer default size 'VPU_ENC_BITS_BUF_SIZE' maybe one risk for your case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; you had better enlarge it accordingly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eagle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 01:24:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/VPU-MJPEG-encode-8192x8192/m-p/348185#M48237</guid>
      <dc:creator>eaglezhou</dc:creator>
      <dc:date>2015-04-24T01:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: VPU MJPEG encode 8192x8192</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/VPU-MJPEG-encode-8192x8192/m-p/348186#M48238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peng,&lt;/P&gt;&lt;P&gt;I too faced same issue(VPU Timeout) while performing VPU Encoding at resolution(3264x2448). On Increasing the buffer size(VPU_ENC_BITS_BUF_SIZE) to 4MB, the issue got solved. Does this affects the performance of VPU in any manner?.&lt;/P&gt;&lt;P&gt;How this buffer size related with the timeout issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Teddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2015 12:37:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/VPU-MJPEG-encode-8192x8192/m-p/348186#M48238</guid>
      <dc:creator>teddy123</dc:creator>
      <dc:date>2015-06-01T12:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: VPU MJPEG encode 8192x8192</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/VPU-MJPEG-encode-8192x8192/m-p/348187#M48239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Teddy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The macro 'VPU_ENC_BITS_BUF_SIZE' is just the size for output data buffer, and won't impact performance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If the buffer size is not big enough, it may lead to potential risk, such as memory overflow or vpu timeout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eagle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 03:05:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/VPU-MJPEG-encode-8192x8192/m-p/348187#M48239</guid>
      <dc:creator>eaglezhou</dc:creator>
      <dc:date>2015-06-02T03:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: VPU MJPEG encode 8192x8192</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/VPU-MJPEG-encode-8192x8192/m-p/348188#M48240</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 am trying to get VPU accelerated MJPEG encode working. Input image is relatively large (&lt;SPAN class="st"&gt;&lt;SPAN dir="ltr"&gt;4416 x 3312&lt;/SPAN&gt;&lt;/SPAN&gt;). I tried using libimxvpuapi but it turned out only support decoding MJPEG and no encoding available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can VPU handle this resolution?&lt;/P&gt;&lt;P&gt;Is mxc_vpu_test.out available as source?&lt;/P&gt;&lt;P&gt;Is there any alternative library/implementation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Malek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Jun 2015 04:11:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/VPU-MJPEG-encode-8192x8192/m-p/348188#M48240</guid>
      <dc:creator>maleklamari</dc:creator>
      <dc:date>2015-06-07T04:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: VPU MJPEG encode 8192x8192</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/VPU-MJPEG-encode-8192x8192/m-p/348189#M48241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Malek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I don't know what is your mean for 'no encoding available'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; you can use the same vpu encode api as mpeg4/h.264 to encode mjpeg, just set different format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; mxc_vpu_test is open source, suppose you can get the source from our formal release.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The only work you need to do is adjust the memory pool to allow large memory allocation and set proper value for 'VPU_ENC_BITS_BUF_SIZE' accordingly just like mentioned above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eagle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 07:03:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/VPU-MJPEG-encode-8192x8192/m-p/348189#M48241</guid>
      <dc:creator>eaglezhou</dc:creator>
      <dc:date>2015-06-09T07:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: VPU MJPEG encode 8192x8192</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/VPU-MJPEG-encode-8192x8192/m-p/348190#M48242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks for you reply Peng&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using this library: &lt;A href="https://github.com/Freescale/libimxvpuapi" title="https://github.com/Freescale/libimxvpuapi"&gt;Freescale/libimxvpuapi · GitHub&lt;/A&gt; &lt;/P&gt;&lt;P&gt;And exactly as you said, I used the example given for h.264 encode and changed format to MJPG.&lt;/P&gt;&lt;P&gt;Program compiles OK, but when I ran it I got an error saying: &lt;SPAN class="pl-s"&gt;invalid codec format&lt;SPAN class="pl-pds"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pl-s"&gt;This is confirmed by looking at the switch statement (see link bellow), which only accept MPEG4, H263 and H264 formats for encoding.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pl-s"&gt;Please look at the source, line 1407: &lt;A href="https://github.com/Freescale/libimxvpuapi/blob/master/imxvpuapi/imxvpuapi_fslwrapper.c#L1407" title="https://github.com/Freescale/libimxvpuapi/blob/master/imxvpuapi/imxvpuapi_fslwrapper.c#L1407"&gt;libimxvpuapi/imxvpuapi_fslwrapper.c at master · Freescale/libimxvpuapi · GitHub&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pl-s"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pl-s"&gt;Is there any workaround?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pl-s"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pl-s"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pl-s"&gt;Malek&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 07:31:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/VPU-MJPEG-encode-8192x8192/m-p/348190#M48242</guid>
      <dc:creator>maleklamari</dc:creator>
      <dc:date>2015-06-09T07:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: VPU MJPEG encode 8192x8192</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/VPU-MJPEG-encode-8192x8192/m-p/348191#M48243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Malek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; For the libimxvpuapi, it was developed by third-party, you can ask help in corresponding community&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; or you can get freescal formal release package from freescal offical site.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eagle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 05:14:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/VPU-MJPEG-encode-8192x8192/m-p/348191#M48243</guid>
      <dc:creator>eaglezhou</dc:creator>
      <dc:date>2015-06-10T05:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: VPU MJPEG encode 8192x8192</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/VPU-MJPEG-encode-8192x8192/m-p/348192#M48244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for your contributions on this matter! You really dug deep into the issue and this is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question for you: do you by any chance remember how you set the CMA buffer size in the kernel? If I pass cma=&amp;lt;value&amp;gt;M to the bootargs in the 6x_bootscript, it does not boot. Also, what size did you set the buffer to?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindest regards,&lt;/P&gt;&lt;P&gt;Cristian Pandele&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 15:40:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/VPU-MJPEG-encode-8192x8192/m-p/348192#M48244</guid>
      <dc:creator>cristianpandele</dc:creator>
      <dc:date>2016-03-17T15:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: VPU MJPEG encode 8192x8192</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/VPU-MJPEG-encode-8192x8192/m-p/348193#M48245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nevermind, I figured it out myself. In the .config file for the kernel, this entry controls the maximum allocable contiguous memory size: CONFIG_CMA_SIZE_MBYTES. The initial value was 256, I changed it to 512 and it seems to work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you once again for navigating these deep waters and providing a useful workaround!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2016 15:06:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/VPU-MJPEG-encode-8192x8192/m-p/348193#M48245</guid>
      <dc:creator>cristianpandele</dc:creator>
      <dc:date>2016-03-21T15:06:10Z</dc:date>
    </item>
  </channel>
</rss>

