Signed-off-by: Ziqing Hui zhui@codeweavers.com --- dlls/windowscodecs/ddsformat.c | 57 ++++++++++++++++- dlls/windowscodecs/tests/ddsformat.c | 91 ++++++++++++++++++++++++++-- 2 files changed, 141 insertions(+), 7 deletions(-)
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.