summaryrefslogtreecommitdiff
path: root/poppler/JPEG2000Stream.cc
AgeCommit message (Collapse)AuthorFilesLines
2023-12-13Update (C)Albert Astals Cid1-1/+1
2023-12-10We require an openjpeg >= 2.1Albert Astals Cid1-15/+0
2022-10-16Init all the fields of JPXStreamPrivateAlbert Astals Cid1-10/+6
oss-fuzz/52372
2022-10-16No need to store smaskInData in privAlbert Astals Cid1-9/+4
2022-04-01JPEG2000Stream: Some wrangling with the data typesAlbert Astals Cid1-9/+5
I think this is more correct, and also makes MSVC happier
2022-03-19Update (C)Albert Astals Cid1-0/+1
2022-03-18Store font data in a std::vector<unsigned char>Oliver Sander1-7/+5
This simplifies various method signatures, because the data array and its size do not have to be passed around separately, anymore. Also, using a std::vector makes tracking the ownership much easier.
2022-03-11Add readability-braces-around-statementsAlbert Astals Cid1-19/+35
2021-05-14Mark two Stream::isFoo functions as constAlbert Astals Cid1-1/+1
2021-02-22JPEG2000Stream.cc: Remove useless two if (priv->image)Albert Astals Cid1-18/+16
We're already inside an if (priv->image) check
2020-07-03Run clang-formatAlbert Astals Cid1-270/+311
find . \( -name "*.cpp" -or -name "*.h" -or -name "*.c" -or -name "*.cc" \) -exec clang-format -i {} \; If you reached this file doing a git blame, please see README.contributors (instructions added 2 commits in the future to this one)
2020-03-26Update (C)Albert Astals Cid1-1/+1
2020-03-22Fix leak in broken filesAlbert Astals Cid1-0/+4
oss-fuzz/21330
2019-11-29Enable readability-inconsistent-declaration-parameter-nameAlbert Astals Cid1-1/+1
2019-07-15JPXStream::init: ignore dict Length if clearly brokenAlbert Astals Cid1-1/+1
Fixes issue #805
2019-05-23JPEG2000Stream: fail gracefully if not all components have the same WxHAlbert Astals Cid1-1/+7
I think this is just a mistake, or at least the only file we have with this scenario is a fuzzed one
2018-12-06Replace Guchar by unsigned charOliver Sander1-2/+2
2018-10-23Replace GBool, gTrue, and gFalse by bool, true, false, resp.Oliver Sander1-14/+14
These are just non-standard names for bool, true, false, respectively. Getting rid of these names saves on layer of mental redirection, and enables proper syntax highlighting in editors.
2018-03-23JPEG2000Stream.cc: no need to store indexedAlbert Astals Cid1-7/+6
we only use it in one function
2018-01-08Run clang-tidy with modernize nullptrAlbert Astals Cid1-11/+11
Also add two enum values in the qt5 frontend to representate no flags Also mark glib/gtk/cairo system includes so that gcc doesn't report the issues in those headers
2017-12-01Stop supporting openjpeg1, you really want to use openjpeg2 :)Albert Astals Cid1-145/+0
2017-08-01Make the openjpeg1 code compile with the new Object APIAlbert Astals Cid1-9/+4
2017-05-09JPXStreamPrivate::init2 - Fix memory leak in broken filesAlbert Astals Cid1-0/+1
2017-05-09New Object APIAlbert Astals Cid1-10/+7
Implement the move operators and copy construtor Almost all the init() functions are gone and we just have simple constructors now Also made free() public since you're not supposed to call it anymore, unless you're being evil and malloc'ing Objects like Array/Dict/XRef This has a huge reaction chain, most importantly we don't get objects by passing a pointer Object parameter, we just get the object as a return value, which is a much clearer API - aobj->copy(&obj); + obj = aobj->copy(); before I was never sure what was being copied into what Comes with a huge diff, I probably made some mistake in the porting since there was lots of copy & paste involved
2016-03-12handle SMaskInData = 0 for JPX encoded imagesThomas Freitag1-16/+61
Bug #93468
2016-03-07JPXStream: Don't scale image comps to 8 bits in case of an indexed colorspaceThomas Freitag1-20/+38
Followup of bug #94371
2016-03-06implement jpx streams with depth < 8Thomas Freitag1-1/+7
Bug #94371
2015-12-17Prepare for 0.39Albert Astals Cid1-0/+1
2015-12-10Fix typos in error messagesPino Toscano1-3/+3
Reported by Jakub Wilk, thanks!
2015-01-06JPEG2000Stream: Inline doGetChar and doLookCharAdam Reichold1-23/+26
2015-01-04extended openjpeg2 supportThomas Freitag1-23/+78
2015-01-04Initial attempt at libopenjpeg2 supportAdrian Johnson1-60/+253
OpenJPEG 2 has a new pkg-config name and API. - Update configure.ac to find openjpeg 2 and provide V1/v2 macros - Update JPEG2000Stream to use new API depending on openjpeg v1/v2 macros - OpenJPEG 2.1 changed the API so provide a version macro to make it easier to handle the the 2.1 change and any future changes. - Move openjpeg.h into the .cc file
2013-01-25Adrian C for 2013 because of the big files supportAlbert Astals Cid1-0/+1
2013-01-25Large file supportAdrian Johnson1-1/+1
Create a Goffset type and use this type for all file offsets and file sizes. Bug 44085
2012-02-06Merge branch 'master' into xpdf303mergeAlbert Astals Cid1-1/+6
Conflicts: poppler/CairoOutputDev.cc poppler/CairoOutputDev.h poppler/FontInfo.cc poppler/GfxFont.cc poppler/GfxState.cc poppler/GlobalParams.cc poppler/GlobalParams.h poppler/Lexer.cc
2012-01-27Set OPJ_DPARAMETERS_IGNORE_PCLR_CMAP_CDEF_FLAG if you have itAlbert Astals Cid1-1/+6
Fixes/workarounds bug 43414 with openjpeg 1.5 (unreleased) (cherry picked from commit de6415af1a39ec7dfa4f149c6c5e311b86352cec)
2011-08-31xpdf303: error() changes, new param and formattingAlbert Astals Cid1-5/+5
2011-08-30xpdf303: char * -> const char *Albert Astals Cid1-1/+1
2011-07-23Fix numerical overflow in libopenjpeg JPXStream::doLookChar()Daniel Glöckner1-1/+36
It also includes a speed optimization. Bug 39361
2010-06-21introduce getChars to save some method callsAlbert Astals Cid1-49/+18
Can give us a decent speedup when we go a lot though this methods
2009-08-25forgot to update my copyrightAlbert Astals Cid1-1/+1
2009-08-25Fix format security warningsAlbert Astals Cid1-2/+2
Don't just directly print strings of unknown content; use "%s".
2008-11-29Use the Length specified in the Stream as initial bufSizeAlbert Astals Cid1-2/+8
This is a optimization to save a few reallocations, if the Length value is incorrect it will still work
2008-06-14Add a JPEG2000 decoder based on OpenJPEGAlbert Astals Cid1-0/+181
Enabled by default since it's generally better than xpdf one See http://lists.freedesktop.org/archives/poppler/2008-June/003874.html for more information