summaryrefslogtreecommitdiff
path: root/src/bin/jp2
AgeCommit message (Collapse)Author
2017-09-01opj_compress help: revert 32572617765cb9d77302384653a48d793b8f657f and ↵Even Rouault
indicate 1 again as being the value to get lossless for -r. In opj_j2k_setup_encoder(), make sure that ll rates[] <= 1.0 are set to 0. Document 0 as being lossless for -q / tcp_distoratio (#1009)
2017-09-01opj_compress help: indicate 0 value, instead of 1, for -r parameter to get ↵Even Rouault
lossless encoding (#1009)
2017-08-28Make opj_set_decode_area() and opj_decode() take into account ↵Even Rouault
opj_set_decoded_resolution_factor() (#1006, affect API use) * Better document usage of opj_set_decode_area(), ie expecting coordinates in full resolution/reference grid even if requesting at a lower resolution factor * Make sure that image->comps[].factor is set by opj_set_decode_area() and opj_decode() from the value specified in opj_set_decoded_resolution_factor() * opj_decompress: add 2 environmenet variables to test alternate ways of using the API, namely USE_OPJ_SET_DECODED_RESOLUTION_FACTOR=YES to use opj_set_decoded_resolution_factor() instead of parameters.cp_reduce, and SKIP_OPJ_SET_DECODE_AREA=YES to not call opj_set_decode_area() if -d is not specified.
2017-08-24imagetopgx(): improve performance in 8 bit case (relates to broken.jpc test ↵Even Rouault
case)
2017-08-19pgxtoimage(): avoid excessive memory allocation attempt (#999)Even Rouault
2017-08-18pgxtoimage(): fix write stack buffer overflow (#997)Even Rouault
2017-08-18bmp_read_rle8_data(): avoid potential infinite loop (#996)Even Rouault
2017-08-17Fix -Wconversion warningEven Rouault
2017-08-17convert.c: fix recently introduced -Wsign-conversion warningsEven Rouault
2017-08-17tgatoimage(): avoid excessive memory allocation attempt, and fixes unaligned ↵Even Rouault
load (#995)
2017-08-16tiftoimage(): fix read heap buffer overflow (#988)Even Rouault
The number of components is given only by TIFFTAG_SAMPLESPERPIXEL / tiSpp. Querying TIFFTAG_EXTRASAMPLES only give information about which channel is the alpha channel, but we mostly ignore it for now, so remove that part of the code.
2017-08-16imagetotga(): fix read heap buffer overflow if numcomps < 3 (#987)Even Rouault
2017-08-14bmp_read_info_header(): reject bmp files with biBitCount == 0 (#983)Even Rouault
2017-08-11Changes in converttif.c for PPC64szukw000
2017-08-10Fix crash on encoding if using opj_set_default_encoder_parameters() without ↵Even Rouault
defining tcp_numlayers
2017-08-09opj_decompress: document -quiet option, and remove spurious newline outputEven Rouault
2017-08-09imagetobmp: avoid shift by -1 (relates to #811)Even Rouault
2017-08-08Fix remaining warningAntonin Descampe
format specifier mismatch in #975
2017-08-07Changes for converttif.c to fix tsize_tszukw000
2017-08-02First change on changes-for-afl-testsszukw000
2017-07-31Catch images broken by AFLszukw000
2017-07-30Avoid heap buffer overflow in function pnmtoimage of convert.c, and unsigned ↵Even Rouault
integer overflow in opj_image_create() (CVE-2016-9118, #861)
2017-07-29Fix breakage of 2fa0fc61f2d546c8b67e7c5a9cbc61d98e1f7af0 (#970)Even Rouault
2017-07-29imagetopnm(): make sure the alpha component has same dimension as other ↵Even Rouault
components to avoid read heap buffer overflow (#970)
2017-07-26Spelling fixes (patch by ka7, #890, rebased on top of master)Even Rouault
2017-07-26opj_decompress: fix null pointer dereference on comps[].data on ↵Even Rouault
id_000167,sig_11,src_006079,op_havoc,rep_4 (#939)
2017-06-21Style fixEven Rouault
2017-06-21Fix mingw related warningsEven Rouault
2017-06-17Fix warning about unused argumentsEven Rouault
2017-06-14Merge pull request #928 from RussellMcOrmond/masterAntonin Descampe
Quiet mode for opj_decompress via -quiet long parameter.
2017-05-23CMake: add stronger warnings for openjp2 lib/bin by default, and error out ↵Even Rouault
on declaration-after-statement And remove occurences of unused arguments in src/lib/openjp2
2017-05-16Fixed formatting issues ASTYLERussell McOrmond
2017-05-15Quiet mode for opj_decompress via -quiet long parameter.Russell McOrmond
2017-05-15Reformat: apply reformattin on .h files (#128)Even Rouault
2017-05-09Reformat whole codebase with astyle.options (#128)Even Rouault
2016-09-26Remove typos from comments and man pagesMathieu Malaterre
2016-09-22Fix PNM file reading (#847)Matthieu Darbois
Malformed PNM file could cause a crash in opj_compress. Checks were added to prevent this. Fixes #843 Updates #440
2016-09-20Merge pull request #834 from trylab/issue833Antonin Descampe
Fix issue 833.
2016-09-14Fix some warnings (#838)Matthieu Darbois
Fix warnings introduced by uclouvain/openjpeg#786
2016-09-13Fix issue 833.trylab
Add some overflow check operations.
2016-05-25opj_decompress: use clock_gettime() instead of getrusage() so as to get the ↵Even Rouault
time spent, and not to the total CPU time
2016-05-25opj_decompress: add a -threads <num_threads> optionEven Rouault
2016-05-02Use lowercase for cmake commands consistenlyJulien Malik
Inspired from https://github.com/InsightSoftwareConsortium/ITK/blob/master/Utilities/Maintenance/HowToCreateTheCMakeCaseConversion.txt This needs vim 7.3 and fails with vim 7.4 This also fixes a number of : - missing empty line at end of files - useless space at end of lines
2016-04-30Fix bad call to fclose with NULL pointermayeut
2016-04-30Fix Out-Of-Bounds Read in sycc42x_to_rgb function (#745)Matthieu Darbois
42x Images with an odd x0/y0 lead to subsampled component starting at the 2nd column/line. That is offset = comp->dx * comp->x0 - image->x0 = 1 Fix #726
2016-04-29cppcheck fix for openjp2 (#740)julienmalik
2016-04-28Fix implicit float-to-bool conversions (#752)julienmalik
2016-04-23Allow to write 3/5/7/9/11/13/15 bpp TIF filesmayeut
Update uclouvain/openjpeg#729
2016-04-23Allow to read 3/5/7/9/11/13/15 bpp TIF filesmayeut
2016-04-09Remove dead code in opj_dumpJulien Malik