<?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: JPEG/MJPEG encoder line duplication problem in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/JPEG-MJPEG-encoder-line-duplication-problem/m-p/889316#M11244</link>
    <description>&lt;DIV style="margin:0px;"&gt;Which of several IPP JPEG codecs doyou use, JPEG codec from UIC or JPEGView sample or UMC MJPEG codec?&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;Vladimir&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Nov 2008 13:08:30 GMT</pubDate>
    <dc:creator>Vladimir_Dudnik</dc:creator>
    <dc:date>2008-11-25T13:08:30Z</dc:date>
    <item>
      <title>JPEG/MJPEG encoder line duplication problem</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/JPEG-MJPEG-encoder-line-duplication-problem/m-p/889309#M11237</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;I'm using the IPP 5.3 JPEG encoder to create an MJPEG encoder. Everything works fine except that an occasional frame will have about a 10 line duplication within the image. I have attached an avi file which illustrates this (e.g. frames 14,27,36,39). Also attached areencoder/decoder logs that list the byte counts. It occurs whether using the Intel MJPEG decoder (using the Simple Player sample ) or else other third party decoders via windows media player. &lt;/P&gt;
&lt;P&gt;Things I'vetested which have lead me to isolate the encoder::&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Source image data seems OK (recording withother encoders or just raw output does not display this artifact).&lt;/LI&gt;
&lt;LI&gt;Other decoders also display this artifact, seeming to indicate its not in the decoder.&lt;/LI&gt;
&lt;LI&gt;The byte increasefor the erroneous frame seems to be approximately the amount of bytes for the number of duplicate lines.&lt;/LI&gt;
&lt;LI&gt;Same problem with different data sources (cameras - color/grayscale, etc)&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;System specs:&lt;/P&gt;
&lt;P&gt;Intel Core2 Quad&lt;BR /&gt;Windows XP&lt;BR /&gt;Intel IPP 5.3.3.082&lt;BR /&gt;Statically linked Intel Libs&lt;BR /&gt;Statically linked Intel audio/video libs ( built usingstatic c rtuntime (/MT) )&lt;BR /&gt;MFC Test app (static C runtime (/MT) )&lt;BR /&gt;CPU usage : ~ 25%&lt;/P&gt;
&lt;P&gt;Here's the encode routine.&lt;/P&gt;
&lt;P&gt;pSrc is an simple rgb array&lt;BR /&gt;width640&lt;BR /&gt;height480&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;P&gt;int&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; MJPEGEncoder::EncodeFrame(&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;unsigned&lt;/FONT&gt;&lt;FONT size="2"&gt; &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;char&lt;/FONT&gt;&lt;FONT size="2"&gt;* pSrc, &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;int&lt;/FONT&gt;&lt;FONT size="2"&gt; nSrcBytes, &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;unsigned&lt;/FONT&gt;&lt;FONT size="2"&gt; &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;char&lt;/FONT&gt;&lt;FONT size="2"&gt;* pDest, &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;int&lt;/FONT&gt;&lt;FONT size="2"&gt; nDestBytes, &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;int&lt;/FONT&gt;&lt;FONT size="2"&gt;* pnDestBytesUsed)&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;int&lt;/FONT&gt;&lt;FONT size="2"&gt; iResult = 0;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JERRCODE jerr;&lt;/P&gt;&lt;P&gt;IppiSize imgSize;&lt;/P&gt;&lt;P&gt;CJPEGEncoder encoder;&lt;/P&gt;&lt;P&gt;CMemBuffOutput jpegDest;&lt;/P&gt;&lt;P&gt;JMODE mode = JPEG_BASELINE;&lt;/P&gt;&lt;P&gt;JCOLOR color = JC_YCBCR;&lt;/P&gt;&lt;P&gt;JSS sampling = JS_422;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;int&lt;/FONT&gt;&lt;FONT size="2"&gt; step = (m_iWidth * 3) + DIB_PAD_BYTES(m_iWidth, 3);&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;int&lt;/FONT&gt;&lt;FONT size="2"&gt; quality = 85;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;int&lt;/FONT&gt;&lt;FONT size="2"&gt; nSourceChannels = 3;&lt;P&gt;&lt;/P&gt;&lt;P&gt;imgSize.width = m_iWidth;&lt;/P&gt;&lt;P&gt;imgSize.height = m_iHeight;&lt;/P&gt;&lt;P&gt;MyTimer timer;&lt;/P&gt;&lt;P&gt;timer.Start();&lt;/P&gt;&lt;P&gt;jpegDest.Open(pDest, nDestBytes);&lt;/P&gt;&lt;P&gt;jerr = encoder.SetSource((Ipp8u*)pSrc, step, imgSize, nSourceChannels, JC_RGB);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;if&lt;/FONT&gt;&lt;FONT size="2"&gt;(jerr != JPEG_OK)&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;if&lt;/FONT&gt;&lt;FONT size="2"&gt;(m_bWriteTraceFile)&lt;P&gt;&lt;/P&gt;&lt;P&gt;fprintf(m_fpTrace, &lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#a31515" size="2"&gt;"[MJPEG] Error setting source [err code = %d].
"&lt;/FONT&gt;&lt;FONT size="2"&gt;, jerr);&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;return&lt;/FONT&gt;&lt;FONT size="2"&gt; jerr;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;jerr = encoder.SetParams(mode, color, sampling, 0, 0, quality);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;if&lt;/FONT&gt;&lt;FONT size="2"&gt;(jerr != JPEG_OK)&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;if&lt;/FONT&gt;&lt;FONT size="2"&gt;(m_bWriteTraceFile)&lt;P&gt;&lt;/P&gt;&lt;P&gt;fprintf(m_fpTrace, &lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#a31515" size="2"&gt;"[MJPEG] Error setting params [
err code = %d].
"&lt;/FONT&gt;&lt;FONT size="2"&gt;, jerr);&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;return&lt;/FONT&gt;&lt;FONT size="2"&gt; jerr;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;jerr = jpegDest.Open(pDest, nDestBytes);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;if&lt;/FONT&gt;&lt;FONT size="2"&gt;(jerr != JPEG_OK)&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;if&lt;/FONT&gt;&lt;FONT size="2"&gt;(m_bWriteTraceFile)&lt;P&gt;&lt;/P&gt;&lt;P&gt;fprintf(m_fpTrace, &lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#a31515" size="2"&gt;"[MJPEG] Error opening destination [err code = %d].
"&lt;/FONT&gt;&lt;FONT size="2"&gt;, jerr);&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;return&lt;/FONT&gt;&lt;FONT size="2"&gt; jerr;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;jerr = encoder.SetDestination(&amp;amp;jpegDest);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;if&lt;/FONT&gt;&lt;FONT size="2"&gt;(jerr != JPEG_OK)&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;if&lt;/FONT&gt;&lt;FONT size="2"&gt;(m_bWriteTraceFile)&lt;P&gt;&lt;/P&gt;&lt;P&gt;fprintf(m_fpTrace, &lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#a31515" size="2"&gt;"[MJPEG] Error setting destination [err code = %d].
"&lt;/FONT&gt;&lt;FONT size="2"&gt;, jerr);&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;return&lt;/FONT&gt;&lt;FONT size="2"&gt; jerr;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;jerr = encoder.WriteHeader();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;if&lt;/FONT&gt;&lt;FONT size="2"&gt;(jerr != JPEG_OK)&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;if&lt;/FONT&gt;&lt;FONT size="2"&gt;(m_bWriteTraceFile)&lt;P&gt;&lt;/P&gt;&lt;P&gt;fprintf(m_fpTrace, &lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#a31515" size="2"&gt;"[MJPEG] Error writing header [err code = %d].
"&lt;/FONT&gt;&lt;FONT size="2"&gt;, jerr);&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;return&lt;/FONT&gt;&lt;FONT size="2"&gt; jerr;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;jerr = encoder.WriteData();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;if&lt;/FONT&gt;&lt;FONT size="2"&gt;(jerr != JPEG_OK)&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;if&lt;/FONT&gt;&lt;FONT size="2"&gt;(m_bWriteTraceFile)&lt;P&gt;&lt;/P&gt;&lt;P&gt;fprintf(m_fpTrace, &lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#a31515" size="2"&gt;"[MJPEG] Error writing data [err code = %d].
"&lt;/FONT&gt;&lt;FONT size="2"&gt;, jerr);&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;return&lt;/FONT&gt;&lt;FONT size="2"&gt; jerr;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;timer.Stop();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;double&lt;/FONT&gt;&lt;FONT size="2"&gt; dMillisecs = timer.Duration() * 1000.0f; &lt;/FONT&gt;&lt;FONT color="#008000" size="2"&gt;// millisecs&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;P&gt;*pnDestBytesUsed = encoder.NumOfBytes();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;if&lt;/FONT&gt;&lt;FONT size="2"&gt;(m_bWriteTraceFile)&lt;P&gt;&lt;/P&gt;&lt;P&gt;fprintf(m_fpTrace, &lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#a31515" size="2"&gt;"[MJPEG] Frame Encoded. [Time(msecs):%3.2f	nInBytes:%d	nOutBytes:%d	nBytesAvailable:%d
"&lt;/FONT&gt;&lt;FONT size="2"&gt;, dMillisecs, nSrcBytes, *pnDestBytesUsed, nDestBytes);&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;return&lt;/FONT&gt;&lt;FONT size="2"&gt; iResult;&lt;P&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;Again, it works fine, except 1 in every n frames or so will have a duplicated segement, where n tends to vary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone has any thoughts or suggestions I really appreciate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Morgan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Sep 2008 22:10:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/JPEG-MJPEG-encoder-line-duplication-problem/m-p/889309#M11237</guid>
      <dc:creator>mojonez</dc:creator>
      <dc:date>2008-09-10T22:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: JPEG/MJPEG encoder line duplication problem</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/JPEG-MJPEG-encoder-line-duplication-problem/m-p/889310#M11238</link>
      <description>&lt;P&gt;Hello Morgan,&lt;/P&gt;
