This format is used for video output with a depth of 10 bits per channel. Decoding at 10-bit quality is not currently supported, but this patch makes video playable.
--
v2: mfmediaengine: Support video output in format R10G10B10A2.
mfmediaengine/tests: Test format R10G10B10A2 in TransferVideoFrame().
https://gitlab.winehq.org/wine/wine/-/merge_requests/8531
These are the first steps towards code sharing, finally :)
Patch 4 is a bit big, but it's just copying code from various source files into a single source file. I can attempt to split if if that's preferable for review purposes.
--
v2: d3dx10: Use shared d3dx code in get_image_info when possible.
d3dx9: Move functions intended for code sharing into a separate source file.
d3dx9: Introduce d3dx_image_file_format enumeration.
https://gitlab.winehq.org/wine/wine/-/merge_requests/8490