[PATCH v4 7/7] d3dx10: Use shared d3dx code in get_image_info when possible.