<?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 Converting from pixel order YCbCr411 to BGR in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Converting-from-pixel-order-YCbCr411-to-BGR/m-p/1047787#M23940</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I'm new to using the IPP library and &amp;nbsp;I'm having trouble converting from pixel order YCbCr411 data to BGR format. &amp;nbsp;From reading the documentation, I know that I first need to convert the pixel order to planar format first before calling the&amp;nbsp;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;the library function&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;ippiYCbCr411ToBGR_8u_P3C4R to convert planar YCbCr411 data to BGR format. I&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;see that I can probably use the&amp;nbsp;ippiCopy_8u_C3P3R call to convert my image buffer from pixel order to planar order.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;For example, is this the following the correct approach?&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;int pDstStep[3];
Ipp8u* pFirst = ippiMalloc_8u_C1(srcCols, srcRows, &amp;amp;pDstStep[0]);
Ipp8u* pSecond = ippiMalloc_8u_C1(srcCols/4, srcRows, &amp;amp;pDstStep[1]);
Ipp8u* pThird = ippiMalloc_8u_C1(srcCols/4, srcRows, &amp;amp;pDstStep[2]);

Ipp8u* pDst[3] = { pFirst, pSecond, pThird };        
        
 ippiCopy_8u_C3P3R((Ipp8u*)pImageBuffer,
            pImageBufferStride,
            pDst,
            srcCols,
            imgSize);

// Convert from 3 plane YCbCr411 source image to BGR 
ippiYCbCr411ToBGR_8u_P3C4R(const unsigned char**)(&amp;amp;pDst),
            pDstStep,
            pDestBuffer,
            destStride,
            imgSize,
            0);&lt;/PRE&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 29 Apr 2015 23:12:09 GMT</pubDate>
    <dc:creator>Anonymous63</dc:creator>
    <dc:date>2015-04-29T23:12:09Z</dc:date>
    <item>
      <title>Converting from pixel order YCbCr411 to BGR</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Converting-from-pixel-order-YCbCr411-to-BGR/m-p/1047787#M23940</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I'm new to using the IPP library and &amp;nbsp;I'm having trouble converting from pixel order YCbCr411 data to BGR format. &amp;nbsp;From reading the documentation, I know that I first need to convert the pixel order to planar format first before calling the&amp;nbsp;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;the library function&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;ippiYCbCr411ToBGR_8u_P3C4R to convert planar YCbCr411 data to BGR format. I&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;see that I can probably use the&amp;nbsp;ippiCopy_8u_C3P3R call to convert my image buffer from pixel order to planar order.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;For example, is this the following the correct approach?&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;int pDstStep[3];
Ipp8u* pFirst = ippiMalloc_8u_C1(srcCols, srcRows, &amp;amp;pDstStep[0]);
Ipp8u* pSecond = ippiMalloc_8u_C1(srcCols/4, srcRows, &amp;amp;pDstStep[1]);
Ipp8u* pThird = ippiMalloc_8u_C1(srcCols/4, srcRows, &amp;amp;pDstStep[2]);

Ipp8u* pDst[3] = { pFirst, pSecond, pThird };        
        
 ippiCopy_8u_C3P3R((Ipp8u*)pImageBuffer,
            pImageBufferStride,
            pDst,
            srcCols,
            imgSize);

// Convert from 3 plane YCbCr411 source image to BGR 
ippiYCbCr411ToBGR_8u_P3C4R(const unsigned char**)(&amp;amp;pDst),
            pDstStep,
            pDestBuffer,
            destStride,
            imgSize,
            0);&lt;/PRE&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2015 23:12:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Converting-from-pixel-order-YCbCr411-to-BGR/m-p/1047787#M23940</guid>
      <dc:creator>Anonymous63</dc:creator>
      <dc:date>2015-04-29T23:12:09Z</dc:date>
    </item>
    <item>
      <title>Hello, </title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Converting-from-pixel-order-YCbCr411-to-BGR/m-p/1047788#M23941</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;This way looks fine. &amp;nbsp;One note here is the ippiYCbCr411ToBGR_8u_P3C4R includes one additional alpha channel for BGR data. If &amp;nbsp;it does has the alpha channel, it can use C3 format data.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
	Chao&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2015 03:50:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Converting-from-pixel-order-YCbCr411-to-BGR/m-p/1047788#M23941</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2015-04-30T03:50:35Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Converting-from-pixel-order-YCbCr411-to-BGR/m-p/1047789#M23942</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Thanks for your comments! &amp;nbsp;I do require two methods for the conversion one to support alpha channel and one without so that's why in the above example i was converting to C4 format. &amp;nbsp;&lt;/P&gt;

