mayeut
c0abb808f5
Fix invalid read in pngtoimage
2015-10-18 19:10:31 +02:00
mayeut
7ad3e2a870
Add "-p", "-force-rgb" and "-upsample" options to j2k_to_image
...
Fix #606
2015-10-18 16:07:40 +02:00
Antonin Descampe
32b04ad49d
Makes j2k_dump focus on parsing j2k codestreams, nothing else.
...
Avoid processing JP2 PCLR, CMAP, CDEF boxes and J2K packets in j2k_dump.
Fixes #595
2015-09-23 17:48:30 +02:00
Pedro Gimeno
4469a98cd7
Wrong TGA header generated by j2k_to_image
...
The TGA file writer used by j2k_to_image writes a wrong field to the
header for alpha-less images.
To reproduce:
1. Take any 24-bit j2k image with no alpha.
2. Convert it to TGA with j2k_to_image -i <image>.j2k -o <image>.tga
3. Open <image>.tga with Gimp.
When opened, the image will have a wrong alpha channel, because Gimp
uses a certain field in the header to determine if the image has alpha.
That field is saved wrongly by j2k_to_image for alpha-less images. Per
the TGA specification, Gimp is correct in this case.
2015-09-16 20:28:29 +02:00
Antonin Descampe
31e35fcf7b
preventde seg fault when unknown long options and fixed ability to use USE_SYSTEM_GETOPT
2015-09-15 18:00:52 +02:00
Mathieu Malaterre
4140dfdea8
[1.5] Import patch from bug tracker
...
Thanks to winfried
Fixes issue 304
2014-03-25 16:42:49 +00:00
Mathieu Malaterre
dac95eff3a
[1.5] Rework r2768 in fact getopt_long is slightly different on GNU. Adapt signature to handle BSD signature and GNU one.
...
Update issue 301
2014-03-18 16:26:39 +00:00
Mathieu Malaterre
4f4de7070e
[1.5] Create a new cmake option to choose between convienient copy of getopt and system installed one
...
Udapte issue 301
2014-03-18 15:59:08 +00:00
Mathieu Malaterre
de73cfeec1
[1.5] Fix issues with big endian handling
...
Fixes issue 302
2014-03-18 14:40:37 +00:00
Mathieu Malaterre
6fc2b56847
[1.5] Remove another set of simple warnings
2014-03-17 16:11:48 +00:00
Mathieu Malaterre
a05a9aa4ed
[1.5] Fix remainings warnings on 1.5 branch
2014-03-12 11:52:26 +00:00
Mathieu Malaterre
96dba34ddc
[1.5] Declare functions static to track unused ones.
2014-02-26 08:43:20 +00:00
Mathieu Malaterre
6aad1208b2
[1.5] Import first patch (fixes.patch) from issue 249 to fix leaks on error condition.
...
Update issue 249
2014-02-26 08:38:19 +00:00
Mickael Savinaud
c0c69d1c36
[1.5] improve the bmp read function for RGB8 case (thanks Winfried). Update issue 203
2012-12-18 08:47:19 +00:00
Mathieu Malaterre
4935eaf773
[1.5] COMP: Fix warnings identified by clang31
...
openjpeg/libopenjpeg/tcd.c:1884 col 48: warning: comparison of unsigned expressi
on < 0 is always false
openjpeg/applications/codec/j2k_dump.c:362 col 29: warning: equality comparison
with extraneous parentheses
openjpeg/libopenjpeg/jpwl/jpwl_lib.c:680:19: warning: format specifies type 'int
' but the argument has type 'long long' [-Wformat]
printf("Marker@%d: %X\n", cio_tell(cio) - 2, id);
~^ ~~~~~~~~~~~~~~~~~
%lld
openjpeg/applications/jpip/libopenjpip/byte_manager.c:58:63: warning: format spe
cifies type 'long' but the argument has type 'OPJ_OFF_T' (aka 'long long') [-Wfo
rmat]
fprintf( FCGI_stderr, "Error: error in fetch_bytes( %d, %ld, %lu)\n", fd, offset
, size);
Author: Hans Johnson <hans-johnson@uiowa.edu>
2012-08-24 08:13:17 +00:00
Mathieu Malaterre
835bf5357f
[1.5] The two files in Issue145 have a precision < 8-bit:
...
therefore 'jp2_read_pclr' must be changed.
j2k_to_image fails to create RGB/RGBA images with a
precision < 8-bit: therefore 'imagetopng' must be
changed.
Update issue 145
2012-05-29 13:54:21 +00:00
Mathieu Malaterre
ce9d5083ef
[1.5] Integrate patch from winfried posted on the mailing list. See here for more info: https://groups.google.com/group/openjpeg/msg/6488859a0dce77
2012-04-23 13:35:01 +00:00
Mathieu Malaterre
ee9c46d350
[1.5] Fix typo in date.
2012-03-02 13:47:00 +00:00
Mathieu Malaterre
83332e13ad
[1.5] Convert from DOS eol to UNIX eol
2012-03-02 09:50:30 +00:00
Mathieu Malaterre
8c9fd1b351
[1.5] Apply big-endian patch from winfried: libopenjpeg and WORDS_BIGENDIAN, 2012/02/14
2012-03-01 16:10:27 +00:00
Mathieu Malaterre
b3b2ee0925
[1.5] j2k_to_image does not support writing image with precision less than 8bits. Simply give up for now. Thanks to winfried for report. Also add static keyword for undeclared function in convert.h
2012-03-01 15:52:30 +00:00
Antonin Descampe
040c9a68b6
[1.5] remove pthread dependency in JPIP client and tweak thirdparty stuff
2012-01-25 16:30:03 +00:00
Mathieu Malaterre
6b1e9d1b4e
Attempt to fix building of universal exe
2011-12-21 15:19:46 +00:00
Mathieu Malaterre
c9ae2a5fbc
hopefully fix a warning on VS2008 compiler
2011-12-21 10:24:59 +00:00
Mathieu Malaterre
594148ae83
Hide a warning. Since 1.5 is not large file safe (>32bits) this should be ok
2011-12-16 10:43:10 +00:00
Mathieu Malaterre
c469e1339f
Remove some simple warnings about comments
2011-12-16 10:29:30 +00:00
Mathieu Malaterre
72867bc692
Fix a bunch of warnings reported by gcc (unused results from fwrite)
2011-12-12 08:55:44 +00:00
Antonin Descampe
49a0f0db8f
[1.5] backport revisions 996, 997, 1000, 1008-1012 from trunk (JPIP modifications)
2011-11-01 23:28:07 +00:00
Mickael Savinaud
8d8841c84f
[1.5] remove obvious memory leak from applications
2011-10-20 16:36:45 +00:00
Mickael Savinaud
1dc6eddf1c
backport rev 1013-1014 from trunk
2011-10-19 15:45:03 +00:00
Antonin Descampe
c1510793e3
[1.5] backport r987:990 to branch 1.5
2011-10-11 07:24:58 +00:00
Antonin Descampe
3d06f03072
BRANCH-1.5:added a new indexer functionality to the library. With the new -jpip option at encoding, the user can now generate a JP2 file including an XML box with the index used when browsing the image with JPIP
2011-09-09 14:52:42 +00:00
Antonin Descampe
9a89e2f162
backport r898 to r907 in openjpeg-1.5 branch
2011-09-01 12:08:10 +00:00
Antonin Descampe
6adb5f5070
added NEWS, AUTHORS and THANKS files. Cosmetic changes in autotools files
2011-08-16 13:23:36 +00:00
Antonin Descampe
d1d662768d
removed obsolete testing directory and *.nix files
2011-08-16 09:28:37 +00:00
Mickael Savinaud
4f329cbb45
fixed wrong patch with the return value of fgets into convert.c file
2011-08-11 08:21:28 +00:00
Mickael Savinaud
0e8995aa7e
fixed error with the return value of fgets into convert.c file
2011-08-10 15:54:15 +00:00
Mickael Savinaud
676f8f189f
removed unused parameters warnings with the solution proposed by myself and Bob Friesenhahn
2011-08-10 08:12:10 +00:00
Mickael Savinaud
5743cca5f8
solve some obvious warnings for WIN platform, increase number of warning reported on the dashboard, correct last warnings with gcc 4.4 (-Wall)
2011-07-29 08:50:55 +00:00
Mickael Savinaud
e716a316f6
manage case 0 frames inside yuv_num_frames function and correct some warnings with gcc4.5 (credit to Winfried)
2011-07-28 10:45:22 +00:00
Mickael Savinaud
c2b0a8101b
correct some warnings detected under unix platform
2011-07-27 16:37:57 +00:00
Mickael Savinaud
f88a57e5d7
added new decoding/dump tests based on data found in input/nonregresion repository (remove JPEG2000_CONFORMANCE_DATA_ROOT variable, add REF_DECODER_BIN_PATH variable for the encoder test suite). Remove definitively old tests
2011-07-27 12:45:04 +00:00
Mickael Savinaud
14799e25c6
delete double semi-colon at end of line which generate crash on win platform
2011-07-26 07:57:53 +00:00
Mickael Savinaud
ff6d246efd
modify j2k_dump to support output file, needed for non-regression tests
2011-07-25 16:27:07 +00:00
Mickael Savinaud
a7f08e9b36
fixed issue 74 for trunk
2011-07-25 07:31:52 +00:00
Mickael Savinaud
a19c8a4ea3
add new decode tests based on conformance data and tolerance. Non regression is also added on the decoder output. Deactivate old tests.
2011-07-21 15:23:31 +00:00
Mickael Savinaud
f8de2fc8eb
to follow last version of conformance data about component separator for pgx file, we changed - to _ separator even if nb component = 1
2011-07-21 14:56:29 +00:00
Mickael Savinaud
9cd5752e38
correct build error (mislocated declaration) with convert to tiff function when HAVE_LIBTIFF is defined
2011-07-18 08:58:18 +00:00
Mickael Savinaud
65f7f8dc50
improved some CMakeLists files linked to the build of applications which used thirdparty
2011-07-13 16:49:53 +00:00
Antonin Descampe
a5130aebab
fixed bmptoimage (see http://groups.google.com/group/openjpeg/browse_thread/thread/33a24c5896bf6391 )
2011-07-03 18:23:33 +00:00