<?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: Gray dots on white area in h264 encoder in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Gray-dots-on-white-area-in-h264-encoder/m-p/853786#M6862</link>
    <description>Hi all,&lt;BR /&gt;There is a bug in the code. The reason is incorrect requantization when coeff is greater than maximum allowed level for CAVLC in baseleine profile.&lt;BR /&gt;&lt;BR /&gt;To avoid it don't use combination of CAVLC and baseline profile.&lt;BR /&gt;&lt;BR /&gt;To fix it go to&lt;SPAN style="font-size: x-small; color: #020002;"&gt;&lt;SPAN style="font-size: x-small; color: #020002;"&gt;&lt;P&gt;H264CoreEncoder_CEncAndRec16x16IntraMB function, in the beginning, under&lt;SPAN style="font-size: x-small; color: #0000ff;"&gt;&lt;SPAN style="font-size: x-small; color: #0000ff;"&gt; &lt;SPAN style="font-size: x-small; color: #0000ff;"&gt;&lt;SPAN style="font-size: x-small; color: #0000ff;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if &lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: x-small;"&gt;(!&lt;/SPAN&gt;&lt;SPAN style="font-size: x-small; color: #020002;"&gt;&lt;SPAN style="font-size: x-small; color: #020002;"&gt;transform_bypass&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: x-small;"&gt;) after &lt;SPAN style="font-size: x-small; color: #0000ff;"&gt;&lt;SPAN style="font-size: x-small; color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: x-small; color: #000000;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="font-size: x-small; color: #020002;"&gt;&lt;SPAN style="font-size: x-small; color: #020002;"&gt;core_enc&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: x-small; color: #000000;"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: x-small; color: #020002;"&gt;&lt;SPAN style="font-size: x-small; color: #020002;"&gt;m_info&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: x-small; color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: x-small; color: #020002;"&gt;&lt;SPAN style="font-size: x-small; color: #020002;"&gt;profile_idc&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: x-small;"&gt;&lt;SPAN style="color: #000000;"&gt; == 66...){&lt;BR /&gt;declare &lt;BR /&gt;COEFSTYPE buf[16]; &lt;BR /&gt;copy there pDCBuf (sizeof(buf)),&lt;BR /&gt;then inside do{ under &lt;SPAN style="font-size: x-small; color: #0000ff;"&gt;&lt;SPAN style="font-size: x-small; color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: x-small;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="font-size: x-small; color: #020002;"&gt;&lt;SPAN style="font-size: x-small; color: #020002;"&gt;CAVLC_overflow&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: x-small;"&gt; ){&lt;BR /&gt;copy back from buf to pDCBuf.&lt;BR /&gt;That's all.&lt;BR /&gt;&lt;BR /&gt;As you can see the bug is that in case of requantization already quantized coeffs were used instead of originals. The additional buffer needs to be used to preventoriginal source valuesbecause&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: x-small; color: #020002;"&gt;&lt;SPAN style="font-size: x-small; color: #020002;"&gt;ippiTransformQuantLumaDC_H264 works inplace.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN style="font-size: x-small;"&gt;&lt;SPAN style="font-size: x-small;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-size: x-small;"&gt;In umc_h264_ermb_tmpl.cpp.h -&amp;gt; line 1333&lt;BR /&gt;&lt;BR /&gt;if( core_enc-&amp;gt;m_info.profile_idc == 66 &amp;amp;&amp;amp; !core_enc-&amp;gt;m_info.entropy_coding_mode ){&lt;BR /&gt; bool CAVLC_overflow;&lt;BR /&gt; Ipp32s i;&lt;BR /&gt;*COEFFSTYPE buf[16];&lt;BR /&gt;* memcpy( buf,pDCBuf, 16*sizeof( COEFFSTYPE ));&lt;BR /&gt; do{&lt;BR /&gt; H264ENC_MAKE_NAME(ippiTransformQuantLumaDC_H264)(&lt;BR /&gt; pDCBuf,&lt;BR /&gt; pQBuf,&lt;BR /&gt; uMBQP,&lt;BR /&gt; &amp;amp;iNumCoeffs,&lt;BR /&gt; 1,&lt;BR /&gt; enc_single_scan[is_cur_mb_field],&lt;BR /&gt; &amp;amp;iLastCoeff,&lt;BR /&gt; NULL);&lt;BR /&gt; CAVLC_overflow = false;&lt;BR /&gt; for(i=0; i&amp;lt;16; i++)&lt;BR /&gt; if( pDCBuf&lt;I&gt; &amp;gt; MAX_CAVLC_LEVEL ){ CAVLC_overflow = true; break; }&lt;BR /&gt; if( CAVLC_overflow ){&lt;BR /&gt;* memcpy(pDCBuf, buf,16*sizeof( COEFFSTYPE ));&lt;BR /&gt; cur_mb.LocalMacroblockInfo-&amp;gt;QP++;&lt;BR /&gt; uMBQP = cur_mb.lumaQP = getLumaQP(cur_mb.LocalMacroblockInfo-&amp;gt;QP, core_enc-&amp;gt;m_PicParamSet.bit_depth_luma);&lt;BR /&gt; }&lt;BR /&gt; }while(CAVLC_overflow);&lt;BR /&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;</description>
    <pubDate>Thu, 15 Jul 2010 11:36:49 GMT</pubDate>
    <dc:creator>Leonid_K_Intel</dc:creator>
    <dc:date>2010-07-15T11:36:49Z</dc:date>
    <item>
      <title>Gray dots on white area in h264 encoder</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Gray-dots-on-white-area-in-h264-encoder/m-p/853775#M6851</link>
      <description>Hello everyone,&lt;BR /&gt;&lt;BR /&gt;I tried to encode absolutely white area with h264 encoder. As a result I had a gray dots on white area.&lt;BR /&gt;If broadcasting note absolutely white area then ok.&lt;BR /&gt;Does anybody have the same issue? How I can fix this problem?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Gennadii</description>
      <pubDate>Tue, 29 Dec 2009 07:53:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Gray-dots-on-white-area-in-h264-encoder/m-p/853775#M6851</guid>
      <dc:creator>gennadii_mog</dc:creator>
      <dc:date>2009-12-29T07:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Gray dots on white area in h264 encoder</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Gray-dots-on-white-area-in-h264-encoder/m-p/853776#M6852</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/413264"&gt;gennadii.mog&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;Hello everyone,&lt;BR /&gt;&lt;BR /&gt;I tried to encode absolutely white area with h264 encoder. As a result I had a gray dots on white area.&lt;BR /&gt;If broadcasting note absolutely white area then ok.&lt;BR /&gt;Does anybody have the same issue? How I can fix this problem?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Gennadii&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Can you post a screen shot?</description>
      <pubDate>Tue, 29 Dec 2009 13:50:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Gray-dots-on-white-area-in-h264-encoder/m-p/853776#M6852</guid>
      <dc:creator>Emmanuel_W_</dc:creator>
      <dc:date>2009-12-29T13:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Gray dots on white area in h264 encoder</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Gray-dots-on-white-area-in-h264-encoder/m-p/853777#M6853</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/404536"&gt;eweber&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;Can you post a screen shot?&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;In attachment you can find the encoded video and h264 params file.&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Dec 2009 15:23:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Gray-dots-on-white-area-in-h264-encoder/m-p/853777#M6853</guid>
      <dc:creator>gennadii_mog</dc:creator>
      <dc:date>2009-12-29T15:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Gray dots on white area in h264 encoder</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Gray-dots-on-white-area-in-h264-encoder/m-p/853778#M6854</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/413264"&gt;gennadii.mog&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;In attachment you can find the encoded video and h264 params file.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Hi Gennadii, &lt;BR /&gt;&lt;BR /&gt;Can you also provide the original YUV file? &lt;BR /&gt;&lt;BR /&gt;We noticed there are some gray background andwhite gridframes (as below)in the stream,are theythe gray dots you mean?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ying&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.intel.com/skins/images/7B13F55A7CE623EF42E69096FA81A3A1/2021_redesign/images/image_not_found.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 31 Dec 2009 02:53:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Gray-dots-on-white-area-in-h264-encoder/m-p/853778#M6854</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2009-12-31T02:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Gray dots on white area in h264 encoder</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Gray-dots-on-white-area-in-h264-encoder/m-p/853779#M6855</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/404536"&gt;eweber&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;Can you post a screen shot?&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
