summaryrefslogtreecommitdiff
path: root/src/lib/openjpip
AgeCommit message (Collapse)Author
2024-02-29Fix export of OPJ_STATIC macroKai Pastor
2024-02-28Fix some typos (found by `codespell` and `typos`)Stefan Weil
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-01-08CMake: drop support for cmake < 3.5Dominik Wójt
Compatibility for cmake version < 3.5 is now deprecated in cmake and specifing version below 3.5 in cmake_minimum_required produces a warning.[1] [1] https://cmake.org/cmake/help/latest/release/3.27.html#deprecated-and-removed-features
2023-09-24Require `stdint.h` & `inttypes.h`mayeut
With #1450 which goes with 480cc9d49775d018c19ce0e01f6be27858d63d39 "Remove support for non-C99 compilers (like VS2010) that don't support snprintf()", support for MSVC versions prior to vs2015 is dropped: https://stackoverflow.com/questions/2915672/snprintf-and-visual-studio-2010 This means that all supported MSVC versions do have `stdint.h` & `inttypes.h` now. For non windows platforms, those headers were already mandatory. Make them mandatory for all builds.
2022-08-07CMake: switch to GNUInstallDirs (#1424)Thomas Bracht Laumann Jespersen
* Add GNUInstallDirs for standard installation directories Distributions are given standard variables for already existing hooks. Multiarch libdirs is taken care of automagically. Raises minimum cmake version by a little. * Handle CMAKE_INSTALL_xxx being absolute paths for .pc file generation In some cases the CMAKE_INSTAL_{BIN,MAN,DOC,LIB,INCLUDE}DIR variables may turn out to be absolute paths in which case prepending ${prefix} in the pkg-config .pc files will result in incorrect values. For .pc file generation, figure out if these variables are absolute and omit the prefix in the configured file when so. See: https://github.com/OSGeo/PROJ/commit/ab25e4b7ed9544e668282dcd293cfaaa2e56dbdf
2022-05-15pkgconfig: Define OPJ_STATIC for static linking with pkgconfBiswapriyo Nath
allows for the usage of $(pkgconf --static --cflags libopenjp2) to produce the proper CFLAGS for static linking. Relies on pkgconf rather than pkg-config
2021-12-05Fix some typos (found by codespell)Stefan Weil
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-04-17jp3d/jpwl/mj2/jpip: Fix resource leaks (#1226)Eduardo Barretto
This issues were found by cppcheck and coverity.
2018-06-18Use local type declaration for POSIX standard type only for MS compilerStefan Weil
ssize_t is a POSIX type which is declared in POSIX include files. Mingw-w64 provides it also for Windows. Use the local declaration only with MS compilers. Signed-off-by: Stefan Weil <sw@weilnetz.de>
2017-11-14Changed cmake version test to allow for cmake 2.8.11.xAndrew Murray
2017-07-26Spelling fixes (patch by ka7, #890, rebased on top of master)Even Rouault
2017-05-15Reformat: apply reformattin on .h files (#128)Even Rouault
2017-05-09Reformat whole codebase with astyle.options (#128)Even Rouault
2016-09-21Fix some issues reported by Coverity Scan (#846)Stefan Weil
* test_tile_decoder: Fix potential buffer overflow (coverity) CID 1190155 (#1 of 1): Unbounded source buffer (STRING_SIZE) Using a pointer instead of buffer of fixed size avoids the limit for the length of the input file name. Signed-off-by: Stefan Weil <sw@weilnetz.de> * test_tile_encoder: Fix potential buffer overflow (coverity) CID 1190154 (#1 of 1): Unbounded source buffer (STRING_SIZE) Using a pointer instead of buffer of fixed size avoids the limit for the length of the output file name. This implies that the length can exceed 255, so the data type for variable len had to be fixed, too. Signed-off-by: Stefan Weil <sw@weilnetz.de> * openjpip: Initialize data before returning it This fixes an error reported by Coverity: CID 1190143 (#1 of 1): Uninitialized scalar variable (UNINIT) Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-09-21Fix potential out-of-bounds read (coverity) (#844)Stefan Weil
* query_parser: Fix potential out-of-bounds read (coverity) CID 1190207 (#1 of 1): Out-of-bounds read (OVERRUN) Variable i must be checked before testing query_param.box_type. Signed-off-by: Stefan Weil <sw@weilnetz.de> * jpip_parser: Fix potential out-of-bounds read (coverity) CID 1190206 (#1 of 1): Out-of-bounds read (OVERRUN) Variable i must be checked before testing query_param.box_type. Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-07-12Fix dependency for pkg-config (issue #594) (#795)Stefan Weil
openjpeg provides libopenjp2.pc, so the require statements must refer to libopenjp2 instead of openjp2. Fixes #594 Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-05-10Add missing source for the JPIP library and executables (issue #658) (#659)Stefan Weil
They all need opj_malloc and other functions from opc_malloc.c. Signed-off-by: Stefan Weil <sw@weilnetz.de>
2015-09-29Fix typo in variable nameStefan Weil
This makes checks with codespell easier. Signed-off-by: Stefan Weil <sw@weilnetz.de>
2015-09-29Fix typos in comments and stringStefan Weil
Most typos were found by codespell. Signed-off-by: Stefan Weil <sw@weilnetz.de>
2015-09-01Correct CMake version requirementsmayeut
Update uclouvain/openjpeg#488
2015-07-30better -ffast-math handlingRex Dieter
issue #488 See also http://public.kitware.com/pipermail/cmake/2015-April/060479.html
2014-04-24[trunk] Make sure OpenJPIP compiles on WIN32Mathieu Malaterre
2014-04-24[trunk] fixed reference to opj_stream_set_user_data_v3 in jpip sources.Antonin Descampe
2014-04-03[trunk] updated copyright and added copyright notice required by ISO, in ↵Antonin Descampe
each file; updated AUTHORS, NEWS
2014-03-10[trunk] Fix warnings about shadow variablesMathieu Malaterre
2014-03-03[trunk] Prefer compile time constant to avoid conversion double -> intMathieu Malaterre
2014-03-03[trunk] Remove warning about cast double -> int. Instead use bit-shifting ↵Mathieu Malaterre
(compile time computation)
2014-03-03[trunk] remove all api with invalid FILE* parameters which could leads to ↵Mathieu Malaterre
issues when applications are compiled with different flags from openjpeg. Fixes issue 198
2014-02-26[trunk] Fix invalid write access in JPIP code.Mathieu Malaterre
Fixes issue 261
2013-10-15complete openjpeg2 pkgconfig support, bug #68Rex Dieter
2012-12-04[trunk] add openjpeg.h in some files of openjpip to use some opj type ↵Mickael Savinaud
(thanks winfried)
2012-11-15[trunk] update some applications with new OPJ_BOOL typeMickael Savinaud
2012-11-15[trunk] propagate the new OPJ_ symbol and type to openjpipMickael Savinaud
2012-10-29[trunk] Remove bool.h, use opj_bool insteadMathieu Malaterre
Fix remaining opj_calloc/malloc/free issues
2012-10-29[trunk] Fix remainings issues with doxygen docMathieu Malaterre
Convert DOS files to UNIX eol
2012-10-25[trunk] Since r2060 (and r2059) openjpip is now a first class shared ↵Mathieu Malaterre
library, instead of a local static lib which expose all the symbols. As such re-apply changes from r2077 which were removed in r2122 Also remove old code for now removed opj_jpip_compress
2012-10-25[trunk] Rework r2077Mathieu Malaterre
r2077 did expose too much of the detail implementation of OpenJPEG. Rework dependencies in between JPIP file level details and JPIP client/server arch. Move JPIP file level functionalities back into OpenJP2 as was the case in openjpeg 1.5.x. Use new cio func.
2012-10-15[trunk] Fix JPIP compilation. Some prototypes were not respected.Mathieu Malaterre
2012-10-15[trunk] Fix compilation:Mathieu Malaterre
- using mingw32 compiler (missing exported symbols) - using -fvisibility=hidden (gcc on UNIX)
2012-10-15[trunk] Fix compilation in static mode. Prevent duplicate symbols with ↵Mathieu Malaterre
convert.c implementation
2012-10-08[trunk] Update JPIP (FolderReorgProposal task)Mathieu Malaterre
This commit does three things: - Use opj_malloc/calloc/free instead of the default C ones. - Update JPIP API to start using cio _v2 API - Create a new opj_jpip_compress which is the replacement for image_to_j2k -jpip Update issue 177
2012-10-05[trunk] Make openjpip a first class shared lib, for future linkingMathieu Malaterre
2012-10-05[trunk] First step in moving JPIP code out of openjp2Mathieu Malaterre
2012-10-01[trunk] FolderReorgProposal task: fix jpip doxygenMathieu Malaterre
Update issue 177
2012-10-01[trunk] FolderReorgProposal task: move source code to source dirMathieu Malaterre
2012-10-01[trunk] FolderReorgProposal task: only keep a single build systemMathieu Malaterre
2012-09-28[trunk] Start FolderReorgProposal taskMathieu Malaterre
Update issue 177