<?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 YUV data to BMP file in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/YUV-data-to-BMP-file/m-p/929306#M16480</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have the issue to save YUV 1920x1080 data that I received from the video stream (single frame) as bitmap file. The created bitmap image has three separate gray pictures. The size of full image is correct 1920x1080&lt;/P&gt;
&lt;P&gt;My sample code:&lt;/P&gt;
&lt;P&gt;CIppImage src(1920,1080,3,3);&lt;/P&gt;
&lt;P&gt;src.Attach(1920,1080,3,3, pFrameBuffer, 0);&lt;/P&gt;
&lt;P&gt;src.Color(IC_YCBCR);&lt;/P&gt;
&lt;P&gt;src.Sampling(IS_411);&lt;/P&gt;
&lt;P&gt;src.ComponentOrder(0);&lt;/P&gt;
&lt;P&gt;src.Format(IF_FIXED);&lt;/P&gt;
&lt;P&gt;PARAMS_BITMAP params_bmp;&lt;/P&gt;
&lt;P&gt;err = SaveImageBMP(src,params_bmp, fileout);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I tried to use SameImageBMP function from picnic and uic_transcoder_con samples - the same result.&lt;/P&gt;
&lt;P&gt;I am able to save YUV buffer as bitmap file using standard bitmap functionality with correct size and colors but I want to use Intel process to do this.&lt;/P&gt;
&lt;P&gt;Any suggestion what I did wrong.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thank you in advance,&lt;/P&gt;
&lt;P&gt;Sergey&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Oct 2012 16:01:24 GMT</pubDate>
    <dc:creator>stsybikov</dc:creator>
    <dc:date>2012-10-18T16:01:24Z</dc:date>
    <item>
      <title>YUV data to BMP file</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/YUV-data-to-BMP-file/m-p/929306#M16480</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have the issue to save YUV 1920x1080 data that I received from the video stream (single frame) as bitmap file. The created bitmap image has three separate gray pictures. The size of full image is correct 1920x1080&lt;/P&gt;
&lt;P&gt;My sample code:&lt;/P&gt;
&lt;P&gt;CIppImage src(1920,1080,3,3);&lt;/P&gt;
&lt;P&gt;src.Attach(1920,1080,3,3, pFrameBuffer, 0);&lt;/P&gt;
&lt;P&gt;src.Color(IC_YCBCR);&lt;/P&gt;
&lt;P&gt;src.Sampling(IS_411);&lt;/P&gt;
&lt;P&gt;src.ComponentOrder(0);&lt;/P&gt;
&lt;P&gt;src.Format(IF_FIXED);&lt;/P&gt;
&lt;P&gt;PARAMS_BITMAP params_bmp;&lt;/P&gt;
&lt;P&gt;err = SaveImageBMP(src,params_bmp, fileout);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I tried to use SameImageBMP function from picnic and uic_transcoder_con samples - the same result.&lt;/P&gt;
&lt;P&gt;I am able to save YUV buffer as bitmap file using standard bitmap functionality with correct size and colors but I want to use Intel process to do this.&lt;/P&gt;
&lt;P&gt;Any suggestion what I did wrong.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thank you in advance,&lt;/P&gt;
&lt;P&gt;Sergey&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2012 16:01:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/YUV-data-to-BMP-file/m-p/929306#M16480</guid>
      <dc:creator>stsybikov</dc:creator>
      <dc:date>2012-10-18T16:01:24Z</dc:date>
    </item>
    <item>
      <title>Hello,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/YUV-data-to-BMP-file/m-p/929307#M16481</link>
      <description>Hello, 
I checked the  SaveImageBMP() function code. I only take the following three color space: 
 ...
    switch(image.NChannels())
  {
    case 1: imageCn.ColorSpec().SetEnumColorSpace(Grayscale); break;
    case 3: imageCn.ColorSpec().SetEnumColorSpace(BGR);       break;
    case 4: imageCn.ColorSpec().SetEnumColorSpace(BGRA);      break;
    default:
      break;
  }

so, you need to covert the YUV data to BGR data first, than save to the BMP file. 

Thanks,
Chao</description>
      <pubDate>Fri, 19 Oct 2012 07:17:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/YUV-data-to-BMP-file/m-p/929307#M16481</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2012-10-19T07:17:55Z</dc:date>
    </item>
    <item>
      <title>Hi Chao:</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/YUV-data-to-BMP-file/m-p/929308#M16482</link>
      <description>Hi Chao:
OK I will try do that.

The other question. Do you know where video and image encoding have been processed when I used Intel API? On the Intel chip? Or on the PC RAM?

Thank you.

Sergey</description>
      <pubDate>Fri, 19 Oct 2012 13:39:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/YUV-data-to-BMP-file/m-p/929308#M16482</guid>
      <dc:creator>stsybikov</dc:creator>
      <dc:date>2012-10-19T13:39:49Z</dc:date>
    </item>
    <item>
      <title>Hi Sergey,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/YUV-data-to-BMP-file/m-p/929309#M16483</link>
      <description>Hi Sergey, 
I am not quite sure I understand the question. basically, Intel IPP is software encoder/decoder, so the encoding and decoding parts are processed by the CPUs.

Thanks,
Chao</description>
      <pubDate>Mon, 22 Oct 2012 06:32:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/YUV-data-to-BMP-file/m-p/929309#M16483</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2012-10-22T06:32:47Z</dc:date>
    </item>
  </channel>
</rss>