&lt;P&gt;However my output image is not correct. I can see repeats on the image which leads me to think perhaps I am not setting the parameters correctly when converting from pixel to planar format using the ippiCopy function. I'm not sure if the step size (forth parameter) is correct. &amp;nbsp; I've set the step size as width of the source image ... is this still correct when the input image buffer is in the YCbCr 4:1:1 format?&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 13.0080003738403px; line-height: 14.3088006973267px; background-color: rgb(248, 248, 248);"&gt;ippiCopy_8u_C3P3R(Ipp8u*)pImageBuffer,&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 13.0080003738403px; line-height: 14.3088006973267px;"&gt;pImageBufferStride,&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 13.0080003738403px; line-height: 14.3088006973267px; background-color: rgb(248, 248, 248);"&gt;pDst,&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 13.0080003738403px; line-height: 14.3088006973267px;"&gt;srcCols,&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 13.0080003738403px; line-height: 14.3088006973267px; background-color: rgb(248, 248, 248);"&gt;imgSize);&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Thanks for your help!&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2015 05:39:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Converting-from-pixel-order-YCbCr411-to-BGR/m-p/1047789#M23942</guid>
      <dc:creator>Anonymous63</dc:creator>
      <dc:date>2015-04-30T05:39:00Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Converting-from-pixel-order-YCbCr411-to-BGR/m-p/1047790#M23943</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;For the YCrCr 4:1:1 &amp;nbsp;pixel format, &amp;nbsp;could you provide the details on how the data is stored? &amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;For the Y data is stored in plan:&amp;nbsp;&lt;SPAN class="keyword" style="font-size: 13.0080003738403px; line-height: 19.5120010375977px; font-family: 'Courier New', Courier, monospace;"&gt;Y0&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-size: 13.0080003738403px; line-height: 19.5120010375977px; font-family: 'Courier New', Courier, monospace;"&gt;Y1&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-size: 13.0080003738403px; line-height: 19.5120010375977px; font-family: 'Courier New', Courier, monospace;"&gt;Y2...., &amp;nbsp;the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;&amp;nbsp;chrominance samples are interleaved:&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-size: 13.0080003738403px; line-height: 19.5120010375977px; font-family: 'Courier New', Courier, monospace;"&gt;Cb0&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-size: 13.0080003738403px; line-height: 19.5120010375977px; font-family: 'Courier New', Courier, monospace;"&gt;Cr0&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-size: 13.0080003738403px; line-height: 19.5120010375977px; font-family: 'Courier New', Courier, monospace;"&gt;Cb1&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-size: 13.0080003738403px; line-height: 19.5120010375977px; font-family: 'Courier New', Courier, monospace;"&gt;Cr1....&lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;Actually, you can check this function:&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;A href="https://software.intel.com/en-us/node/504046" target="_blank"&gt;https://software.intel.com/en-us/node/504046&lt;/A&gt;&lt;BR /&gt;
	&lt;BR /&gt;
	Thanks,&lt;BR /&gt;
	Chao&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2015 07:03:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Converting-from-pixel-order-YCbCr411-to-BGR/m-p/1047790#M23943</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2015-05-04T07:03:54Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Converting-from-pixel-order-YCbCr411-to-BGR/m-p/1047791#M23944</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;My pixel order data is stored in the format Y0, Y1, Y2, Y3, Cb0, Cr0, Y4, Y5, Y6, Y7, Cb1, Cr1 ... etc. &amp;nbsp;Are there any existing functions to convert this into planar format?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2015 15:09:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Converting-from-pixel-order-YCbCr411-to-BGR/m-p/1047791#M23944</guid>
      <dc:creator>Anonymous63</dc:creator>
      <dc:date>2015-05-04T15:09:20Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Converting-from-pixel-order-YCbCr411-to-BGR/m-p/1047792#M23945</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Unfortunately, &amp;nbsp;there is no functions to convert from your format to &lt;SPAN style="color: rgb(0, 0, 0); font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 13.0080003738403px; line-height: 14.3088006973267px;"&gt;YCbCr411&lt;/SPAN&gt; format.&lt;/P&gt;

&lt;P&gt;Sergey.&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2015 09:13:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Converting-from-pixel-order-YCbCr411-to-BGR/m-p/1047792#M23945</guid>
      <dc:creator>Sergey_P_Intel1</dc:creator>
      <dc:date>2015-05-05T09:13:47Z</dc:date>
    </item>
  </channel>
</rss>

