<?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 Display error with YV12 textures  in Graphics</title>
    <link>https://community.intel.com/t5/Graphics/Display-error-with-YV12-textures/m-p/1115603#M87643</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;-----------------------------------------&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;System Used: N/A&lt;BR /&gt;
	CPU SKU: i5&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;GPU SKU: HD4600&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Processor Line: N/A&lt;BR /&gt;
	System BIOS Version: N/A&lt;BR /&gt;
	CMOS settings: N/A&lt;BR /&gt;
	Graphics Driver Version:&amp;nbsp;10.18.14.4264&lt;BR /&gt;
	GOP/VBIOS Version: N/A&lt;BR /&gt;
	Operating System: windows&amp;nbsp;&lt;BR /&gt;
	OS Version:&amp;nbsp;8.1 64bit&lt;BR /&gt;
	API: Directx9&lt;BR /&gt;
	Occurs on non-Intel GPUs?: N/A&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Steps to Reproduce:&lt;BR /&gt;
	-------------------------------&lt;BR /&gt;
	1. Create a texture withe the following code:&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:cpp;" style="font-size: 13.008px; line-height: 19.512px;"&gt;g_pd3dDevice-&amp;gt;CreateTexture(uintWidth, uintHeight, 1, D3DUSAGE_DYNAMIC, (D3DFORMAT)MAKEFOURCC('Y', 'V', '1', '2'), D3DPOOL_DEFAULT, &amp;amp;g_pTexture, NULL);&lt;/PRE&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;&lt;BR /&gt;
	2. Copy into the texture(after locking, of course) some raw pixel data:&lt;/P&gt;

&lt;PRE class="brush:cpp;" style="font-size: 13.008px; line-height: 19.512px;"&gt;	D3DLOCKED_RECT d3dlr;
	if (FAILED(g_pTexture-&amp;gt;LockRect(0, &amp;amp;d3dlr, 0, D3DLOCK_DISCARD)))
		return;
	
	BYTE *pTxtBuffer; //texture buffer
	pTxtBuffer = static_cast&amp;lt;BYTE *&amp;gt;(d3dlr.pBits);
	
	memcpy(pTxtBuffer, buff, len);

	if (FAILED(g_pTexture-&amp;gt;UnlockRect(0)))
		return;&lt;/PRE&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;&lt;BR /&gt;
	3. Try to render it.&lt;BR /&gt;
	4.&lt;BR /&gt;
	5.&lt;BR /&gt;
	6.&lt;BR /&gt;
	7.&lt;BR /&gt;
	8.&lt;BR /&gt;
	9.&lt;BR /&gt;
	10.&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Expected Results:&lt;BR /&gt;
	-------------------------------&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;The image should display normally.&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Actual Results:&lt;BR /&gt;
	-------------------------------&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;The Y plane seems ok, but the color is red&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Additional Information:&lt;BR /&gt;
	-------------------------------&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;I'm aware that a color conversion is possible, but the d3d documentation states that if a driver accepts the MAKEFOURCC value, which it does,&amp;nbsp;it should work.&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;screenshot of a comparison is attached. On the left is via a YV12 texture on the right is via directshow graph.&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;&lt;BR /&gt;
	&lt;A href="https://community.intel.com/legacyfs/online/drupal_files/492329"&gt;492329&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Feb 2016 13:10:22 GMT</pubDate>
    <dc:creator>Vlad_Z_</dc:creator>
    <dc:date>2016-02-03T13:10:22Z</dc:date>
    <item>
      <title>Display error with YV12 textures</title>
      <link>https://community.intel.com/t5/Graphics/Display-error-with-YV12-textures/m-p/1115603#M87643</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;-----------------------------------------&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;System Used: N/A&lt;BR /&gt;
	CPU SKU: i5&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;GPU SKU: HD4600&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Processor Line: N/A&lt;BR /&gt;
	System BIOS Version: N/A&lt;BR /&gt;
	CMOS settings: N/A&lt;BR /&gt;
	Graphics Driver Version:&amp;nbsp;10.18.14.4264&lt;BR /&gt;
	GOP/VBIOS Version: N/A&lt;BR /&gt;
	Operating System: windows&amp;nbsp;&lt;BR /&gt;
	OS Version:&amp;nbsp;8.1 64bit&lt;BR /&gt;
	API: Directx9&lt;BR /&gt;
	Occurs on non-Intel GPUs?: N/A&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Steps to Reproduce:&lt;BR /&gt;
	-------------------------------&lt;BR /&gt;
	1. Create a texture withe the following code:&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:cpp;" style="font-size: 13.008px; line-height: 19.512px;"&gt;g_pd3dDevice-&amp;gt;CreateTexture(uintWidth, uintHeight, 1, D3DUSAGE_DYNAMIC, (D3DFORMAT)MAKEFOURCC('Y', 'V', '1', '2'), D3DPOOL_DEFAULT, &amp;amp;g_pTexture, NULL);&lt;/PRE&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;&lt;BR /&gt;
	2. Copy into the texture(after locking, of course) some raw pixel data:&lt;/P&gt;

&lt;PRE class="brush:cpp;" style="font-size: 13.008px; line-height: 19.512px;"&gt;	D3DLOCKED_RECT d3dlr;
	if (FAILED(g_pTexture-&amp;gt;LockRect(0, &amp;amp;d3dlr, 0, D3DLOCK_DISCARD)))
		return;
	
	BYTE *pTxtBuffer; //texture buffer
	pTxtBuffer = static_cast&amp;lt;BYTE *&amp;gt;(d3dlr.pBits);
	
	memcpy(pTxtBuffer, buff, len);

	if (FAILED(g_pTexture-&amp;gt;UnlockRect(0)))
		return;&lt;/PRE&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;&lt;BR /&gt;
	3. Try to render it.&lt;BR /&gt;
	4.&lt;BR /&gt;
	5.&lt;BR /&gt;
	6.&lt;BR /&gt;
	7.&lt;BR /&gt;
	8.&lt;BR /&gt;
	9.&lt;BR /&gt;
	10.&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Expected Results:&lt;BR /&gt;
	-------------------------------&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;The image should display normally.&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Actual Results:&lt;BR /&gt;
	-------------------------------&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;The Y plane seems ok, but the color is red&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Additional Information:&lt;BR /&gt;
	-------------------------------&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;I'm aware that a color conversion is possible, but the d3d documentation states that if a driver accepts the MAKEFOURCC value, which it does,&amp;nbsp;it should work.&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;screenshot of a comparison is attached. On the left is via a YV12 texture on the right is via directshow graph.&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;&lt;BR /&gt;
	&lt;A href="https://community.intel.com/legacyfs/online/drupal_files/492329"&gt;492329&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 13:10:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/Display-error-with-YV12-textures/m-p/1115603#M87643</guid>
      <dc:creator>Vlad_Z_</dc:creator>
      <dc:date>2016-02-03T13:10:22Z</dc:date>
    </item>
    <item>
      <title>Hi Vlad,</title>
      <link>https://community.intel.com/t5/Graphics/Display-error-with-YV12-textures/m-p/1115604#M87644</link>
      <description>&lt;P&gt;Hi Vlad,&lt;/P&gt;

&lt;P&gt;We will investigate and see what is going on. We may need some information I will let you know if we do.&lt;/P&gt;

&lt;P&gt;-Michael&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2016 21:10:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/Display-error-with-YV12-textures/m-p/1115604#M87644</guid>
      <dc:creator>Michael_C_Intel2</dc:creator>
      <dc:date>2016-02-04T21:10:41Z</dc:date>
    </item>
  </channel>
</rss>

