<?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: When i use class CJPEGencoder from jpegview....... in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/When-i-use-class-CJPEGencoder-from-jpegview/m-p/940965#M17649</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;note that ippiMalloc aligns memory on 32 byte bondary and return you line stepfor further reference. But you use your own line step value (640*3) in SetSource which does not match the actual line step returned by ippiMalloc. I think when you correct this (just use stepC3 returned by ippiMalloc) program should work correctly.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 16 Mar 2006 18:57:07 GMT</pubDate>
    <dc:creator>Vladimir_Dudnik</dc:creator>
    <dc:date>2006-03-16T18:57:07Z</dc:date>
    <item>
      <title>When i use class CJPEGencoder from jpegview.......</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/When-i-use-class-CJPEGencoder-from-jpegview/m-p/940962#M17646</link>
      <description>&lt;DIV&gt;Hi&lt;/DIV&gt;
&lt;DIV&gt;When I use class CJPEGencoder from jpegview,I successed in compressing a RGB24(900k) pictuer to a gray JPEG picture(10k).But when i choose the JC_YCBCR (or any other color mode)destination JPEG clore mode, the picture becomes very bad,although the quality is choosed 100,sampling 444.The face in it becomes green.&lt;/DIV&gt;
&lt;DIV&gt;Wheremay be the problom from?&lt;/DIV&gt;
&lt;DIV&gt;Thank U.&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 Mar 2006 16:48:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/When-i-use-class-CJPEGencoder-from-jpegview/m-p/940962#M17646</guid>
      <dc:creator>tkx007</dc:creator>
      <dc:date>2006-03-15T16:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: When i use class CJPEGencoder from jpegview.......</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/When-i-use-class-CJPEGencoder-from-jpegview/m-p/940963#M17647</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;could you please provide more info about your issue? What IPP version, OS, platform did you use? Might be you can provide us simple test case?&lt;/P&gt;
&lt;P&gt;You also can take a look on CJPGViewDoc::SaveAsJPEG() function, which is able to encode RGB24 picture to YCBCR JPEG.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 16 Mar 2006 04:51:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/When-i-use-class-CJPEGencoder-from-jpegview/m-p/940963#M17647</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2006-03-16T04:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: When i use class CJPEGencoder from jpegview.......</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/When-i-use-class-CJPEGencoder-from-jpegview/m-p/940964#M17648</link>
      <description>&lt;DIV&gt;Hi&lt;/DIV&gt;
