On Wed Nov 22 13:29:49 2023 +0000, Nikolay Sivov wrote:
I don't know if it's a typo or not, but is there a way to check? When converting does D3DFMT_A2R10G10B10 produce MFVideoFormat_A2R10G10B10? We should obviously follow. The note is fine, but I don't think it's a bug really.
`MFInitVideoFormat_RGB` doesn't do any remapping, and `D3DFMT_A2R10G10B10` (or `D3DFMT_A2B10G10R10`) keep their value in the resulting GUID. Only the constant is named differently, and there is no MFVideoFormat_A2B10G10R10 in the SDK - probably because there is also no equivalent DXGI format.
I'll add more tests about it and rename the internal GUID the following way:
* (public, existing) MFVideoFormat_A2R10G10B10 / D3DFMT_A2B10G10R10 / MEDIASUBTYPE_A2B10G10R10 * (internal, added) MFVideoFormat_A2B10G10R10 / D3DFMT_A2R10G10B10 / MEDIASUBTYPE_A2R10G10B10