[PATCH v2 2/2] d3dx10: Implement D3DX10GetImageInfoFromMemory().