mfreadwrite/reader: Create and append a converter transform.
commitea4b9bafb2f18ae0805c166e49bbb03641fc066c
authorRémi Bernon <rbernon@codeweavers.com>
Wed, 28 Feb 2024 15:17:47 +0000 (28 16:17 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 1 Mar 2024 22:14:22 +0000 (1 23:14 +0100)
tree2af5d87e389d5d5ffbf3a85127860cd160376c4a
parentd6c9ac94d2fc92d86639e74699ef470b1d8a9861
mfreadwrite/reader: Create and append a converter transform.

This enables advanced color conversion in all cases, and thus allows
NV12 -> RGB32 conversion even when MF_SOURCE_READER_ENABLE_ADVANCED_VIDEO_PROCESSING
is not set. This should be harmless and makes the code simpler as we
can simply append a VideoProcessor transform in all cases.

The tests todos is tweaked to reflect cases where a single processor
is used, which outputs slightly different attributes to when it is
connected to an upstream decoder. Ultimately we could try to match
native here, but it shouldn't matter too much in the meantime.
dlls/mfreadwrite/reader.c
dlls/mfreadwrite/tests/mfplat.c