<?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 MPEG4 decoder IPP 5.2 beta - color conversion problem? in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG4-decoder-IPP-5-2-beta-color-conversion-problem/m-p/865896#M8329</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I'm trying to use IPP 5.2 beta with MPEG4. It seams to be working a lot faster in terms of encoding then IPP 5.1 but I need to conduct forther tests to confirm that. Currently I have a problem with decoding images. Decoder is initalized correctly, but when I display images on the screen it seams to have a problem with colors (attached screenshot and decoder code). Is is possible at all to decode strait to UMC::YUY2? I have testes the same solution under IPP 5.1 and it worked so ether I'm missing something or YUY2 is not supported in beta. Please, help me with this one.&lt;/P&gt;
&lt;P&gt;#define XDIM 720&lt;BR /&gt;#define YDIM 576&lt;/P&gt;
&lt;P&gt;Decoder constructor:&lt;BR /&gt;m_dataOut = new UMC::VideoData;&lt;BR /&gt;m_dataIn = new UMC::MediaData;&lt;/P&gt;
&lt;P&gt;m_dataOut-&amp;gt;Init( XDIM, YDIM, UMC::YUY2, 16);&lt;/P&gt;
&lt;P&gt;video_info.color_format = UMC::YUY2;&lt;BR /&gt;video_info.clip_info.width = XDIM;&lt;BR /&gt;video_info.clip_info.height = YDIM;&lt;/P&gt;
&lt;P&gt;m_mpeg4_Param.info = video_info;&lt;BR /&gt;m_mpeg4_Param.lFlags = 0;&lt;BR /&gt;m_mpeg4_Param.uiLimitThreads = 1;&lt;/P&gt;
&lt;P&gt;UMC::Status status = m_mpeg4_dec.Init( &amp;amp;m_mpeg4_Param );&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Decode method:&lt;BR /&gt;DWORD EvaDecode::DecodeFrame( SEvaDataFile &amp;amp;_dataFile, BYTE *_buffer )&lt;BR /&gt;{&lt;BR /&gt;// MPEG4 decode&lt;BR /&gt;BYTE *pY = _buffer;&lt;/P&gt;
&lt;P&gt;m_dataIn-&amp;gt;SetBufferPointer( _dataFile.data, _dataFile.dataSize );&lt;BR /&gt;m_dataIn-&amp;gt;SetDataSize( _dataFile.dataSize );&lt;/P&gt;
&lt;P&gt;m_dataOut-&amp;gt;SetPlanePointer( pY, 0 );&lt;BR /&gt;m_dataOut-&amp;gt;SetPlanePointer( NULL, 1 );&lt;BR /&gt;m_dataOut-&amp;gt;SetPlanePointer( NULL, 2 );&lt;BR /&gt;m_dataOut-&amp;gt;SetPlanePitch( XDIM*2, 0 );&lt;BR /&gt;m_dataOut-&amp;gt;SetPlanePitch( 0, 1 );&lt;BR /&gt;m_dataOut-&amp;gt;SetPlanePitch( 0, 2 );&lt;/P&gt;
&lt;P&gt;int mRetval = m_mpeg4_dec.GetFrame( m_dataIn, m_dataOut );&lt;/P&gt;
&lt;P&gt;return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Apr 2007 12:17:13 GMT</pubDate>
    <dc:creator>phoenixpl</dc:creator>
    <dc:date>2007-04-25T12:17:13Z</dc:date>
    <item>
      <title>MPEG4 decoder IPP 5.2 beta - color conversion problem?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG4-decoder-IPP-5-2-beta-color-conversion-problem/m-p/865896#M8329</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I'm trying to use IPP 5.2 beta with MPEG4. It seams to be working a lot faster in terms of encoding then IPP 5.1 but I need to conduct forther tests to confirm that. Currently I have a problem with decoding images. Decoder is initalized correctly, but when I display images on the screen it seams to have a problem with colors (attached screenshot and decoder code). Is is possible at all to decode strait to UMC::YUY2? I have testes the same solution under IPP 5.1 and it worked so ether I'm missing something or YUY2 is not supported in beta. Please, help me with this one.&lt;/P&gt;
&lt;P&gt;#define XDIM 720&lt;BR /&gt;#define YDIM 576&lt;/P&gt;
&lt;P&gt;Decoder constructor:&lt;BR /&gt;m_dataOut = new UMC::VideoData;&lt;BR /&gt;m_dataIn = new UMC::MediaData;&lt;/P&gt;
&lt;P&gt;m_dataOut-&amp;gt;Init( XDIM, YDIM, UMC::YUY2, 16);&lt;/P&gt;
&lt;P&gt;video_info.color_format = UMC::YUY2;&lt;BR /&gt;video_info.clip_info.width = XDIM;&lt;BR /&gt;video_info.clip_info.height = YDIM;&lt;/P&gt;
&lt;P&gt;m_mpeg4_Param.info = video_info;&lt;BR /&gt;m_mpeg4_Param.lFlags = 0;&lt;BR /&gt;m_mpeg4_Param.uiLimitThreads = 1;&lt;/P&gt;
&lt;P&gt;UMC::Status status = m_mpeg4_dec.Init( &amp;amp;m_mpeg4_Param );&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Decode method:&lt;BR /&gt;DWORD EvaDecode::DecodeFrame( SEvaDataFile &amp;amp;_dataFile, BYTE *_buffer )&lt;BR /&gt;{&lt;BR /&gt;// MPEG4 decode&lt;BR /&gt;BYTE *pY = _buffer;&lt;/P&gt;
&lt;P&gt;m_dataIn-&amp;gt;SetBufferPointer( _dataFile.data, _dataFile.dataSize );&lt;BR /&gt;m_dataIn-&amp;gt;SetDataSize( _dataFile.dataSize );&lt;/P&gt;
&lt;P&gt;m_dataOut-&amp;gt;SetPlanePointer( pY, 0 );&lt;BR /&gt;m_dataOut-&amp;gt;SetPlanePointer( NULL, 1 );&lt;BR /&gt;m_dataOut-&amp;gt;SetPlanePointer( NULL, 2 );&lt;BR /&gt;m_dataOut-&amp;gt;SetPlanePitch( XDIM*2, 0 );&lt;BR /&gt;m_dataOut-&amp;gt;SetPlanePitch( 0, 1 );&lt;BR /&gt;m_dataOut-&amp;gt;SetPlanePitch( 0, 2 );&lt;/P&gt;
&lt;P&gt;int mRetval = m_mpeg4_dec.GetFrame( m_dataIn, m_dataOut );&lt;/P&gt;
&lt;P&gt;return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2007 12:17:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG4-decoder-IPP-5-2-beta-color-conversion-problem/m-p/865896#M8329</guid>
      <dc:creator>phoenixpl</dc:creator>
      <dc:date>2007-04-25T12:17:13Z</dc:date>
    </item>
  </channel>
</rss>

