-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into master_github
- Loading branch information
Showing
11 changed files
with
58 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ | |
// Copyright (C) 2018 Klarälvdalens Datakonsult AB, a KDAB Group company, <[email protected]>. Work sponsored by the LiMux project of the city of Munich | ||
// Copyright (C) 2018, 2019 Adam Reichold <[email protected]> | ||
// Copyright (C) 2019, 2021, 2022 Oliver Sander <[email protected]> | ||
// Copyright (C) 2023 Suzuki Toshiya <[email protected]> | ||
// | ||
// To see a description of the changes please see the Changelog file that | ||
// came with your tarball or type make ChangeLog if you are building from git | ||
|
@@ -175,6 +176,7 @@ FontInfo::FontInfo(GfxFont *font, XRef *xref) | |
// check for an embedded font | ||
if (font->getType() == fontType3) { | ||
emb = true; | ||
embRef = Ref::INVALID(); | ||
} else { | ||
emb = font->getEmbeddedFontID(&embRef); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
// | ||
// A JPX stream decoder using OpenJPEG | ||
// | ||
// Copyright 2008-2010, 2012, 2017-2022 Albert Astals Cid <[email protected]> | ||
// Copyright 2008-2010, 2012, 2017-2023 Albert Astals Cid <[email protected]> | ||
// Copyright 2011 Daniel Glöckner <[email protected]> | ||
// Copyright 2014, 2016 Thomas Freitag <[email protected]> | ||
// Copyright 2013, 2014 Adrian Johnson <[email protected]> | ||
|
@@ -20,17 +20,6 @@ | |
#include "JPEG2000Stream.h" | ||
#include <openjpeg.h> | ||
|
||
#define OPENJPEG_VERSION_ENCODE(major, minor, micro) (((major)*10000) + ((minor)*100) + ((micro)*1)) | ||
|
||
#ifdef OPJ_VERSION_MAJOR | ||
# define OPENJPEG_VERSION OPENJPEG_VERSION_ENCODE(OPJ_VERSION_MAJOR, OPJ_VERSION_MINOR, OPJ_VERSION_BUILD) | ||
#else | ||
// OpenJPEG started providing version macros in version 2.1. | ||
// If the version macro is not found, set the version to 2.0.0 and | ||
// assume there will be no API changes in 2.0.x. | ||
# define OPENJPEG_VERSION OPENJPEG_VERSION_ENCODE(2, 0, 0) | ||
#endif | ||
|
||
struct JPXStreamPrivate | ||
{ | ||
opj_image_t *image = nullptr; | ||
|
@@ -333,11 +322,7 @@ void JPXStreamPrivate::init2(OPJ_CODEC_FORMAT format, const unsigned char *buf, | |
|
||
stream = opj_stream_default_create(OPJ_TRUE); | ||
|
||
#if OPENJPEG_VERSION >= OPENJPEG_VERSION_ENCODE(2, 1, 0) | ||
opj_stream_set_user_data(stream, &jpxData, nullptr); | ||
#else | ||
opj_stream_set_user_data(stream, &jpxData); | ||
#endif | ||
|
||
opj_stream_set_read_function(stream, jpxRead_callback); | ||
opj_stream_set_skip_function(stream, jpxSkip_callback); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters