summaryrefslogtreecommitdiff
path: root/src/lib
AgeCommit message (Collapse)Author
2016-01-25processed all c/h files through astyle with opj_astyle.cfgcodingstyleAntonin Descampe
2016-01-25fixed tile numberingAntonin Descampe
Fixes #245
2016-01-23Merge pull request #648 from stweil/allocAntonin Descampe
Fix support of posix_memalloc for Linux
2016-01-11Merge pull request #551 from mayeut/coc-qccMatthieu Darbois
Add COC/QCC in main header when needed
2016-01-09Add comment explaining bj is not use when l_data_size == 0Even Rouault
2016-01-08[git/2.1 regression] Fix opj_write_tile() failure when numresolutions=1Even Rouault
When trying the GDAL OpenJPEG driver against openjpeg current master HEAD, I get failures when trying to create .jp2 files. The driver uses opj_write_tile() and in some tests numresolutions = 1. In openjp2/dwt.c:410, l_data_size = opj_dwt_max_resolution( tilec->resolutions,tilec->numresolutions) * (OPJ_UINT32)sizeof(OPJ_INT32); is called and returns l_data_size = 0. Now in git opj_malloc() has a special case for 0 to return a NULL pointer whereas previously it relied on system malloc(), which in my case didn't return NULL. So only test the pointer value if l_data_size != 0. This makes the GDAL autotest suite to pass again.
2016-01-06Fix fatal crash on 64 bit LinuxStefan Weil
By default, OpenJPEG uses the function memalign to allocate aligned memory on Linux systems. That function needs malloc.h which was missing. This results in a compiler warning: openjpeg/src/lib/openjp2/opj_malloc.c:63:3: warning: implicit declaration of function ‘memalign’ [-Wimplicit-function-declaration] On hosts where sizeof(int) < sizeof(void *) the return value of memalign will be truncated which results in an invalid pointer. That caused "make test" to produce lots of segmentation faults when running on a 64 bit Linux host. Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-01-06Fix whitespace issues in opj_malloc.cStefan Weil
Some lines ended with spaces. Remove them. Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-01-06Fix support of posix_memalign for LinuxStefan Weil
posix_memalign is only declared conditionally in stdlib.h, so add one of the possible definitions to get the declaration. Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-01-06Fix duplicate article in commentsStefan Weil
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2015-12-31Fix grammar in commentStefan Weil
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2015-11-27Fix typosJakub Wilk
2015-11-07Fix undefined size jp2 box handlingmayeut
Update #653
2015-11-01Fin compiler warningsmayeut
2015-10-29Fix typo in commentsStefan Weil
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2015-10-21Merge branch 'master' into coc-qccmayeut
2015-10-21Avoid pointer arithmetic with (void *) pointers.Stephan Mühlstrasser
2015-10-21Generic aligned malloc implementation update.mayeut
Update #642
2015-10-20Generic aligned malloc implementation.Stephan Mühlstrasser
Used for platforms where none of posix_memalign(), memalign() and _aligned_malloc() is available.
2015-10-19Fix HP compiler warning about redeclaration of function (#640)Stephan Mühlstrasser
HP compiler warns: cc: "dwt.c", line 798: warning 562: Redeclaration of "opj_v4dwt_decode" with a different storage class specifier: "opj_v4dwt_decode" will have internal linkage. cc: "t2.c", line 1341: warning 562: Redeclaration of "opj_t2_init_seg" with a different storage class specifier: "opj_t2_init_seg" will have internal linkage.
2015-10-18Merge branch 'master' into coc-qccmayeut
2015-10-18Merge pull request #636 from uclouvain/opj_malloc-625Matthieu Darbois
Update allocation functions Fix #625 Fix #624 Fix #635
2015-10-18Cleanup includesmayeut
2015-10-18Fix _aligned_malloc usagemayeut
2015-10-17Fix inconsistent behavior of malloc(0)mayeut
Update #635 Update #625
2015-10-17Add missing checks. Fix crash on failed allocation.mayeut
2015-10-17Fixed crash on encodingmayeut
Update #624 Update #625
2015-10-15Fix OpenJPEG GitHub issue #633.Stephan Mühlstrasser
"opj_includes.h" must be included before system headers, otherwise inconsistent definitions of configuration macros lead to build failures on AIX.
2015-10-13Merge branch 'master' into coc-qccmayeut
2015-10-13Remove the explicit restrict keywordMathieu Malaterre
It would trigger a compiler error on xlc compiler. Fixes #620
2015-10-13I do not recall exactly... I would say that the correct version should beGiuseppe Baruffa
if (!JPWL_ASSUME) return false; meaning that once JPWL_ASSUME=1 the code will pass over such errors and try to decode anyway (just paired with the other JPWL_ASSUME on line 1112). Fixes #596
2015-10-12Remove a possible uninitialized variableMathieu Malaterre
Fixes #629
2015-10-12minor tweaks to the codeMathieu Malaterre
2015-10-10Fix an issue with parenthesisMathieu Malaterre
2015-10-10Add paranoid sentinelsMathieu Malaterre
2015-10-10implement a portable aligned reallocMathieu Malaterre
2015-10-10do not use aligned_alloc since it requires c11Mathieu Malaterre
2015-10-09cleanup header file and move to implementationMathieu Malaterre
2015-10-09Revert "Make sure to allocate on 16bits alignement. Fix issue #624"mayeut
This reverts commit 553714a87a92930dd69f5762e0615c12dfcbd873.
2015-10-09Make sure to allocate on 16bits alignement. Fix issue #624Mathieu Malaterre
2015-10-08Merge branch 'master' into coc-qccmayeut
2015-10-07Fixed problem that C++ compilation failed because of enum variable.Stephan Mühlstrasser
Replaced usage of an enum typedef for a variable that is used for bit flags with OPJ_UINT32 type.
2015-10-06Merge branch 'master' into coc-qccmayeut
2015-10-06Added missing casts for return values of opj_malloc()/opj_calloc().Stephan Mühlstrasser
2015-10-02Add check for seek support before trying TPsot==TNsot workaroundmayeut
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-17Fix resource leak in opj_j2k_create_cstr_indexmayeut
Fixes #599
2015-09-17Fix resource leak in opj_j2k_encodemayeut
Fixes #598
2015-09-17fix resource leak in opj_j2k_decode_one_tilemayeut
Fixes #597