&lt;P&gt;Thanks for detailed info you provided. I really see no any major issues in code you provide, except you calljpegDest.Open(pDest, nDestBytes) twice, but that should not lead to an issue in this particular case. I would recommend you to store each frame as a separate JPEG file to verify that wrong data comes from JPEG encoder and not corrupted somehow at AVI creation time.&lt;/P&gt;
&lt;P&gt;Note, you may want to call get_num_threads() or set_num_threads()functions (defined in jpegbase.h) to see if that behaviour is related to threading implemented in encoder.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2008 04:51:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/JPEG-MJPEG-encoder-line-duplication-problem/m-p/889310#M11238</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2008-09-11T04:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: JPEG/MJPEG encoder line duplication problem</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/JPEG-MJPEG-encoder-line-duplication-problem/m-p/889311#M11239</link>
      <description>If you could provide a tarball of your source along with Makefiles and a screenshot of your core usage while the code is running, I can have a look at it. actually i'm struggling with something like this myself in my robotics projects.&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Sep 2008 07:49:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/JPEG-MJPEG-encoder-line-duplication-problem/m-p/889311#M11239</guid>
      <dc:creator>sahil_malhotra</dc:creator>
      <dc:date>2008-09-12T07:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: JPEG/MJPEG encoder line duplication problem</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/JPEG-MJPEG-encoder-line-duplication-problem/m-p/889312#M11240</link>
      <description>&lt;P&gt;Thanks for the reply, Vladimir.&lt;/P&gt;