I have actually seen that bug in the past while encoding some powerpoint presentation.
&lt;DIV&gt;If I am not mistaking, this happens when encoding intra16 block made of solid white with a QP reaching 0.
&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;I have actually patch the encoder code to not allow QP of 0 for that reason and forgot about it.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;Emmanuel&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 01 Jan 2010 00:52:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Gray-dots-on-white-area-in-h264-encoder/m-p/853779#M6855</guid>
      <dc:creator>Emmanuel_W_</dc:creator>
      <dc:date>2010-01-01T00:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Gray dots on white area in h264 encoder</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Gray-dots-on-white-area-in-h264-encoder/m-p/853780#M6856</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/404199"&gt;Ying H (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;Hi Gennadii, &lt;BR /&gt;&lt;BR /&gt;Can you also provide the original YUV file? &lt;BR /&gt;&lt;BR /&gt;We noticed there are some gray background andwhite gridframes (as below)in the stream,are theythe gray dots you mean?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ying&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.intel.com/skins/images/7B13F55A7CE623EF42E69096FA81A3A1/2021_redesign/images/image_not_found.png" /&gt;&lt;/span&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;In archive you will find parameters file, example of input stream and encoder's application (win32 platform)&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Jan 2010 13:08:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Gray-dots-on-white-area-in-h264-encoder/m-p/853780#M6856</guid>
      <dc:creator>gennadii_mog</dc:creator>
      <dc:date>2010-01-04T13:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Gray dots on white area in h264 encoder</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Gray-dots-on-white-area-in-h264-encoder/m-p/853781#M6857</link>
      <description>&lt;P&gt;Dear Gennadii,&lt;/P&gt;
