Permalink
Browse files

d3dtrace: Recognize YV12 format.

  • Loading branch information...
1 parent d01f837 commit d5422a4b96d43614507df2bb0c248d04bbe6683a @jrfonseca jrfonseca committed Feb 6, 2013
Showing with 6 additions and 0 deletions.
  1. +4 −0 dispatch/d3d9imports.hpp
  2. +1 −0 helpers/d3dcommonsize.hpp
  3. +1 −0 specs/d3d9types.py
View
@@ -73,6 +73,10 @@
#define D3DFMT_NV12 ((D3DFORMAT)MAKEFOURCC('N','V','1','2'))
#endif
+#ifndef D3DFMT_YV12
+#define D3DFMT_YV12 ((D3DFORMAT)MAKEFOURCC('Y','V','1','2'))
+#endif
+
#ifndef D3DFMT_RAWZ
#define D3DFMT_RAWZ ((D3DFORMAT)MAKEFOURCC('R','A','W','Z'))
#endif
@@ -163,6 +163,7 @@ _getLockSize(D3DFORMAT Format, UINT Width, UINT Height, INT RowPitch, UINT Depth
#if DIRECT3D_VERSION >= 0x900
case D3DFMT_NV12:
+ case D3DFMT_YV12:
return (Height + ((Height + 1) / 2)) * RowPitch;
case D3DFMT_NULL:
View
@@ -728,6 +728,7 @@
"D3DFMT_INTZ",
"D3DFMT_NULL",
"D3DFMT_NV12",
+ "D3DFMT_YV12",
"D3DFMT_RAWZ",
])

0 comments on commit d5422a4

Please sign in to comment.