&lt;P&gt;Same problem occurs when saving each frame as a JPEG. Attached image shows the problem. Around the chin area the lines are duplicated. It looks like exactly 8 lines are duplicated, which i think is the same as the encoder's block size.&lt;/P&gt;
&lt;P&gt;Calling get_num_threads returns 4.&lt;/P&gt;
&lt;P&gt;However, changingthenum threads to 1 -the problem seems to have gone away, with the exception that i now get an occasional 4x4 pixel flickering light grey block in the top-right corner of the image, however thisi can work around.&lt;/P&gt;
&lt;P&gt;testing with different threads count:&lt;/P&gt;
&lt;P&gt;numthreads 1 - OK (no line duplicates)&lt;BR /&gt;numthreads 2 - OK (no line duplicates)&lt;BR /&gt;numthreads 3 - BAD (line duplicates)&lt;BR /&gt;numthreads 4 - BAD (line duplicates)&lt;/P&gt;
&lt;P&gt;So, I'll leave her at 2 threads and call it good.&lt;/P&gt;
&lt;P&gt;Thanks so much for the help. I don't think i would have discovered that on my own.&lt;/P&gt;
&lt;P&gt;Morgan&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Sep 2008 22:04:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/JPEG-MJPEG-encoder-line-duplication-problem/m-p/889312#M11240</guid>
      <dc:creator>mojonez</dc:creator>
      <dc:date>2008-09-15T22:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: JPEG/MJPEG encoder line duplication problem</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/JPEG-MJPEG-encoder-line-duplication-problem/m-p/889313#M11241</link>
      <description>&lt;P&gt;Hi Sahil,&lt;/P&gt;
