summaryrefslogtreecommitdiff
path: root/src/lib/openjp2/dwt.c
AgeCommit message (Collapse)Author
2016-01-25processed all c/h files through astyle with opj_astyle.cfgcodingstyleAntonin Descampe
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.
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 pull request #636 from uclouvain/opj_malloc-625Matthieu Darbois
Update allocation functions Fix #625 Fix #624 Fix #635
2015-10-17Fix inconsistent behavior of malloc(0)mayeut
Update #635 Update #625
2015-10-13Remove the explicit restrict keywordMathieu Malaterre
It would trigger a compiler error on xlc compiler. Fixes #620
2015-07-18Add some missing staticmayeut
Still needs to check j2k.c & jp2.c Update uclouvain/openjpeg#243
2014-09-19added memory allocation checks (fixes issue 355)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-07[trunk] As reported by clang analyzer thoses values were never readMathieu Malaterre
2014-03-07[trunk] Another of fixes for warning about sign conversionMathieu Malaterre
Update issue 256
2014-03-03[trunk] Remove easy to fix warnings about conversionMathieu Malaterre
2012-11-16[trunk] add opj_ prefix to some internal define and use the new opj type ↵Mickael Savinaud
instead of int and float in some files
2012-11-15[trunk] move opj_bool to OPJ_BOOL to follow the other typeMickael Savinaud
2012-10-25[trunk] rename opj_tcd_truct_v2 to opj_tcd_structMickael Savinaud
2012-10-24[trunk] Finalize dwt.v/.h with the v2 style : remove last functions already ↵Mickael Savinaud
optimized, add opj_ prefix, use new name of the functions
2012-10-05[trunk] rename int.h to opj_intmath.h and rename all its functions with opj_ ↵Mickael Savinaud
prefix
2012-10-03[trunk] correct warnings linked to static dwt functions because declaration ↵Mickael Savinaud
is not hide when we use SSE
2012-09-28[trunk] Start FolderReorgProposal taskMathieu Malaterre
Update issue 177