<?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: HELP! decoding H.264 bitstream from network in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/HELP-decoding-H-264-bitstream-from-network/m-p/862036#M7883</link>
    <description>&lt;P&gt;Hello, you might be interested in trying the latest version of IPP H.264 codec, from IPP v 5.2.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jun 2007 20:33:50 GMT</pubDate>
    <dc:creator>Vladimir_Dudnik</dc:creator>
    <dc:date>2007-06-11T20:33:50Z</dc:date>
    <item>
      <title>HELP! decoding H.264 bitstream from network</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/HELP-decoding-H-264-bitstream-from-network/m-p/862033#M7880</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;  I'm trying to decode H.264 bitstream from my network camera using H264Decoder. H.264 bitstream is ok and p_vidH264Decoder-&amp;gt;GetFram(&amp;amp;m_pInMediaData, &amp;amp;m_pOutVideoData) return OK,but but I can't get the decoded data from m_pOutVideoData. Could you take a look on this file ? Can you give me a sample code to decode H.264 bitstream? sorry for my english.&lt;/P&gt;
&lt;P&gt; Thank you!&lt;/P&gt;
&lt;P&gt;&lt;A href="mailto:goodluckxl2003@yahoo.com.cn"&gt;goodluckxl2003@yahoo.com.cn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;/********Decoding***********/&lt;/P&gt;
&lt;P&gt;if(!m_bInitialized)&lt;BR /&gt;{&lt;BR /&gt;if(bIFrame) InitilizeH264Decoder(pVideoData, nDataLen);&lt;BR /&gt;else return -4;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;int mSizeRemote = width * High;&lt;BR /&gt;Ipp8u *pY = NULL, *pU = NULL, *pV = NULL,*pBS=NULL;&lt;BR /&gt;pY1 = pU = pV = pBS = NULL;&lt;BR /&gt;pY1 = new Ipp8u[mSizeRemote];&lt;BR /&gt;pU1 = new Ipp8u[mSizeRemote];&lt;BR /&gt;pV1 = new Ipp8u[mSizeRemote];&lt;BR /&gt;pBS1 = new Ipp8u[2*mSizeRemote];&lt;/P&gt;
&lt;P&gt;m_pOutVideoData.SetDest(m_pOutBuf);&lt;BR /&gt;m_pOutVideoData.SetPitch(width *2);&lt;BR /&gt; &lt;BR /&gt;m_pOutVideoData.SetColorFormat(UMC::YUV420);&lt;BR /&gt;m_pOutVideoData.SetDataSize(High*width + (High/2)*(width /2) &lt;BR /&gt;+ (High/2)*(width /2));&lt;BR /&gt;m_pOutVideoData.SetVideoParameters(width , High,UMC::YUV420);&lt;/P&gt;
&lt;P&gt;Ipp8u *ptr=pBS1;&lt;BR /&gt;memcpy(ptr,pVideoData,nDataLen);&lt;BR /&gt;m_pInMediaData.SetBufferPointer((vm_byte*)ptr,nDataLen);&lt;BR /&gt;m_pInMediaData.SetDataSize(nDataLen);&lt;BR /&gt;int umcRes = p_vidH264Decoder-&amp;gt;GetFram(&amp;amp;m_pInMediaData, &amp;amp;m_pOutVideoData);&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;if(umcRes != UMC::UMC_OK &amp;amp;&amp;amp; umcRes != UMC::UMC_NOT_ENOUGH_DATA) return -2;&lt;BR /&gt;if(umcRes == UMC::UMC_OK) return 0;&lt;BR /&gt;if(umcRes == UMC::UMC_NOT_ENOUGH_DATA) return -1;&lt;BR /&gt; return 0;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;/********Init Decoder***********/ &lt;/P&gt;
&lt;P&gt;#define width 176&lt;/P&gt;
&lt;P&gt;#define High 144&lt;/P&gt;
&lt;P&gt;UMC::ColorSpaceConverter *ColorDecoder;&lt;BR /&gt;ColorDecoder = new UMC::ColorSpaceConverter();&lt;BR /&gt;UMC::VideoDecoderParams *m_pVideoDecoderParams;&lt;BR /&gt;UMC::VideoStreamInfo video_info;&lt;BR /&gt;m_pVideoDecoderParams=new UMC::VideoDecoderParams();&lt;BR /&gt;p_vidH264Decoder=new UMC::H264VideoDecoder();&lt;BR /&gt;&lt;BR /&gt;video_info.color_format = UMC::YUV420;&lt;BR /&gt;video_info.stream_type = UMC::H264_VIDEO;&lt;BR /&gt;video_info.stream_subtype = UMC::UNDEF_VIDEO_SUBTYPE;&lt;BR /&gt;video_info.clip_info.width = width ;&lt;BR /&gt;video_info.clip_info.height = High;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;UMC::ColorConversionInfo ColorInit;&lt;BR /&gt;ColorInit.FormatSource =UMC::YUV420;&lt;BR /&gt;ColorInit.SizeSource.width = video_info.clip_info.width;&lt;BR /&gt;ColorInit.SizeSource.height = video_info.clip_info.height;&lt;BR /&gt;ColorInit.FormatDest = UMC::YUV420;;&lt;BR /&gt;ColorInit.SizeDest.width = video_info.clip_info.width;&lt;BR /&gt;ColorInit.SizeDest.height = video_info.clip_info.height;&lt;BR /&gt;ColorInit.lFlags = 1;&lt;BR /&gt;ColorInit.lDeinterlace = 0;&lt;BR /&gt;ColorInit.lInterpolation = UMC::FLAG_CCNV_CONVERT;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;m_pInMediaData.SetBufferPointer((vm_byte*)pIFrameData,nFrameSize );&lt;BR /&gt;m_pVideoDecoderParams-&amp;gt;info = video_info;&lt;BR /&gt;m_pVideoDecoderParams-&amp;gt;cformat = UMC::YUV420;;&lt;BR /&gt;m_pVideoDecoderParams-&amp;gt;lFlags = UMC::FLAG_VDEC_UVMERGED | UMC::FLAG_VDEC_REORDER;&lt;BR /&gt;&amp;amp;nbs
p; m_pVideoDecoderParams-&amp;gt;lpConverter = ColorDecoder;&lt;BR /&gt;m_pVideoDecoderParams-&amp;gt;lpConvertInit = &amp;amp;ColorInit;&lt;BR /&gt;m_pVideoDecoderParams-&amp;gt;uiLimitThreads = 1;&lt;BR /&gt;m_pVideoDecoderParams-&amp;gt;m_pData = &amp;amp;m_pInMediaData;&lt;/P&gt;
&lt;P&gt;if (ippStaticInit() &amp;lt; ippStsNoErr) {&lt;BR /&gt;fprintf(stderr,"Error: Can't initialize ipp libs! 
");&lt;BR /&gt;return 5;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;UMC::Status status = p_vidH264Decoder-&amp;gt;Init(m_pVideoDecoderParams);&lt;BR /&gt;if (UMC::UMC_OK == status)&lt;BR /&gt;{&lt;BR /&gt;m_videoWidth = m_pVideoDecoderParams.info.clip_info.width;&lt;BR /&gt;m_videoHeight = m_pVideoDecoderParams.info.clip_info.height;&lt;BR /&gt;}&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 19 May 2007 03:55:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/HELP-decoding-H-264-bitstream-from-network/m-p/862033#M7880</guid>
      <dc:creator>goodluckxl2003</dc:creator>
      <dc:date>2007-05-19T03:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: HELP! decoding H.264 bitstream from network</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/HELP-decoding-H-264-bitstream-from-network/m-p/862034#M7881</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;we do not have a specific example to demonstrate H.264 decoding from network. But you might find it useful to take a look on IPP simple_player application, which supports several video decoders, including H.264.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2007 18:16:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/HELP-decoding-H-264-bitstream-from-network/m-p/862034#M7881</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2007-06-04T18:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: HELP! decoding H.264 bitstream from network</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/HELP-decoding-H-264-bitstream-from-network/m-p/862035#M7882</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt; I encode video using H.264 codec from camra, then wrap rtp and send via network to decoder. All works well while stream not broken.but when some frames can be lost. my application is crash in a method GetFrame of the decoder. why?&lt;/P&gt;
&lt;P&gt;thank you &lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2007 04:01:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/HELP-decoding-H-264-bitstream-from-network/m-p/862035#M7882</guid>
      <dc:creator>goodluckxl2003</dc:creator>
      <dc:date>2007-06-07T04:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: HELP! decoding H.264 bitstream from network</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/HELP-decoding-H-264-bitstream-from-network/m-p/862036#M7883</link>
      <description>&lt;P&gt;Hello, you might be interested in trying the latest version of IPP H.264 codec, from IPP v 5.2.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2007 20:33:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/HELP-decoding-H-264-bitstream-from-network/m-p/862036#M7883</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2007-06-11T20:33:50Z</dc:date>
    </item>
  </channel>
</rss>