&lt;P&gt;I was able to reproduce this issue using your application. But when I tried to encode sample file you provided with your h264.par file using encoder that was built with IPP 6.1 Update 3 problem disappeared. I used IPP 6.1.3.047 and IPP samples 6.1.3.052.They can be downloaded from the Intel Registration Center:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://registrationcenter.intel.com/regcenter/register.aspx"&gt;https://registrationcenter.intel.com/regcenter/register.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Artem&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2010 05:38:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Gray-dots-on-white-area-in-h264-encoder/m-p/853781#M6857</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2010-01-26T05:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Gray dots on white area in h264 encoder</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Gray-dots-on-white-area-in-h264-encoder/m-p/853782#M6858</link>
      <description>&lt;P&gt;Any chance we can get more details on the problem.&lt;/P&gt;
&lt;P&gt;Is there a specific IPP function that has been fixed or is it a sample fix?&lt;/P&gt;
&lt;P&gt;I did some diff between the different versions of the samples but can't find anything obvious.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Emmanuel&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2010 17:21:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Gray-dots-on-white-area-in-h264-encoder/m-p/853782#M6858</guid>
      <dc:creator>Emmanuel_W_</dc:creator>
      <dc:date>2010-01-26T17:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Gray dots on white area in h264 encoder</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Gray-dots-on-white-area-in-h264-encoder/m-p/853783#M6859</link>
      <description>Hi Eweber,&lt;BR /&gt;&lt;BR /&gt;I'm suffering from the exactly same issue. Could you please let me know where I have to change codes in h.264 part of IPPcode samples to not allow QP of 0. I tried it with IPPsample codes 6.1.5.060, but I had a same result. &lt;BR /&gt;&lt;BR /&gt;FYI, if I take CABAC mode(1) in 'h264.par' with the test of umc_video_enc_con command, the white dots with gray background disappeared. However, in case of CAVLC mode, it happens again. Do you know why? &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I appreciate it so much.&lt;BR /&gt;&lt;BR /&gt;Choon</description>
      <pubDate>Thu, 08 Jul 2010 06:36:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Gray-dots-on-white-area-in-h264-encoder/m-p/853783#M6859</guid>
      <dc:creator>choonpark</dc:creator>
      <dc:date>2010-07-08T06:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Gray dots on white area in h264 encoder</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Gray-dots-on-white-area-in-h264-encoder/m-p/853784#M6860</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;I'm suffering from the exact same issue. &lt;BR /&gt;&lt;BR /&gt;BTW, if I take CABAC mode(1) in 'h264.par' with the test of umc_video_enc_con command, the white dots with gray background disappeared. However, in case of CAVLC mode, it happens again. Do you know why?&lt;BR /&gt;&lt;BR /&gt;I also tried with 7.0 beta code samples, but I've got a same result. I think that there is still a same issue in 7.0 code samples. &lt;BR /&gt;&lt;BR /&gt;Choon&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Jul 2010 06:39:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Gray-dots-on-white-area-in-h264-encoder/m-p/853784#M6860</guid>
      <dc:creator>choonpark</dc:creator>
      <dc:date>2010-07-08T06:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Gray dots on white area in h264 encoder</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Gray-dots-on-white-area-in-h264-encoder/m-p/853785#M6861</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you change the value of 'N of frames in between I fraems' in "h264.par" under 'profile_idc = 66(BASELISE PROFILE)' mode, 'umc_video_enc_con' does it well &amp;amp; right.. Is there anybody who knows why?&lt;BR /&gt;&lt;BR /&gt;..</description>
      <pubDate>Tue, 13 Jul 2010 22:28:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Gray-dots-on-white-area-in-h264-encoder/m-p/853785#M6861</guid>
      <dc:creator>choonpark</dc:creator>
      <dc:date>2010-07-13T22:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Gray dots on white area in h264 encoder</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Gray-dots-on-white-area-in-h264-encoder/m-p/853786#M6862</link>
      <description>Hi all,&lt;BR /&gt;There is a bug in the code. The reason is incorrect requantization when coeff is greater than maximum allowed level for CAVLC in baseleine profile.&lt;BR /&gt;&lt;BR /&gt;To avoid it don't use combination of CAVLC and baseline profile.&lt;BR /&gt;&lt;BR /&gt;To fix it go to&lt;SPAN style="font-size: x-small; color: #020002;"&gt;&lt;SPAN style="font-size: x-small; color: #020002;"&gt;&lt;P&gt;H264CoreEncoder_CEncAndRec16x16IntraMB function, in the beginning, under&lt;SPAN style="font-size: x-small; color: #0000ff;"&gt;&lt;SPAN style="font-size: x-small; color: #0000ff;"&gt; &lt;SPAN style="font-size: x-small; color: #0000ff;"&gt;&lt;SPAN style="font-size: x-small; color: #0000ff;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if &lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: x-small;"&gt;(!&lt;/SPAN&gt;&lt;SPAN style="font-size: x-small; color: #020002;"&gt;&lt;SPAN style="font-size: x-small; color: #020002;"&gt;transform_bypass&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: x-small;"&gt;) after &lt;SPAN style="font-size: x-small; color: #0000ff;"&gt;&lt;SPAN style="font-size: x-small; color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: x-small; color: #000000;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="font-size: x-small; color: #020002;"&gt;&lt;SPAN style="font-size: x-small; color: #020002;"&gt;core_enc&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: x-small; color: #000000;"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: x-small; color: #020002;"&gt;&lt;SPAN style="font-size: x-small; color: #020002;"&gt;m_info&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: x-small; color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: x-small; color: #020002;"&gt;&lt;SPAN style="font-size: x-small; color: #020002;"&gt;profile_idc&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: x-small;"&gt;&lt;SPAN style="color: #000000;"&gt; == 66...){&lt;BR /&gt;declare &lt;BR /&gt;COEFSTYPE buf[16]; &lt;BR /&gt;copy there pDCBuf (sizeof(buf)),&lt;BR /&gt;then inside do{ under &lt;SPAN style="font-size: x-small; color: #0000ff;"&gt;&lt;SPAN style="font-size: x-small; color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: x-small;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="font-size: x-small; color: #020002;"&gt;&lt;SPAN style="font-size: x-small; color: #020002;"&gt;CAVLC_overflow&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: x-small;"&gt; ){&lt;BR /&gt;copy back from buf to pDCBuf.&lt;BR /&gt;That's all.&lt;BR /&gt;&lt;BR /&gt;As you can see the bug is that in case of requantization already quantized coeffs were used instead of originals. The additional buffer needs to be used to preventoriginal source valuesbecause&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: x-small; color: #020002;"&gt;&lt;SPAN style="font-size: x-small; color: #020002;"&gt;ippiTransformQuantLumaDC_H264 works inplace.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN style="font-size: x-small;"&gt;&lt;SPAN style="font-size: x-small;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-size: x-small;"&gt;In umc_h264_ermb_tmpl.cpp.h -&amp;gt; line 1333&lt;BR /&gt;&lt;BR /&gt;if( core_enc-&amp;gt;m_info.profile_idc == 66 &amp;amp;&amp;amp; !core_enc-&amp;gt;m_info.entropy_coding_mode ){&lt;BR /&gt; bool CAVLC_overflow;&lt;BR /&gt; Ipp32s i;&lt;BR /&gt;*COEFFSTYPE buf[16];&lt;BR /&gt;* memcpy( buf,pDCBuf, 16*sizeof( COEFFSTYPE ));&lt;BR /&gt; do{&lt;BR /&gt; H264ENC_MAKE_NAME(ippiTransformQuantLumaDC_H264)(&lt;BR /&gt; pDCBuf,&lt;BR /&gt; pQBuf,&lt;BR /&gt; uMBQP,&lt;BR /&gt; &amp;amp;iNumCoeffs,&lt;BR /&gt; 1,&lt;BR /&gt; enc_single_scan[is_cur_mb_field],&lt;BR /&gt; &amp;amp;iLastCoeff,&lt;BR /&gt; NULL);&lt;BR /&gt; CAVLC_overflow = false;&lt;BR /&gt; for(i=0; i&amp;lt;16; i++)&lt;BR /&gt; if( pDCBuf&lt;I&gt; &amp;gt; MAX_CAVLC_LEVEL ){ CAVLC_overflow = true; break; }&lt;BR /&gt; if( CAVLC_overflow ){&lt;BR /&gt;* memcpy(pDCBuf, buf,16*sizeof( COEFFSTYPE ));&lt;BR /&gt; cur_mb.LocalMacroblockInfo-&amp;gt;QP++;&lt;BR /&gt; uMBQP = cur_mb.lumaQP = getLumaQP(cur_mb.LocalMacroblockInfo-&amp;gt;QP, core_enc-&amp;gt;m_PicParamSet.bit_depth_luma);&lt;BR /&gt; }&lt;BR /&gt; }while(CAVLC_overflow);&lt;BR /&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;</description>
      <pubDate>Thu, 15 Jul 2010 11:36:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Gray-dots-on-white-area-in-h264-encoder/m-p/853786#M6862</guid>
      <dc:creator>Leonid_K_Intel</dc:creator>
      <dc:date>2010-07-15T11:36:49Z</dc:date>
    </item>
  </channel>
</rss>

