<?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 Not so good colors while doing YUV420 to RGB conversion in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Not-so-good-colors-while-doing-YUV420-to-RGB-conversion/m-p/836939#M6010</link>
    <description>&lt;P&gt;Hi Aleksandar,&lt;/P&gt;

&lt;P&gt;If your source is DirectShow MEDIASUBTYPE_YV12, then you
just need to change the order or the pSrc[3] plans, by placing the Cb/U plan into pSrc[2], and Cr/V into pSrc[1].&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Resolution:&lt;/P&gt;

&lt;P&gt;YV12 is just like YUV420, it just differs in
the order of U and V plans&lt;/P&gt;

&lt;P&gt;YUV420 sequence: Y-&amp;gt;U-&amp;gt;V&lt;/P&gt;

&lt;P&gt;YV12 sequence: Y-V-&amp;gt;U&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Tamer Assad&lt;/P&gt;</description>
    <pubDate>Thu, 19 Aug 2010 17:32:45 GMT</pubDate>
    <dc:creator>Tamer_Assad</dc:creator>
    <dc:date>2010-08-19T17:32:45Z</dc:date>
    <item>
      <title>Not so good colors while doing YUV420 to RGB conversion</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Not-so-good-colors-while-doing-YUV420-to-RGB-conversion/m-p/836932#M6003</link>
      <description>Hi,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;we are usingippiYUV420ToBGR_8u_P3C3R to convert directshow media sample received from mpeg4 video to RGB image. That RGB image is then saved to AVI. Unfortunately, when I play that AVI in any other player, image is a bit "yellowish". When I convert it back with IPP function (ippiBGRToYUV420_8u...) it looks good. I think that ipp conversion works excellent, but it expects YUV420 to be in some other format than it is. I have read that there are two variants of YUV420: with range 16-235 and range 0-255...obviously IPP assumes different range than color space convertors in video players. Is there any way to overcome this problem. I have attached images where this problem can be seen (not the same sample, even not the same size, but you can notice the difference). Thanks!&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;IMG height="550" width="540" alt="Original image" src="http://i35.tinypic.com/fdud0p.png" /&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;IMG height="610" width="463" alt="converted" src="http://i34.tinypic.com/9vgosy.png" /&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 18 Aug 2010 10:12:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Not-so-good-colors-while-doing-YUV420-to-RGB-conversion/m-p/836932#M6003</guid>
      <dc:creator>vucetica</dc:creator>
      <dc:date>2010-08-18T10:12:45Z</dc:date>
    </item>
    <item>
      <title>Not so good colors while doing YUV420 to RGB conversion</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Not-so-good-colors-while-doing-YUV420-to-RGB-conversion/m-p/836933#M6004</link>
      <description>&lt;P&gt;Hi &lt;A href="https://community.intel.com/../profile/481844/"&gt;vucetica&lt;/A&gt;,&lt;BR /&gt;
