<?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: Possible MPEG4 conversion issue in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Possible-MPEG4-conversion-issue/m-p/894314#M11873</link>
    <description>&lt;DIV style="margin:0px;"&gt;Hi Greg, &lt;BR /&gt;&lt;BR /&gt;If you dump out the YUV420 data ( the output of ippiBGRToYCrCb420_8u_AC4P3R), and display it with some YUV player, can you find if the YUV data is corrected? &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Chao&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;BR /&gt;</description>
    <pubDate>Mon, 17 Aug 2009 03:11:25 GMT</pubDate>
    <dc:creator>Chao_Y_Intel</dc:creator>
    <dc:date>2009-08-17T03:11:25Z</dc:date>
    <item>
      <title>Possible MPEG4 conversion issue</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Possible-MPEG4-conversion-issue/m-p/894313#M11872</link>
      <description>Hey There,
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;I'm pretty new to working with this IPP stuff, though am running into one final problem. I'm actually correctly converting to MPEG4, though have one final problem. My Hue is off in the finally converted video, and most people/things appear in a shade of blue, and I can't seem to figure out quite why.&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;I'm having to jump color formats from RGB32 to YV12, and that's one potential area that my problem lies. I'm doing that with the final code.&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;PRE&gt;[cpp]pYV12Buffer = (BYTE*)malloc(InBufLength);

long lSrcPitch0 = m_iImageWidth * 4;
long lSrcPitch1 = 0;
long lSrcPitch2 = 0;

BYTE *pSrcBuffer0 = pInBuf;
BYTE *pSrcBuffer1 = NULL;
BYTE *pSrcBuffer2 = NULL;

long lDestPitch0 = m_iImageWidth;
long lDestPitch1 = m_iImageWidth/2;
long lDestPitch2 = m_iImageWidth/2;

BYTE *pDestBuffer0 = pYV12Buffer;
BYTE *pDestBuffer1 = pDestBuffer0 + (lDestPitch0 * abs(m_iImageHeight));
BYTE *pDestBuffer2 = pDestBuffer1 + ((lDestPitch1 * abs(m_iImageHeight))/2);

IppStatus status = ippStsNoErr;
....
else if (IsEqualGUID(m_InMT.subtype, MEDIASUBTYPE_RGB32))
{
	Ipp8u* pSrc[3] = {pSrcBuffer0, pSrcBuffer1, pSrcBuffer2};
	Ipp8u* pDest[3] = {pDestBuffer0, pDestBuffer1, pDestBuffer2};
	int destStep[3] = {lDestPitch0, lDestPitch1, lDestPitch2};
	IppiSize roiSize = { m_iImageWidth, abs(m_iImageHeight) };
	status = ippiBGRToYCrCb420_8u_AC4P3R(pSrcBuffer0, lSrcPitch0, pDest, destStep, roiSize);
}[/cpp]&lt;/PRE&gt;
&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;I'm thinking it either has to do with this conversion or the setup of my EncoderFilter. But I'm kinda lost. Any help would be appreciated. If you need a little bit more code from a different area, please ask and I'd be happy to help. I've updated the IPP libraries to be using the latest as well, 6.1 I believe, and that didn't help either.&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;Thanks in advance,&lt;/DIV&gt;
&lt;DIV&gt;- Greg&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 15 Aug 2009 01:35:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Possible-MPEG4-conversion-issue/m-p/894313#M11872</guid>
      <dc:creator>sionice</dc:creator>
      <dc:date>2009-08-15T01:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Possible MPEG4 conversion issue</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Possible-MPEG4-conversion-issue/m-p/894314#M11873</link>
      <description>&lt;DIV style="margin:0px;"&gt;Hi Greg, &lt;BR /&gt;&lt;BR /&gt;If you dump out the YUV420 data ( the output of ippiBGRToYCrCb420_8u_AC4P3R), and display it with some YUV player, can you find if the YUV data is corrected? &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Chao&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Aug 2009 03:11:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Possible-MPEG4-conversion-issue/m-p/894314#M11873</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2009-08-17T03:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Possible MPEG4 conversion issue</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Possible-MPEG4-conversion-issue/m-p/894315#M11874</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
If people appear as blue and you're using a BGRToYCrCb function, that means you have blue and red swapped. You can still use the BGR function to convert RGB data, but just swap the 1st and 3rd input channels.&lt;BR /&gt;&lt;BR /&gt;Ipp8u* pSrc[3] = {pSrcBuffer2, pSrcBuffer1, pSrcBuffer0}; &lt;BR /&gt;</description>
      <pubDate>Mon, 17 Aug 2009 05:30:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Possible-MPEG4-conversion-issue/m-p/894315#M11874</guid>
      <dc:creator>oxydius</dc:creator>
      <dc:date>2009-08-17T05:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Possible MPEG4 conversion issue</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Possible-MPEG4-conversion-issue/m-p/894316#M11875</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/428122"&gt;oxydius&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; If people appear as blue and you're using a BGRToYCrCb function, that means you have blue and red swapped. You can still use the BGR function to convert RGB data, but just swap the 1st and 3rd input channels.&lt;BR /&gt;&lt;BR /&gt;Ipp8u* pSrc[3] = {pSrcBuffer2, pSrcBuffer1, pSrcBuffer0}; &lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;Thank you both for your help...We had originally been using IPP v.4.X.X, and did not have the availability of the RGB functions. Upon switching to 6.1.1, I simply changed the function header to RGB instead of BGR and it worked flawlessly.&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;I was able to figure this out thanks to the comment above which was dead on. Appreciate the help. =)&lt;/DIV&gt;</description>
      <pubDate>Wed, 19 Aug 2009 16:09:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Possible-MPEG4-conversion-issue/m-p/894316#M11875</guid>
      <dc:creator>sionice</dc:creator>
      <dc:date>2009-08-19T16:09:59Z</dc:date>
    </item>
  </channel>
</rss>