&lt;DIV&gt;I use CJPEGEncoder like this:&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt; CFile fp;&lt;BR /&gt; Ipp8u* pRGBbuf;&lt;/DIV&gt;
&lt;DIV&gt; int readnum,rst;&lt;/DIV&gt;
&lt;DIV&gt; pRGBbuf=ippiMalloc_8u_C3(640, 480, &amp;amp;stepC3);&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;if(!fp.Open("f:picture",CFile::modeRead,NULL))&lt;BR /&gt; printf("wrong:can't open primitive picture!
");&lt;/DIV&gt;
&lt;DIV&gt; readnum=fp.Read(pRGBbuf,PicLen);&lt;BR /&gt;fp.Close();&lt;BR /&gt; if(readnum!=PicLen)&lt;BR /&gt; printf("wrong:read %d bytes from the primitive picture!
",readnum);&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;CJPEGEncoder encoder;&lt;BR /&gt; IppiSize roi={640,480};&lt;BR /&gt; encoder.SetSource(pRGBbuf,640*3,roi,3,JC_RGB);&lt;BR /&gt; int JPEGSize=640*480*3;&lt;BR /&gt; Ipp8u* pJPEG;&lt;BR /&gt; pJPEG = (Ipp8u*)ippMalloc(JPEGSize);&lt;BR /&gt; JSS sampling=JS_444;&lt;BR /&gt; encoder.SetDestinatio(pJPEG,JPEGSize,&lt;/DIV&gt;
&lt;DIV&gt; 50,sampling,JC_YCBCR,JPEG_BASELINE,0);&lt;BR /&gt; encoder.WriteHeader();&lt;BR /&gt;JPEGSize = encoder.m_dst.currPos;&lt;BR /&gt;cout&amp;lt;&amp;lt;"head length:"&amp;lt;&lt;JPEGSIZE&gt;&amp;lt;&lt;ENDL&gt; encoder.WriteData();&lt;BR /&gt; JPEGSize = encoder.m_dst.currPos;&lt;BR /&gt; cout&amp;lt;&amp;lt;"data length:"&amp;lt;&lt;JPEGSIZE&gt;&amp;lt;&lt;ENDL&gt;fp.Open("f:fff.jpeg",CFile::modeWrite|CFile::modeRead|CFile::modeCreate,NULL);&lt;BR /&gt;fp.Write (pJPEG,JPEGSize);&lt;BR /&gt;fp.Close ();&lt;/ENDL&gt;&lt;/JPEGSIZE&gt;&lt;/ENDL&gt;&lt;/JPEGSIZE&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;P.S:VC++6.0 windows XP intel Pentium&lt;BR /&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 16 Mar 2006 09:41:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/When-i-use-class-CJPEGencoder-from-jpegview/m-p/940964#M17648</guid>
      <dc:creator>tkx007</dc:creator>
      <dc:date>2006-03-16T09:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: When i use class CJPEGencoder from jpegview.......</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/When-i-use-class-CJPEGencoder-from-jpegview/m-p/940965#M17649</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;note that ippiMalloc aligns memory on 32 byte bondary and return you line stepfor further reference. But you use your own line step value (640*3) in SetSource which does not match the actual line step returned by ippiMalloc. I think when you correct this (just use stepC3 returned by ippiMalloc) program should work correctly.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 16 Mar 2006 18:57:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/When-i-use-class-CJPEGencoder-from-jpegview/m-p/940965#M17649</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2006-03-16T18:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: When i use class CJPEGencoder from jpegview.......</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/When-i-use-class-CJPEGencoder-from-jpegview/m-p/940966#M17650</link>
      <description>&lt;DIV&gt;Hi:&lt;/DIV&gt;
&lt;DIV&gt;I have tried stepC3 instead of 640*3,but just the same result.&lt;/DIV&gt;
&lt;DIV&gt;There is no problem with the shape in the picture,but the colour.&lt;/DIV&gt;
&lt;DIV&gt;I choose YCbCr,but the result is almost gray. Face becomes blue,just like ghost. :mansad:&lt;/DIV&gt;</description>
      <pubDate>Thu, 16 Mar 2006 19:19:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/When-i-use-class-CJPEGencoder-from-jpegview/m-p/940966#M17650</guid>
      <dc:creator>tkx007</dc:creator>
      <dc:date>2006-03-16T19:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: When i use class CJPEGencoder from jpegview.......</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/When-i-use-class-CJPEGencoder-from-jpegview/m-p/940967#M17651</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;you removed geometrical artifacts, you have before, so it actually means that not the same result, right?&lt;/P&gt;
&lt;P&gt;Second, when you specify input image color space are you sure it is RGB? If you got data from BMP file - color spaceshould beBGR, so could you please try to change?&lt;/P&gt;
&lt;P&gt;Finally, I recommend you to take a lookat existing IPP sample,JPEGView, it was speciallydeveloped to help people to understand how to use IPP functions to build JPEG codec&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2006 21:08:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/When-i-use-class-CJPEGencoder-from-jpegview/m-p/940967#M17651</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2006-03-16T21:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: When i use class CJPEGencoder from jpegview.......</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/When-i-use-class-CJPEGencoder-from-jpegview/m-p/940968#M17652</link>
      <description>&lt;DIV&gt;Thank you very very much. &lt;/DIV&gt;
&lt;DIV&gt;The picture comes from usb camera.Information from the driver says the &lt;/DIV&gt;
&lt;DIV&gt;color mode is RGB,while it really is,as you say BGR.&lt;/DIV&gt;
&lt;DIV&gt;Best wishes to you !&lt;/DIV&gt;
&lt;DIV&gt;Intel forever!&lt;/DIV&gt;</description>
      <pubDate>Thu, 16 Mar 2006 22:29:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/When-i-use-class-CJPEGencoder-from-jpegview/m-p/940968#M17652</guid>
      <dc:creator>tkx007</dc:creator>
      <dc:date>2006-03-16T22:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: When i use class CJPEGencoder from jpegview.......</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/When-i-use-class-CJPEGencoder-from-jpegview/m-p/940969#M17653</link>
      <description>&lt;P&gt;Wow, that's great! We are glad to help.&lt;/P&gt;
&lt;P&gt;By the way, in the next version of IPP (v5.1 which is cooming soon, sometime in Q2) we will add threading into JPEG encoder, so if you use dual core processor, you will be able to compress more for the same time. Stay tuned with IPP :)&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 16 Mar 2006 22:40:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/When-i-use-class-CJPEGencoder-from-jpegview/m-p/940969#M17653</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2006-03-16T22:40:20Z</dc:date>
    </item>
  </channel>
</rss>

