d3dx9: Implement converting and copying surface data in D3DXLoadSurfaceFromMemory (review please)