Commit Graph

73 Commits

Author SHA1 Message Date
Dmitry Timoshkov 4cbea6a5c2 windowscodecs: Add support for 32bppRGB, 32bppRGBA and 32bppPRGBA to format converter.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-18 19:29:46 +01:00
Dmitry Timoshkov 603ac6ad21 windowscodecs: WICConvertBitmapSource should ask IWICFormatConverter::Initialize to use an optimized palette.
This matches Windows' behaviour, and makes a simple test application that
converts any WIC compatible RGB(A) source image to 8bppIndexed format work.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-05 17:47:32 +01:00
Dmitry Timoshkov 7533f251e3 windowscodecs: Implement IWICBitmapEncoderInfo::GetFileExtensions.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-06 17:00:33 +01:00
Dmitry Timoshkov ee6dd81e92 windowscodecs: Add support for palette image formats to BMP encoder.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-06 17:00:26 +01:00
Serge Gautherie 90518ebd2c windowscodecs: Fix an MSVC warning about get_decoder_info().
Signed-off-by: Serge Gautherie <winehq-git_serge_180711@gautherie.fr>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-13 17:20:43 +02:00
Francois Gouget e7cc7f347d windowscodecs: Make get_metadata_container() static.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-18 17:10:40 +02:00
Jacek Caban ca9d03a7ac windowscodecs: Directly use patterns stored in component info object in IWICMetadataReaderInfo::MatchesPattern implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-02 23:14:22 +02:00
Jacek Caban 8be7a1057e windowscodecs: Store metadata container patterns in meatadata reader info object.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-02 23:14:18 +02:00
Jacek Caban f5cdbc21cc windowscodecs: Store container formats in metadata component info object.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-02 23:14:15 +02:00
Jacek Caban 89642d9b08 windowscodecs: Directly use patterns stored in component info object in IWICBitmapDecoderInfo::MatchesPattern implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-02 23:14:10 +02:00
Jacek Caban 9db1206547 windowscodecs: Store bitmap patterns in bitmap decoder info object.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-02 23:14:07 +02:00
Nikolay Sivov aaea92198d wincodecs: Add a helper for GetDecoderInfo().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-02 20:47:11 +02:00
Jacek Caban 8a763d9e29 windowscodecs: Cache component info objects.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-30 18:22:14 +02:00
Jacek Caban 0c8dc2bfba windowscodecs: Use common base structure for component info implementations.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-30 18:22:11 +02:00
André Hentschel 376b0756f4 windowscodecs: Remove dead assignment (clang).
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-31 22:31:00 +01:00
Andrew Eikum 1b8e123465 windowscodecs: Stub IWICMetadataQueryReader.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-16 12:12:10 +09:00
Sebastian Lackner 40e364f0a6 windowscodecs: Distinguish interface pointer and implementation pointer. 2015-06-26 20:35:04 +09:00
Piotr Caban df9ec3c178 windowscodecs: Add helper to create internal COM classes without CoCreateInstance call if possible. 2015-03-06 20:31:35 +09:00
Vincent Povirk 499f32b317 windowscodecs: Implement MetadataReaderInfo_MatchesPattern. 2014-11-13 18:46:37 +09:00
Vincent Povirk 8891b8f815 windowscodecs: Implement MetadataReaderInfo_GetPatterns. 2014-11-13 18:46:35 +09:00
Vincent Povirk a8d08e2ad7 windowscodecs: Implement MetadataReaderInfo_GetContainerFormats. 2014-11-13 18:46:34 +09:00
Vincent Povirk e53e798aa7 windowscodecs: Treat missing GUID list keys as empty. 2014-11-13 16:31:50 +09:00
Frédéric Delanoy cdf809a6c0 windowscodecs: Use BOOL type where appropriate. 2013-10-07 13:32:06 +02:00
Andrew Talbot 81afb28818 windowscodecs: Avoid signed-unsigned integer comparisons. 2013-03-04 11:15:16 +01:00
Hans Leidekker 853273c98b windowscodecs: Implement IWICBitmapDecoderInfo::GetFileExtensions. 2012-11-13 16:54:54 +01:00
Dmitry Timoshkov b7efa00817 windowscodecs: Do not assume that vtable is the first element of the object, avoid not necessary casts. 2012-07-24 21:27:11 +02:00
Dmitry Timoshkov a9d0f8976c windowscodecs: Avoid casting IWICFormatConverter to IWICBitmapSource. 2012-07-16 15:21:46 +02:00
Vincent Povirk 5c4ed986c0 windowscodecs: Implement IWICBitmapCodecInfo::GetPixelFormats. 2012-07-03 12:02:00 +02:00
Dmitry Timoshkov 8dad043506 windowscodecs: Implement MetadataReaderInfo_DoesSupportPadding. 2012-07-03 12:01:53 +02:00
Dmitry Timoshkov 10f8978949 windowscodecs: Implement MetadataReaderInfo_DoesRequireFullStream. 2012-07-03 12:01:46 +02:00
Dmitry Timoshkov bae3f2afed windowscodecs: Implement MetadataReaderInfo_GetSpecVersion. 2012-07-03 12:01:40 +02:00
Dmitry Timoshkov 497e8840ca windowscodecs: Implement PixelFormatInfo_GetSpecVersion. 2012-07-03 12:01:34 +02:00
Dmitry Timoshkov 7c19137996 windowscodecs: Implement FormatConverterInfo_GetSpecVersion. 2012-07-03 12:01:27 +02:00
Dmitry Timoshkov 3dd73e90b5 windowscodecs: Implement BitmapEncoderInfo_GetSpecVersion. 2012-07-03 12:01:21 +02:00
Dmitry Timoshkov 67fc1a49e1 windowscodecs: Implement BitmapDecoderInfo_GetSpecVersion. 2012-07-03 12:01:06 +02:00
Vincent Povirk 12babdb7da windowscodecs: Implement IWICPixelFormatInfo2::SupportsTransparency. 2012-06-26 17:33:14 +02:00
Dmitry Timoshkov 58387fca69 windowscodecs: Implement MetadataReaderInfo_GetVendorGUID. 2012-06-26 12:25:33 +02:00
Vincent Povirk 9ceb1fc188 windowscodecs: Implement IWICPixelFormatInfo2::GetNumericRepresentation. 2012-06-25 18:12:55 +02:00
Vincent Povirk c8fea25a33 windowscodecs: Implement IWICPixelFormatInfo::GetFormatGUID. 2012-06-25 18:12:54 +02:00
Vincent Povirk 0648e09f3c windowscodecs: Implement IWICPixelFormatInfo::GetChannelMask. 2012-06-25 18:12:54 +02:00
Vincent Povirk 80f6890616 windowscodecs: Implement PixelFormatInfo_GetChannelCount. 2012-06-25 18:12:53 +02:00
Vincent Povirk 9dbd0833bc windowscodecs: Implement PixelFormatInfo_GetBitsPerPixel. 2012-06-25 18:12:53 +02:00
Dmitry Timoshkov ebef43e50d windowscodecs: Implement MetadataReaderInfo_GetVersion. 2012-06-21 08:41:04 +02:00
Dmitry Timoshkov ae610ef37e windowscodecs: Implement MetadataReaderInfo_GetFriendlyName. 2012-06-21 08:40:59 +02:00
Vincent Povirk 9f157e5bfa windowscodecs: Report missing component info strings as zero-length. 2012-06-20 19:25:50 +02:00
Dmitry Timoshkov 27743c81a9 windowscodecs: Implement MetadataHandler_GetMetadataHandlerInfo. 2012-06-20 11:12:01 +02:00
Dmitry Timoshkov 8802a9a84c windowscodecs: Add MetadataReaderInfo implementation. 2012-06-20 11:11:51 +02:00
Vincent Povirk d0f31cddfe windowscodecs: Implement IWICComponentInfo::GetVersion. 2012-06-19 11:10:18 +02:00
Vincent Povirk 7d19b39c2d windowscodecs: Implement IWICComponentInfo::GetVendorGUID. 2012-06-19 11:10:13 +02:00
Vincent Povirk d99740e8ea windowscodecs: Always report pixel formats are signed. 2012-06-19 11:10:07 +02:00