[PATCH 1/2] windowscodecs: Add tests and initial implementation for DdsFrameDecode_CopyPixels().
14 Aug
2020
14 Aug
'20
6:12 a.m.
Signed-off-by: Ziqing Hui <zhui(a)codeweavers.com> --- dlls/windowscodecs/ddsformat.c | 57 ++++++++++++++++- dlls/windowscodecs/tests/ddsformat.c | 91 ++++++++++++++++++++++++++-- 2 files changed, 141 insertions(+), 7 deletions(-)
14 Aug
14 Aug
2:43 p.m.
We shouldn't use CoCreateInstance in our implementations, because some Windows programs and Wine components use WIC without initializing COM. This is done by calling WICCreateImagingFactory_Proxy. In this case, I would set a value containing the bpp when setting pixel_format. If you really need to query component info, you can use CreateComponentInfo directly. Of course, using CoCreateInstance and IWICImagingFactory_CreateComponentInfo in a test is completely fine.
1951
Age (days ago)
1951
Last active (days ago)
1 comments
2 participants
participants (2)
-
Esme Povirk (they/them) -
Ziqing Hui