&lt;P&gt;Attached is a screenshot of the CPU usage.&lt;/P&gt;
&lt;P&gt;I'm not able tosend out app source code.&lt;/P&gt;
&lt;P&gt;Are you getting line duplication as well? If so, is it 8 pixels high?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Sep 2008 22:10:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/JPEG-MJPEG-encoder-line-duplication-problem/m-p/889313#M11241</guid>
      <dc:creator>mojonez</dc:creator>
      <dc:date>2008-09-15T22:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: JPEG/MJPEG encoder line duplication problem</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/JPEG-MJPEG-encoder-line-duplication-problem/m-p/889314#M11242</link>
      <description>My line duplication problem was more of a corner pixels problem... turned out about stack space overlaps .... my corner pixels were becoming part of multiple threads stack space when split the image into four data structures on my quad.... But yeah a duplication problem it was.... reading your output... when you go over 2 hardware threads , one or more of your threads are reading the image wrong and writing the final pixels right.... means they are duplicating outputs from other threads and putting them in the places they were supposed to at splitting time.... and looking at your problem youve split them int horizontal segments....&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Sep 2008 05:03:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/JPEG-MJPEG-encoder-line-duplication-problem/m-p/889314#M11242</guid>
      <dc:creator>sahil_malhotra</dc:creator>
      <dc:date>2008-09-16T05:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: JPEG/MJPEG encoder line duplication problem</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/JPEG-MJPEG-encoder-line-duplication-problem/m-p/889315#M11243</link>
      <description>&lt;DIV style="margin:0px;"&gt;Hi guys,&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;I'm using IPP 6.0 (final), and i'm still getting artifacts, shifted lines, flashes etc.when encoding (decoding is fine) to JPEG using OPENMP and MSVC2008 Pro. Setting numthreads to 2 on a quadcore (intel) CPU fixes this.&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;Anyone has a resolution for this, encoding is most important for us.&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;Best regards,&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;Bas&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2008 13:03:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/JPEG-MJPEG-encoder-line-duplication-problem/m-p/889315#M11243</guid>
      <dc:creator>bassraf</dc:creator>
      <dc:date>2008-11-25T13:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: JPEG/MJPEG encoder line duplication problem</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/JPEG-MJPEG-encoder-line-duplication-problem/m-p/889316#M11244</link>
      <description>&lt;DIV style="margin:0px;"&gt;Which of several IPP JPEG codecs doyou use, JPEG codec from UIC or JPEGView sample or UMC MJPEG codec?&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;Vladimir&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2008 13:08:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/JPEG-MJPEG-encoder-line-duplication-problem/m-p/889316#M11244</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2008-11-25T13:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: JPEG/MJPEG encoder line duplication problem</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/JPEG-MJPEG-encoder-line-duplication-problem/m-p/889317#M11245</link>
      <description>&lt;DIV style="margin:0px;"&gt;Hi Vladimir, thanks for your quick response.&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;I'm using the UMC JPEG code.&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;Looking at your question I assume I should use a different codebase (what/why are they different anyway?) ?&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;Bas&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2008 01:31:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/JPEG-MJPEG-encoder-line-duplication-problem/m-p/889317#M11245</guid>
      <dc:creator>bassraf</dc:creator>
      <dc:date>2008-11-26T01:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: JPEG/MJPEG encoder line duplication problem</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/JPEG-MJPEG-encoder-line-duplication-problem/m-p/889318#M11246</link>
      <description>&lt;DIV style="margin:0px;"&gt;Yes, some differences are possible between JPEG codec in audio-video-codecs sample and image-codecs sample. Usually, most up to date codec is kept in image-codecs sample and then it might be ported to MJPEG codec.&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;Regards,&lt;BR /&gt; Vladimir&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2008 06:39:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/JPEG-MJPEG-encoder-line-duplication-problem/m-p/889318#M11246</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2008-11-26T06:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: JPEG/MJPEG encoder line duplication problem</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/JPEG-MJPEG-encoder-line-duplication-problem/m-p/889319#M11247</link>
      <description>&lt;DIV style="margin:0px;"&gt;So should I be using the code in image-codecs/UIC/src/codec/image/jpegor image-codecs/jpegview/jpeg ?&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;(i'm now using the latter,and encoding seems to be fine, but decoding now has artifacts??)&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;Regards,&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;Bas&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2008 11:00:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/JPEG-MJPEG-encoder-line-duplication-problem/m-p/889319#M11247</guid>
      <dc:creator>bassraf</dc:creator>
      <dc:date>2008-11-26T11:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: JPEG/MJPEG encoder line duplication problem</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/JPEG-MJPEG-encoder-line-duplication-problem/m-p/889320#M11248</link>
      <description>&lt;DIV style="margin:0px;"&gt;Ok, looking at stills from the decoder (compiled using OPENMP MSVC) there are multiple line duplications of 8 lines taking place. Weird thing is, the encoder used to have artifacts, but with this codebase (from image-codecs/jpegview/jpeg) the decoder has the duplication problem when using multiple cores (everything &amp;gt; 1 core has the duplication problem)&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;Bas&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2008 11:09:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/JPEG-MJPEG-encoder-line-duplication-problem/m-p/889320#M11248</guid>
      <dc:creator>bassraf</dc:creator>
      <dc:date>2008-11-26T11:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: JPEG/MJPEG encoder line duplication problem</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/JPEG-MJPEG-encoder-line-duplication-problem/m-p/889321#M11249</link>
      <description>&lt;DIV style="margin:0px;"&gt;Are you saying that UIC JPEG codec have artifacts at encoder and line duplication problem with decoder? We do not see that behaviour in our internal testing.&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;Vladimir&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Nov 2008 15:48:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/JPEG-MJPEG-encoder-line-duplication-problem/m-p/889321#M11249</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2008-11-27T15:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: JPEG/MJPEG encoder line duplication problem</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/JPEG-MJPEG-encoder-line-duplication-problem/m-p/889322#M11250</link>
      <description>&lt;DIV style="margin:0px;"&gt;Do methods like &lt;SPAN style="font-size: x-small;"&gt;ippiYCbCrToRGB_8u_P3C4R also make use of OPENMP ?&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;&lt;SPAN style="font-size: x-small;"&gt;I'm starting to wonder if these calls might be involved.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;&lt;SPAN style="font-size: x-small;"&gt;I've actually tried all codebases now,i'm starting to get confused.. setting numthreads to 2 works..&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;&lt;SPAN style="font-size: x-small;"&gt;Since i've tried so much, i'm not sure anymore what works and what doesn't, but looking at my own previous post.. the decoder from UIC seems to be fine now.. but i'm almost 100% sure the encoder is duplicating lines still..&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;&lt;SPAN style="font-size: x-small;"&gt;Btw i'm not destroying/creating the encoder class each frame as I have seen done by others, might this be the culprit? (i'll try)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;&lt;SPAN style="font-size: x-small;"&gt;Bas&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 30 Nov 2008 02:06:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/JPEG-MJPEG-encoder-line-duplication-problem/m-p/889322#M11250</guid>
      <dc:creator>bassraf</dc:creator>
      <dc:date>2008-11-30T02:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: JPEG/MJPEG encoder line duplication problem</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/JPEG-MJPEG-encoder-line-duplication-problem/m-p/889323#M11251</link>
      <description>&lt;DIV style="margin:0px;"&gt;You may link with non threaded IPP static libraries to exclude any possibilityof infuence of IPP internal threading.&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;If you can attach piece of code which reproduce UIC JPEG encoder line duplication issue that will help us to investigate the problem.&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>Tue, 02 Dec 2008 12:27:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/JPEG-MJPEG-encoder-line-duplication-problem/m-p/889323#M11251</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2008-12-02T12:27:52Z</dc:date>
    </item>
  </channel>
</rss>