&lt;BR /&gt;
YUV color format conversions standards follows certain mathematical formulas; similar
to YUV color space is the YCbCr color space, if this is the case, IPP covers
YCbCr conversions as well.&lt;BR /&gt;
&lt;BR /&gt;
Another possibility is the target RGB image, is it RGB24 or RGB32 that your AVI
encoder using? make sure you are calling the IPP function that correctly
produce your target RGB format.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Tamer Assad&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2010 18:25:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Not-so-good-colors-while-doing-YUV420-to-RGB-conversion/m-p/836933#M6004</guid>
      <dc:creator>Tamer_Assad</dc:creator>
      <dc:date>2010-08-18T18:25:41Z</dc:date>
    </item>
    <item>
      <title>Not so good colors while doing YUV420 to RGB conversion</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Not-so-good-colors-while-doing-YUV420-to-RGB-conversion/m-p/836934#M6005</link>
      <description>&lt;P&gt;Hi Vucetica, &lt;BR /&gt;&lt;BR /&gt;Yes, you may tryippiYCbCr420ToBGR_8u_P3C3R and see if there is change.&lt;BR /&gt;&lt;BR /&gt;Tamer, thanks a lot for thesuggestion.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ying&lt;BR /&gt;&lt;BR /&gt;P.s the IPP UMCsample audio-video-codecs\codec\color_space_converter\umc_color_space_conversion.cpp use it as well&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;switch (srcFormat) {&lt;BR /&gt;case YUV420:&lt;BR /&gt; switch (dstFormat) {&lt;BR /&gt; case RGB24:&lt;BR /&gt; status = ippiYCbCr420ToBGR_8u_P3C3R(pSrc, pSrcStep, pDst[0], pDstStep[0], srcSize);&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2010 01:52:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Not-so-good-colors-while-doing-YUV420-to-RGB-conversion/m-p/836934#M6005</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2010-08-19T01:52:03Z</dc:date>
    </item>
    <item>
      <title>Not so good colors while doing YUV420 to RGB conversion</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Not-so-good-colors-while-doing-YUV420-to-RGB-conversion/m-p/836935#M6006</link>
      <description>Guys, thanks for the responses. Unfortunately, ippiYCbCr420ToBGR_8u_P3C3R also gives different colors, but just in "different direction". Please, take a look at the given examples:&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Original:&lt;/DIV&gt;&lt;DIV&gt;&lt;IMG height="592" width="425" src="http://i38.tinypic.com/2i0yxrn.png" /&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Converted:&lt;/DIV&gt;&lt;DIV&gt;&lt;IMG height="393" width="296" src="http://i37.tinypic.com/2ywgwhl.png" /&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thanks!&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Aleksandar&lt;/DIV&gt;</description>
      <pubDate>Thu, 19 Aug 2010 07:17:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Not-so-good-colors-while-doing-YUV420-to-RGB-conversion/m-p/836935#M6006</guid>
      <dc:creator>vucetica</dc:creator>
      <dc:date>2010-08-19T07:17:25Z</dc:date>
    </item>
    <item>
      <title>Not so good colors while doing YUV420 to RGB conversion</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Not-so-good-colors-while-doing-YUV420-to-RGB-conversion/m-p/836936#M6007</link>
      <description>&lt;P&gt;Hi Aleksandar,&lt;BR /&gt;
&lt;BR /&gt;
Would you post an original YUV photo as well as its converted RGB alias, it
will help visualizing your problem.&lt;BR /&gt;
&lt;BR /&gt;
Are you passing BGR or RGB to the AVI encoder as it expects?&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Tamer&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2010 15:49:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Not-so-good-colors-while-doing-YUV420-to-RGB-conversion/m-p/836936#M6007</guid>
      <dc:creator>Tamer_Assad</dc:creator>
      <dc:date>2010-08-19T15:49:18Z</dc:date>
    </item>
    <item>
      <title>Not so good colors while doing YUV420 to RGB conversion</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Not-so-good-colors-while-doing-YUV420-to-RGB-conversion/m-p/836937#M6008</link>
      <description>&lt;P&gt;also, are you sure of the source photo format? is it YUV420(iYUV)
or is YV12?&lt;/P&gt;

&lt;P&gt;I strongly doubt that this is what it is about.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2010 15:55:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Not-so-good-colors-while-doing-YUV420-to-RGB-conversion/m-p/836937#M6008</guid>
      <dc:creator>Tamer_Assad</dc:creator>
      <dc:date>2010-08-19T15:55:22Z</dc:date>
    </item>
    <item>
      <title>Not so good colors while doing YUV420 to RGB conversion</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Not-so-good-colors-while-doing-YUV420-to-RGB-conversion/m-p/836938#M6009</link>
      <description>Thanks Tamer,&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;DIV&gt;I can not post image, since it is actually a video sample pushed from a Microsoft DTV-DVD decoder. It is possible that it is YV12 format, though...I can not try it now (environment is on my computer at work)...What should be done if format is YV12 indeed? Does IPP have support for YV12-&amp;gt;RGB24? (I'm sure about RGB format...changes in RGB-&amp;gt;BGR make a lot of difference). I really appreciate your help on this one.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Aleksandar&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 19 Aug 2010 16:35:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Not-so-good-colors-while-doing-YUV420-to-RGB-conversion/m-p/836938#M6009</guid>
      <dc:creator>vucetica</dc:creator>
      <dc:date>2010-08-19T16:35:31Z</dc:date>
    </item>
    <item>
      <title>Not so good colors while doing YUV420 to RGB conversion</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Not-so-good-colors-while-doing-YUV420-to-RGB-conversion/m-p/836939#M6010</link>
      <description>&lt;P&gt;Hi Aleksandar,&lt;/P&gt;

&lt;P&gt;If your source is DirectShow MEDIASUBTYPE_YV12, then you
just need to change the order or the pSrc[3] plans, by placing the Cb/U plan into pSrc[2], and Cr/V into pSrc[1].&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Resolution:&lt;/P&gt;

&lt;P&gt;YV12 is just like YUV420, it just differs in
the order of U and V plans&lt;/P&gt;

&lt;P&gt;YUV420 sequence: Y-&amp;gt;U-&amp;gt;V&lt;/P&gt;

&lt;P&gt;YV12 sequence: Y-V-&amp;gt;U&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Tamer Assad&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2010 17:32:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Not-so-good-colors-while-doing-YUV420-to-RGB-conversion/m-p/836939#M6010</guid>
      <dc:creator>Tamer_Assad</dc:creator>
      <dc:date>2010-08-19T17:32:45Z</dc:date>
    </item>
    <item>
      <title>Not so good colors while doing YUV420 to RGB conversion</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Not-so-good-colors-while-doing-YUV420-to-RGB-conversion/m-p/836940#M6011</link>
      <description>Thanks Tamer.&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;DIV&gt;Will try it out on Tuesday (back to work) and will be back with results. Still, do you think that there is a chance that something is wrong inside IPP functions interpreting differently YUV420 range (16-235 instead 0-255 or vice versa)?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Regards&lt;/DIV&gt;&lt;DIV&gt;Aleksandar&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 19 Aug 2010 18:58:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Not-so-good-colors-while-doing-YUV420-to-RGB-conversion/m-p/836940#M6011</guid>
      <dc:creator>vucetica</dc:creator>
      <dc:date>2010-08-19T18:58:11Z</dc:date>
    </item>
    <item>
      <title>Not so good colors while doing YUV420 to RGB conversion</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Not-so-good-colors-while-doing-YUV420-to-RGB-conversion/m-p/836941#M6012</link>
      <description>&lt;P&gt;Hi Aleksandar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that solution works out for you.&lt;/P&gt;

&lt;P&gt;IPP library is pretty well engineered; it has one of the
best image and color processing libraries, trust it.&lt;/P&gt;

&lt;P&gt;You may want to check the following references:&lt;/P&gt;

&lt;P&gt;IPP manual: IPP Image and Video Processing-&amp;gt;Image Color
Conversion-&amp;gt;Color Model Conversion-&amp;gt;RGBToYUV&lt;/P&gt;

&lt;P&gt;&lt;A href="http://fourcc.org/"&gt;http://fourcc.org/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://en.wikipedia.org/wiki/YCbCr"&gt;http://en.wikipedia.org/wiki/YCbCr&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://en.wikipedia.org/wiki/YUV"&gt;http://en.wikipedia.org/wiki/YUV&lt;/A&gt;&lt;/P&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Tamer Assad</description>
      <pubDate>Thu, 19 Aug 2010 19:27:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Not-so-good-colors-while-doing-YUV420-to-RGB-conversion/m-p/836941#M6012</guid>
      <dc:creator>Tamer_Assad</dc:creator>
      <dc:date>2010-08-19T19:27:15Z</dc:date>
    </item>
    <item>
      <title>Not so good colors while doing YUV420 to RGB conversion</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Not-so-good-colors-while-doing-YUV420-to-RGB-conversion/m-p/836942#M6013</link>
      <description>Tamer, thanks! This works great...I totally missed the fact that my input type isYV12. Thanks a lot.&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Aleksandar&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 Aug 2010 07:17:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Not-so-good-colors-while-doing-YUV420-to-RGB-conversion/m-p/836942#M6013</guid>
      <dc:creator>vucetica</dc:creator>
      <dc:date>2010-08-24T07:17:13Z</dc:date>
    </item>
    <item>
      <title>Not so good colors while doing YUV420 to RGB conversion</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Not-so-good-colors-while-doing-YUV420-to-RGB-conversion/m-p/836943#M6014</link>
      <description>Hi Aleksandar,&lt;BR /&gt;&lt;BR /&gt;Thank you for sharing the results.&lt;BR /&gt;&lt;BR /&gt;Ying, Many thanks toyou and all the IPP team.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Tamer Assad&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Aug 2010 17:19:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Not-so-good-colors-while-doing-YUV420-to-RGB-conversion/m-p/836943#M6014</guid>
      <dc:creator>Tamer_Assad</dc:creator>
      <dc:date>2010-08-24T17:19:37Z</dc:date>
    </item>
  </channel>
</rss>

