[PATCH 4/4] d3dx11: Implement D3DX11GetImageInfoFromMemory() using shared code.