diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2021-03-05 19:42:41 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2021-03-12 15:36:32 +0100 |
commit | e286bd791bfaa00746ea143303761f76e0af1f0d (patch) | |
tree | 5d990a3461237d11e0bc63ac1757a582f95e9755 /include/vcl | |
parent | 12eac05c8088cefadace2629efce5473212662eb (diff) |
add support for Microsoft Gif chunk to PngImageReader
Change-Id: I7d7f47041c48eb1a19e2aaee0c6da8c675ada4b1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112039
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/filter/PngImageReader.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/vcl/filter/PngImageReader.hxx b/include/vcl/filter/PngImageReader.hxx index 97b2616883b2..2cd57549cf49 100644 --- a/include/vcl/filter/PngImageReader.hxx +++ b/include/vcl/filter/PngImageReader.hxx @@ -34,6 +34,11 @@ public: PngImageReader(SvStream& rStream); bool read(BitmapEx& rBitmap); + + // Returns the contents of the msOG chunk (containing a Gif image), if it exists. + // Does not change position in the stream. + static std::unique_ptr<sal_uInt8[]> getMicrosoftGifChunk(SvStream& rStream, + sal_Int32* chunkSize = nullptr); }; } // namespace vcl |