<?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 with JPEG lossless and predictor 7 in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-with-JPEG-lossless-and-predictor-7/m-p/854691#M6959</link>
    <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;We fixed the problem by writing our own function and ran into the same problem as you apparently have.&lt;/P&gt;
&lt;P&gt;If you shift a signed integer the leftmost bit is kept.&lt;/P&gt;
&lt;P&gt;Example&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;int x = 0xFFFF;&lt;/P&gt;
&lt;P&gt;int y = x &amp;gt;&amp;gt; 1;&lt;/P&gt;
&lt;P&gt;y would again be 0xFFFF&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;If you use unsigned int, the result is as "expected".&lt;/P&gt;
&lt;P&gt;unsiged int x = 0xFFFF;&lt;/P&gt;
&lt;P&gt;int y = x &amp;gt;&amp;gt; 1;&lt;/P&gt;
&lt;P&gt;y would be 0x7FFF&lt;/P&gt;</description>
    <pubDate>Tue, 04 Nov 2008 10:08:37 GMT</pubDate>
    <dc:creator>vepro_hoffmann</dc:creator>
    <dc:date>2008-11-04T10:08:37Z</dc:date>
    <item>
      <title>Problem with JPEG lossless and predictor 7</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-with-JPEG-lossless-and-predictor-7/m-p/854690#M6958</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Using predictor 7 from the JPEG lossless standard we are experiencing problems encoding/decoding pixeldata.&lt;BR /&gt;We are using a generated image of a white rectangle on a black background (16 bit grayscale) for reproducing this behavior.&lt;BR /&gt;This picture is attached as correct.raw and is the source of the compressed files and expected result after decompression.&lt;BR /&gt;(Image width 300, height 300 and 16 bits per pixel, I also added a .PNG version for easier viewing)&lt;BR /&gt;&lt;BR /&gt;We compress the source file lossless with IPP5.3.4 and get the JPEGLLPredictor7Intel.raw file.&lt;BR /&gt;If we decompress this file with IPP it results in the correct image.&lt;BR /&gt;But if we decompress it with Pegasus JPEG lossless library we get the following result JPEGLLPredictor7IntelDecompressedWithPegasus.png (only a screenshot, sorry but we can't extract the pixeldata at this point).&lt;BR /&gt;&lt;BR /&gt;We compress the source file lossless with Pegasus and get the JPEGLLPredictor7Pegasus.raw file.&lt;BR /&gt;If we decompress this file with Pegasus it results in the correct image.&lt;BR /&gt;But if we decompress it with IPP we get the following result JPEGLLPredictor7PegasusDecompressedWithIntel.RAW.&lt;BR /&gt;&lt;BR /&gt;It looks like the problem is occuring in ippiReconstructPredRow_JPEG_16s_C1 for the decoding part.&lt;BR /&gt;Are you sure that you are implementing predictor 7 correctly?&lt;BR /&gt;Your implementation seems to be consistent through encoding/decoding but not according to standard as far as we could reproduce the resulting values from the prediction.&lt;BR /&gt;&lt;BR /&gt;Greets&lt;BR /&gt;Daniel Hoffmann&lt;/P&gt;</description>
      <pubDate>Tue, 04 Nov 2008 08:17:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-with-JPEG-lossless-and-predictor-7/m-p/854690#M6958</guid>
      <dc:creator>vepro_hoffmann</dc:creator>
      <dc:date>2008-11-04T08:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with JPEG lossless and predictor 7</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-with-JPEG-lossless-and-predictor-7/m-p/854691#M6959</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;We fixed the problem by writing our own function and ran into the same problem as you apparently have.&lt;/P&gt;
&lt;P&gt;If you shift a signed integer the leftmost bit is kept.&lt;/P&gt;
&lt;P&gt;Example&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;int x = 0xFFFF;&lt;/P&gt;
&lt;P&gt;int y = x &amp;gt;&amp;gt; 1;&lt;/P&gt;
&lt;P&gt;y would again be 0xFFFF&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;If you use unsigned int, the result is as "expected".&lt;/P&gt;
&lt;P&gt;unsiged int x = 0xFFFF;&lt;/P&gt;
&lt;P&gt;int y = x &amp;gt;&amp;gt; 1;&lt;/P&gt;
&lt;P&gt;y would be 0x7FFF&lt;/P&gt;</description>
      <pubDate>Tue, 04 Nov 2008 10:08:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-with-JPEG-lossless-and-predictor-7/m-p/854691#M6959</guid>
      <dc:creator>vepro_hoffmann</dc:creator>
      <dc:date>2008-11-04T10:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with JPEG lossless and predictor 7</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-with-JPEG-lossless-and-predictor-7/m-p/854692#M6960</link>
      <description>&lt;DIV style="margin:0px;"&gt;Thanks for reporting, we will check this and inform you on results&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;Regards,&lt;BR /&gt; Vladimir&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2008 20:03:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-with-JPEG-lossless-and-predictor-7/m-p/854692#M6960</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2008-11-05T20:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with JPEG lossless and predictor 7</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-with-JPEG-lossless-and-predictor-7/m-p/854693#M6961</link>
      <description>&lt;P&gt;Hello Vladimir,  Any updates on this issue?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Nov 2008 17:26:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-with-JPEG-lossless-and-predictor-7/m-p/854693#M6961</guid>
      <dc:creator>vepro_hoffmann</dc:creator>
      <dc:date>2008-11-17T17:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with JPEG lossless and predictor 7</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-with-JPEG-lossless-and-predictor-7/m-p/854694#M6962</link>
      <description>&lt;DIV style="margin:0px;"&gt;Hello, we reviewed this issue. The reason is that IPP implementation assue signed integer calculations in both encoder and decoder and some third party implementation use this approach too. But some not. Unfortunately, JPEG specification is not quite certain on how this should be calculated.&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;Theretically, it is possible to develop new IPP functions, which work with unsigned integers to cover both possible situation. But on practice, these particular functions took only few percent of time against about 90% time spent in huffman encoding or decoding fucntions for lossless mode JPEG operation. So, I think if you solve your issue implementing your own function that is enough and will not impact performance of lossless JPEG.&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;Regards,&lt;BR /&gt; Vladimir&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2008 18:34:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-with-JPEG-lossless-and-predictor-7/m-p/854694#M6962</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2008-11-18T18:34:48Z</dc:date>
    </item>
  </channel>
</rss>

