[PATCH v3 2/6] d3dx9: Move code for format conversion of a single pixel into a common helper function.