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
Hans Leidekker
1184f9d969
windowscodecs: Implement WICCreateBitmapFromSectionEx.
...
Based on a patch by Dmitry Timoshkov.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-22 18:15:06 +01:00
Nikolay Sivov
f46235ce4f
wincodecs: Use bottom-up orientation in BMP encoder.
...
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-03-13 22:38:59 +01:00
Nikolay Sivov
c30bf0b6e9
wincodecs/tests: Test headers written by BMP encoder.
...
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-03-12 17:58:39 +01:00
Nikolay Sivov
e21b74c2ef
wincodecs/tests: Move gif decoder test to appropriate file.
...
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-03-12 17:58:36 +01:00
Dmitry Timoshkov
d2cd9a842e
windowscodecs: Fix stride calculation in JPEG decoder.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-06 15:46:09 -06:00
Nikolay Sivov
44f787ed92
wincodecs/tests: Add a test for GetDecoderInfo() returned instance.
...
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-02-26 18:47:33 +01:00
Nikolay Sivov
d3e9c92ed6
wincodecs/tests: Run decoder info tests for all decoders.
...
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-02-26 18:47:33 +01:00
Anton Romanov
343c58890b
windowscodecs: Fix data corruption for Adobe CMYK JPEGs.
...
Signed-off-by: Anton Romanov <theli.ua@gmail.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-26 18:47:33 +01:00
Nikolay Sivov
afe89eaec1
wincodecs: Create default encoder options for BMP encoder.
...
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-02-16 19:04:24 +01:00
Joachim Priesner
1c65b993df
windowscodecs/tiffformat: Fix TiffFrameDecode_GetResolution, add test.
...
The behavior for the invalid resolution case is different for Windows XP
and Server 2003. Implement the behavior of current Windows versions, but
allow the old behavior in the test.
Signed-off-by: Joachim Priesner <joachim.priesner@web.de>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-16 19:04:08 +01:00
Nikolay Sivov
0be89601f5
wincodecs: Encoder options are optional for CreateNewFrame().
...
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-02-05 18:44:54 +01:00
Nikolay Sivov
93afd254bb
wincodecs: Use static array for property bag descriptions.
...
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-02-05 18:44:52 +01:00
Dmitry Timoshkov
7f525fbe43
windowscodecs/tests: Add some tests for encoding 1bpp/8bpp images with a palette.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-18 09:23:17 +02:00
Dmitry Timoshkov
14cca6ee65
windowscodecs: Add support for palette image formats to PNG encoder.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-18 09:23:10 +02:00
Dmitry Timoshkov
52672282b8
windowscodecs: Fix IWICBitmapEncoder::SetPalette for a not initialized case in TIFF encoder.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-14 09:04:47 +02:00
Dmitry Timoshkov
e598538930
windowscodecs: Implement IWICBitmapFrameEncode::SetPalette in the TIFF encoder.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-14 09:04:39 +02:00
Dmitry Timoshkov
730f2bd132
windowscodecs: Implement IWICBitmapDecoder::CopyPalette in TIFF decoder.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-14 09:04:36 +02:00
Dmitry Timoshkov
f515878cad
windowscodecs: Implement IWICBitmapFrameEncode::SetPalette in BMP encoder.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-14 09:04:32 +02:00
Dmitry Timoshkov
02870de541
windowscodecs: Fix IWICBitmapEncoder::SetPalette for a not initialized case in BMP encoder.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-14 09:04:26 +02:00
Dmitry Timoshkov
3bd1b57039
windowscodecs: Fix IWICBitmapEncoder::SetPalette for a not initialized case in JPEG encoder.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-12 10:26:53 +02:00
Dmitry Timoshkov
a901fa9dc3
windowscodecs: Implement IWICBitmapFrameEncode::SetPalette in JPEG encoder.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-11 19:11:11 +02:00
Vincent Povirk
66b126b675
windowscodecs: Generate a palette for color-keyed grayscale PNG's.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-08 16:23:14 +02:00
Dmitry Timoshkov
9991e4f2ae
windowscodecs/tests: Add more tests for loading PNG images in various color formats.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-08 16:23:14 +02:00
Dmitry Timoshkov
c87e06bb92
windowscodecs/tests: Make create_decoder() return an error code in PNG tests.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-08 16:23:14 +02:00
Dmitry Timoshkov
eb3eff90be
windowscodecs: Fix IWICBitmapEncoder::SetPalette for a not initialized case in PNG encoder.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-06 09:04:09 +02:00
Dmitry Timoshkov
2ea95f895b
windowscodecs: Implement IWICBitmapDecoder::CopyPalette in PNG decoder.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-06 09:04:06 +02:00
Anton Romanov
267bca1f3b
windowscodecs: PNGEncoder: Return 32bppRGBA pixel format by default.
...
Signed-off-by: Anton Romanov <theli.ua@gmail.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-24 08:35:22 +09:00
Dmitry Timoshkov
1dbc9fcb9c
windowscodecs/tests: Add a test for loading PNG grayscale images.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-20 09:21:46 +09:00
Vincent Povirk
8bae21302f
windowscodecs: Fix 32bppGrayFloat to 8bppGray conversion.
...
Based on Dmitry Timoshkov's patch.
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-16 11:05:45 +09:00
Zebediah Figura
8648aaf86d
wincodecs: Add encoder options for JPEG.
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-31 10:14:09 +02:00
Nikolay Sivov
9bbbd2a905
windowscodecs/tests: Remove unused type declarations.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-24 20:05:32 +02:00
Nikolay Sivov
bf3b3312fe
windowscodecs/tests: Fix a leak in tests (Valgrind).
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-24 20:05:30 +02:00
Alistair Leslie-Hughes
084fa63e60
widl: Only generate Proxy Stubs when functions have the call_as attribute.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-11 19:48:25 +02:00
Francois Gouget
5d8a1cf378
windowscodecs/tests: A spelling fix in an ok() message.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-10 20:51:11 +02:00
Dmitry Timoshkov
2eeef78e8d
windowscodecs: Fix a memory leak.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-29 20:04:17 +02:00
Dmitry Timoshkov
ad76bbec22
windowscodecs/tests: Add more tests for IWICMetadataQueryReader::GetMetadataByName.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-27 10:32:17 +02:00
Dmitry Timoshkov
c092f1a45a
windowscodecs: Add some tests for IWICMetadataQueryReader.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-27 08:43:17 +02:00
Dmitry Timoshkov
2271ba8713
windowscodecs: Add initial implementation of IWICMetadataQueryReader::GetMetadataByName.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-27 08:43:15 +02:00
Dmitry Timoshkov
d3280c867b
windowscodecs: Implement IWICBitmapDecoder::GetMetadataQueryReader in the GIF decoder.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-26 08:53:06 +02:00
Dmitry Timoshkov
c94bf3cf27
windowscodecs: Implement IWICMetadataQueryReader::GetLocation.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-26 08:53:04 +02:00
Dmitry Timoshkov
3059668de3
windowscodecs: Use PropVariantCompareEx to compare metadata items.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-26 08:53:02 +02:00
Dmitry Timoshkov
f25890357b
windowscodecs: Implement IWICMetadataQueryReader::GetContainerFormat.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-21 23:21:16 +02:00
Dmitry Timoshkov
714175e144
windowscodecs: Implement WICMapSchemaToName.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-21 23:21:16 +02:00
Dmitry Timoshkov
e1eed88401
windowscodecs: Implement WICMapShortNameToGuid.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-21 23:21:16 +02:00
Dmitry Timoshkov
37ae4f24c0
windowscodecs: Implement WICMapGuidToShortName.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-21 23:21:16 +02:00
Alistair Leslie-Hughes
cf1269a525
windowscodecs: Register WICImagingFactory2 interface.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-12 18:38:30 +02:00
Dmitry Timoshkov
35483da628
include: Fix typos in WICPersistOptions enumeration names.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-12 16:10:45 +02:00
Viktor Semykin
2fcfe35e88
windowscodecs/tests: Test with SHCreateMemStream.
...
SHCreateMemStream takes less code to inialize and is preferred over
CreateStreamOnHGlobal according to documentation.
Signed-off-by: Viktor Semykin <thesame.ml@gmail.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-03 12:00:01 +02:00
Viktor Semykin
2d5c861f75
windowscodecs: Fixed loading png from streams.
...
Png decoder was making one extra seek after it met IEND chunk. This led to
crashes of some software.
Signed-off-by: Viktor Semykin <thesame.ml@gmail.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-03 11:59:34 +02:00
Viktor Semykin
5ada4e947e
windowscodecs/tests: Test for png codec seeking too far.
...
Signed-off-by: Viktor Semykin <thesame.ml@gmail.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-03 11:59:32 +02:00
André Hentschel
fdccccb14e
windowscodecs: Fix IWICImagingFactory_CreateDecoderFromFileHandle_Proxy spec file entry.
...
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
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
Nikolay Sivov
981b97948c
windowscodecs/tests: Test to show that SetPalette() does not keep IWICPalette reference, for PNG encoder.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-29 10:16:11 +01:00
Dmitry Timoshkov
8e694423f4
windowscodecs: Implement IWICBitmapFrameEncode::SetPalette in PNG encoder.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-29 10:16:09 +01:00
Huw Davies
a531ade2fd
windowscodecs: Fix typo in 2 bpp conversion.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-09 15:55:05 +01:00
Nikolay Sivov
b0d04e69bb
wincodecs: Simplify property name allocation.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-28 22:27:52 +01:00
Nikolay Sivov
5107ef7566
wincodecs: Implement FilterOption property for PNG encoder.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-28 22:27:52 +01:00
Nikolay Sivov
62830143d1
wincodecs: Trigger conversion to target format in WriteSource().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-28 18:57:47 +01:00
Nikolay Sivov
02dbe712ee
wincodecs: Remove stub message for implemented methods.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codewevers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-26 15:20:59 +02:00
Dmitry Timoshkov
fa36f75c68
windowscodecs: Add support for converting 32bpp grayscale float to 24bpp BGR format.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-16 22:40:24 +09:00
Dmitry Timoshkov
1196c3a2a2
windowscodecs: Add support for converting to 8bpp grayscale format.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-16 22:40:24 +09:00
Dmitry Timoshkov
8836ed61aa
windowscodecs: Add support for 32bppGrayFloat format.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-16 22:40:24 +09:00
Vincent Povirk
82f82f6917
windowscodecs/tests: Add a helper function for comparing bits.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-16 22:40:24 +09:00
Dmitry Timoshkov
7431380e38
windowscodecs: Avoid extra conversion step BGR->RGB when converting 32bpp BGRA to 24bpp RGB.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-16 22:40:24 +09:00
Michael Stefaniuc
da5dfe7e80
windowscodecs: Remove a redundant NULL check before HeapFree().
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-09 11:03:42 +09:00
Vincent Povirk
2e16630a61
windowscodecs: Implement png cHRM metadata reader.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-17 00:09:18 +09:00
Vincent Povirk
9b27a178a9
windowscodecs: Add test for png cHRM metadata.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-17 00:09:18 +09:00
Francois Gouget
ebaa5ac767
windowscodecs/tests: A spelling fix for a converter ok() message.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-19 13:44:25 +09:00
Francois Gouget
a2f285bf7e
windowscodecs: Fix spelling of a few private struct names.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-18 15:16:18 +09:00
Dmitry Timoshkov
2f74d91d87
windowscodecs: Allocate correct amount of memory for PNG image data.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-15 12:32:52 +09:00
Dmitry Timoshkov
aaddf1365a
windowscodecs: Fix a copy/paste mistake.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-08 00:56:39 +09:00
Andrew Eikum
70a643d056
windowscodecs: Stub IMetadataBlockReader for jpegformat.
...
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:12 +09: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
Frédéric Delanoy
e8704b6b8d
windowscodecs/tests: Use todo_wine_if() in tests.
...
Signed-off-by: Frédéric Delanoy <frederic.delanoy@gmail.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-25 13:32:13 +09:00
André Hentschel
782666be0d
windowscodecs/tests: Use todo_wine_if() in tests.
...
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-23 20:22:22 +09:00
Aric Stewart
af6413aaeb
windowscodecs/tests: Handle failure to create TIFF decoder.
...
Signed-off-by: Aric Stewart <aric@codeweavers.com>
2015-10-01 16:34:26 +09:00
Aric Stewart
dc3bf7d85b
windowscodecs/tests: Handle failure to create PNG decoder.
...
Signed-off-by: Aric Stewart <aric@codeweavers.com>
2015-10-01 16:34:23 +09:00
Andrey Gusev
5cdcd4493f
Assorted spelling and typos fixes.
2015-08-18 15:00:13 +09:00
Dmitry Timoshkov
7eaff17786
windowscodecs: Properly handle empty GIF extension blocks.
2015-07-15 23:18:39 +09:00
Dmitry Timoshkov
d1fde625a3
windowscodecs: Don't fail to decode GIF if an image has been already loaded.
2015-07-14 14:42:37 +09:00
Dmitry Timoshkov
51a3bc2d9d
windowscodecs/tests: Add some tests for loading truncated GIF images.
2015-07-14 14:42:27 +09:00
Dmitry Timoshkov
d57b87c0f3
windowscodecs: Add support for 8bpp grayscale TIFF with 8bpp alpha.
2015-07-14 14:41:27 +09:00
Sebastian Lackner
e5f57e6342
windowscodecs: Fix build failure on OSX.
2015-07-01 15:12:44 +09:00
Sebastian Lackner
863f432a7d
windowscodecs: Distinguish interface and implementation pointer for IcnsEncoder.
2015-06-30 14:42:19 +09:00
Sebastian Lackner
40e364f0a6
windowscodecs: Distinguish interface pointer and implementation pointer.
2015-06-26 20:35:04 +09:00
Sebastian Lackner
c0f5d024ca
windowscodecs/tests: Fix test condition which is always true.
2015-06-25 14:29:39 +09:00
Vincent Povirk
27ae589d2a
windowscodecs: Fix crash when PNG decoder is freed without successful init.
2015-04-13 15:22:41 +09:00
Francois Gouget
af4324e433
windowscodecs/tests: Fix compilation on systems that don't support nameless unions.
2015-04-13 15:04:36 +09:00
Vincent Povirk
131a7b03e8
windowscodecs: Implement PNG gAMA metadata reader.
2015-04-07 15:09:54 +09:00
Vincent Povirk
5b893587bd
windowscodecs: Add test for PNG gAMA metadata.
2015-04-07 15:09:47 +09:00
Nikolay Sivov
de6649ede0
wincodecs: Use valid bitmap cache option.
2015-04-02 23:14:36 +09:00
Sergey Isakov
98186d42a5
windowscodecs: Fix wrong pointer to formal parameter.
2015-04-01 22:34:20 +09:00
Vincent Povirk
f2f5cd831b
windowscodecs: Implement PngDecoder_Block_GetReaderByIndex.
2015-03-31 00:04:43 +09:00
Vincent Povirk
43c97b871f
windowscodecs: Implement PngDecoder_Block_GetCount.
2015-03-31 00:04:43 +09:00
Michael Stefaniuc
a21f30c23e
windowscodecs/tests: Actually test the return of IWICBitmap_GetSize().
2015-03-30 19:10:29 +09:00
Francois Gouget
0d80651e95
windowscodecs: Remove unneeded NONAMELESSXXX directives.
2015-03-27 00:12:37 +09:00
Piotr Caban
02d4c6b5ac
windowscodecs: Show that WIC doesn't do GIF frames composition.
2015-03-13 21:52:51 +09:00
Piotr Caban
531992c760
windowscodecs: Store stream reference in png decoder.
2015-03-13 21:52:43 +09:00
Piotr Caban
b681123385
windowscodecs: Store stream reference in gif decoder.
2015-03-13 21:52:41 +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
Piotr Caban
f623042fb9
windowscodecs: Make it possible to use MetadataReaders when COM was not initialized.
2015-03-05 21:28:47 +09:00
Piotr Caban
ca5c0f6b14
windowscodecs: Initialize unused part of metadata PROPVARIANT to 0.
2015-03-05 21:28:40 +09:00
Michael Stefaniuc
c2eb206f99
windowscodecs/tests: Actually test some return values (PVS-Studio).
2015-03-04 21:50:44 +09:00
Christian Costa
cc95915a3c
windowscodecs: Fix init of LONGLONG variable with a negative value in TGA decoder.
2015-03-04 21:50:37 +09:00
André Hentschel
ef9562a42f
windowscodecs: Remove unused strings (Clang).
2014-12-04 14:03:20 +01:00
Vincent Povirk
fa455f594b
windowscodecs: Add fallback to unknown metadata reader.
2014-11-14 14:12:03 +09:00
Vincent Povirk
1dee37340d
windowscodecs: Implement ComponentFactory_CreateMetadataReaderFromContainer.
2014-11-14 14:11:57 +09:00
Vincent Povirk
8d96b22dd7
windowscodecs: Don't check undefined memory in tests on Wine.
2014-11-14 14:11:49 +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
Vincent Povirk
a5d569934f
windowscodecs: Fix race condition loading libpng.
2014-11-07 14:03:31 +09:00
Michael Müller
23988fef9c
windowscodecs: Fix number of returned properties in PropertyBag_GetPropertyInfo.
2014-08-07 17:53:54 +02:00
Marcus Meissner
4cfad9c462
windowscodecs: Fixed incorrect memset (Coverity).
2014-06-30 22:04:52 +02:00
Vincent Povirk
e2d6b28a1b
windowscodecs: Fix interlaced PNG writing.
2014-06-24 20:03:26 +02:00
Vincent Povirk
13a8d80f30
Revert "windowscodecs: Fix leak in test_QueryCapability.".
2014-06-19 22:55:20 +02:00
Vincent Povirk
1aa6e581d7
windowscodecs: Fix leak in test_QueryCapability.
2014-06-19 19:41:06 +02:00
Vincent Povirk
0f2efcf0c5
windowscodecs: Fix leak in test_QueryCapability.
2014-06-19 12:35:48 +02:00
Vincent Povirk
ed92450d6f
windowscodecs: Fix leak in test_propertybag_getpropertyinfo.
2014-06-19 12:35:44 +02:00
Vincent Povirk
bb8fdb734e
windowscodecs: Fix leak in DGifGetImageDesc.
2014-06-18 16:27:13 +02:00
Vincent Povirk
831b7371bc
windowscodecs: Fix memory leak in ComponentFactory_CreateBitmapFromSource.
2014-06-18 16:27:06 +02:00
Vincent Povirk
3ccaad8b41
windowscodecs: Support InterlaceOption in PNG encoder.
2014-06-16 18:03:54 +02:00
Nikolay Sivov
7e3ab90187
windowscodecs/tests: Fixed some leaks on error path (Valgrind).
2014-06-16 09:31:04 +02:00
Vincent Povirk
88f17cdb54
windowscodecs: Check for empty rect in WriteSource_Proxy.
2014-06-16 09:29:13 +02:00
Vincent Povirk
30f9834061
windowscodecs: Share WriteSource code between implementations.
2014-06-16 09:29:05 +02:00
Vincent Povirk
ed1a03e494
windowscodecs: Silence a fixme.
2014-02-06 17:08:10 +01:00
Alexandre Julliard
cf0e96c6d0
configure: Rename substituted variables to a standard _CFLAGS and _LIBS format.
2014-01-30 14:51:33 +01:00
Alexandre Julliard
8aa64e3580
configure: Automatically expand _CFLAGS and _LIBS variables in all makefiles.
2014-01-30 12:42:56 +01:00
Frédéric Delanoy
9be7e1e82e
windowscodecs/tests: Use common wine_dbgstr_guid implementation from test.h.
2014-01-30 12:42:55 +01:00
Dmitry Timoshkov
d03f65a51f
windowscodecs: Move the aggregation check from object constructors to class factory.
2014-01-14 12:31:42 +01:00
Alexandre Julliard
0d533cf0bd
makefiles: Allow define arguments to be specific to a single file.
2014-01-07 12:20:25 +01:00
Alexandre Julliard
99ef0d6ff0
makefiles: Get rid of the MAKE_TEST_RULES variable.
2014-01-02 12:13:16 +01:00
Alexandre Julliard
5e7416e5c8
makefiles: Get rid of the MAKE_DLL_RULES variable.
2014-01-02 12:08:18 +01:00
Alexandre Julliard
1adaad4c89
makefiles: Remove no longer needed dlldata.o and testlist.o extra objects.
2013-12-31 19:05:12 +01:00
Alexandre Julliard
d08ff3ff19
makefiles: Use a single variable for all types of idl files.
2013-12-31 18:15:17 +01:00
Vincent Povirk
7a728d1813
windowscodecs: Don't treat S_FALSE as failure.
2013-12-02 10:47:52 +01:00
Vincent Povirk
8dafdd0a56
windowscodecs: Use alpha options in CreateBitmapFromHBITMAP.
2013-11-20 11:24:56 +01:00
Vincent Povirk
25264f0b11
windowscodecs: Implement IPropertyBag2_Write_Proxy.
2013-11-18 11:16:16 +01:00
Alexandre Julliard
c7803b885b
makefiles: Add makedep pragmas for registration idl files.
2013-11-05 20:38:18 +01:00
Alexandre Julliard
074f30b9e3
makefiles: Add makedep pragmas for proxy idl files.
2013-11-05 20:38:18 +01:00
Vincent Povirk
4d30c057bf
windowscodecs: Implement WICSetEncoderFormat_Proxy.
2013-10-29 10:19:01 +01:00
Frédéric Delanoy
0153a962f6
windowscodecs: Use BOOL type where appropriate.
2013-10-21 10:44:41 +02:00
Frédéric Delanoy
98757d12cf
windowscodecs/tests: Use BOOL type where appropriate.
2013-10-21 10:44:22 +02:00
Dmitry Timoshkov
5e78e0b695
windowscodecs: Add support for IMILBitmapSource interface.
2013-10-18 14:39:38 +02:00
Frédéric Delanoy
919e8236ee
windowscodecs/tests: Use BOOL type where appropriate.
2013-10-07 13:32:06 +02:00
Frédéric Delanoy
cdf809a6c0
windowscodecs: Use BOOL type where appropriate.
2013-10-07 13:32:06 +02:00
Michael Stefaniuc
2720e81504
windowscodecs/tests: Use the W version of GetObject().
2013-10-02 11:02:40 +02:00
Frédéric Delanoy
2413841ecb
windowscodecs: Use BOOL type where appropriate.
2013-09-25 19:51:10 +02:00
Michael Stefaniuc
b08869420a
windowscodecs: Avoid using CONST.
2013-09-24 12:58:17 +02:00
Dmitry Timoshkov
c6d62ff081
windowscodecs: Implement CreateBitmapFromHBITMAP.
2013-09-18 20:21:08 +02:00
Michael Stefaniuc
4a5bc1375e
windowscodecs: Silence a warning due to an API change in libpng 1.5.
2013-08-22 19:02:04 +02:00
Dmitry Timoshkov
3894493a76
windowscodecs: Workaround libtiff bug when it defines toff_t as 32-bit for 32-bit builds.
2013-08-01 20:43:42 +02:00
Alexandre Julliard
079f8aee18
configure: Add pkg-config support for libtiff.
2013-07-31 22:26:55 +02:00
Alexandre Julliard
6b1a96991c
configure: Add pkg-config support for libjpeg.
2013-07-31 22:26:55 +02:00
Nikolay Sivov
98be36698c
windowscodecs: Implement CopyPixels() for clipper.
2013-07-22 17:16:03 +02:00
Nikolay Sivov
cbf51069e4
windowscodecs: Implement GetPalette() for clipper.
2013-07-22 17:16:02 +02:00
Nikolay Sivov
fa12cffa9d
windowscodecs: Implement GetResolution() for bitmap clipper.
2013-07-19 19:15:14 +02:00
Nikolay Sivov
4bbb285d5e
windowscodecs: Added GetPixelFormat() for bitmap clipper.
2013-07-19 19:15:09 +02:00
Nikolay Sivov
682ea785df
windowscodecs: Implement Initialize() and GetSize() for bitmap clipper.
2013-07-19 19:15:02 +02:00
Nikolay Sivov
5d4c614c05
windowscodecs: Added IWICBitmapClipper stub.
2013-07-19 19:14:51 +02:00
Dmitry Timoshkov
3738c6b05c
windowscodecs: Generate global GIF palette even a real one is missing.
2013-07-19 16:34:46 +02:00
Dmitry Timoshkov
f6c73a227b
windowscodecs/tests: Add a test for global GIF palette exposed by recent Windows versions.
2013-07-19 16:34:42 +02:00
Francois Gouget
9f90ec8dea
windowscodecs: Autoconf macros don't always have a value.
2013-07-19 11:53:33 +02:00
Alexandre Julliard
0fc73914e2
windowscodecs/tests: Pass the correct constant to IWICImagingFactory_CreateBitmapFromHBITMAP.
2013-06-17 19:30:38 +02:00
Alexandre Julliard
b9921eb370
configure: Add a pkg-config check for libpng.
2013-05-16 16:47:37 +02:00
Alexandre Julliard
f02cdd877f
Remove empty DLL_PROCESS_DETACH case statements.
2013-04-15 16:45:35 +02:00
Ludger Sprenker
b5dfd48bc8
windowscodecs: Add initializations for tiff encoder options.
2013-04-04 19:29:56 +02:00
Victor Martinez Calvo
cd7637ec6d
windowscodecs: Don't overwrite bih.bV5AlphaMask and set the LCS_DEVICE_RGB flag in bih.bV5CSType.
2013-04-04 13:28:47 +02:00
Francois Gouget
b84d91dfec
windowscodecs/tests: Add a trailing '\n' to an ok() call.
2013-04-03 17:54:38 +02:00
Ludger Sprenker
31f8c51b0b
windowscodecs: Basic tests for tiff encoder options.
2013-04-01 20:41:48 +02:00
Dmitry Timoshkov
fb87ee2464
windowscodecs: Make JPEG decoder fallback to 96 dpi resolution for density_unit == 0 case.
2013-03-25 14:03:14 +01:00
Marcus Meissner
4641ed5c95
windowscodecs: Do not leak profile on errors (Coverity).
2013-03-25 13:55:51 +01:00
Dmitry Timoshkov
18e76792a7
windowscodecs: Fix handling of a tRNS PNG chunk in the frame CopyPalette method.
2013-03-08 11:02:02 +01:00
Dmitry Timoshkov
ec22949874
windowscodecs: Ask libpng to ignore CRC of PNG chunks.
...
According to my tests with manually created PNG images WIC ignores CRC errors
for both critical and ancillary chunks.
2013-03-07 14:56:16 +01:00
Dmitry Timoshkov
f18439da51
windowscodecs: Add a comment to PNG decoder that Windows ignores CRC of the chunks.
2013-03-06 11:46:25 +01:00
Dmitry Timoshkov
b0e8a18a5d
windowscodecs: Add a test for palette of a PNG image with PLTE and tRNS chunks.
2013-03-06 11:46:18 +01:00
Andrew Talbot
81afb28818
windowscodecs: Avoid signed-unsigned integer comparisons.
2013-03-04 11:15:16 +01:00
Andrew Talbot
e458665a42
windowscodecs: Avoid signed-unsigned integer comparisons.
2013-03-01 10:35:18 +01:00
Hans Leidekker
d8c71dd5ed
windowscodecs: Implement IWICBitmapFrameDecode::GetColorContexts for TIFF images.
2013-02-11 17:52:18 +01:00
Hans Leidekker
ba02cb25d3
windowscodecs: Implement IWICComponentFactory::CreateDecoderFromFileHandle.
2013-02-06 20:28:29 +01:00
Hans Leidekker
d855ed4153
windowscodecs: Convert the source bitmap to the requested pixel format in IWICColorTransform::Initialize.
2013-02-06 20:28:29 +01:00
Hans Leidekker
d9bfbd61d8
windowscodecs: Add a stub IWICColorTransform implementation.
2013-02-06 20:28:29 +01:00
Hans Leidekker
b64eb8a8d6
windowscodecs: Implement IWICColorContext::InitializeFromFilename.
2013-02-06 20:28:29 +01:00
Dmitry Timoshkov
e6c88226ef
windowscodecs: Implement GetThumbnail in the ICO frame decoder.
2013-01-30 17:20:13 +01:00
Ludger Sprenker
2ee3e8073f
windowscodecs: Implement IPropertyBag2::Read.
2013-01-30 13:10:56 +01:00
Ludger Sprenker
d27fe13ffb
windowscodecs: Implement IPropertyBag2::Write.
2013-01-30 13:10:52 +01:00
Ludger Sprenker
987c81bae5
windowscodecs: Implement IPropertyBag2::GetPropertyInfo.
2013-01-30 13:10:47 +01:00
Ludger Sprenker
71bd7fdf77
windowscodecs: Implement IPropertyBag2::CountProperties.
2013-01-30 13:10:38 +01:00
Ludger Sprenker
d4b1db7141
windowscodecs: Implement ComponentFactory::CreateEncoderPropertyBag.
2013-01-30 13:10:24 +01:00
Ludger Sprenker
cf0334b654
windowscodecs: Add tests for IPropertyBag2.
2013-01-29 17:50:18 +01:00
Dmitry Timoshkov
89f044db15
windowscodecs: Add a test for CreateBitmapFromHBITMAP.
2013-01-18 13:28:58 +01:00
Dmitry Timoshkov
0df1742307
windowscodecs: Fix reading the mask bits in CreateBitmapFromHICON.
2013-01-15 12:11:15 +01:00
Dmitry Timoshkov
4ba27f7930
windowscodecs: Implement CreateBitmapFromHICON.
2013-01-14 11:03:46 +01:00
Dmitry Timoshkov
89838342b7
windowscodecs: Add a test for CreateBitmapFromHICON.
2013-01-11 12:17:06 +01:00
Dmitry Timoshkov
8d72c2771d
windowscodecs: BMP decoder should always return valid image resolution.
2013-01-09 12:48:42 +01:00