9
* [antonin] fixed MCT check bug in t1_getwmsedec. See http://groups.google.com/group/openjpeg/browse_thread/thread/d9d96dd4ec3e7443 for info.
12
* [antonin] fixed "tiffio" header inclusion to use user version on Win32 system only (otherwise assume its existence in system headers).
15
* [antonin] fixed minor bugs which were triggering warnings at compilation (different signedness, wrong pointer type, etc)
18
* [antonin] openjpeg.c : fixed initialization of parameters->cp_disto_alloc/fixed_quality/fixed_alloc/tcp_numlayers because they were preventing to use the -q and -f options.
21
* [antonin] JavaOpenJpegDecoder.c : fixed a signed/unsigned behaviour when returning form C to JAVA
24
* [antonin] found a bug in tcd.c that was preventing to find the correct threshold in tcd_rateallocate.c for high-precision images. Applied a temporary patch but a better solution should be found.
27
* [antonin] fixed a bug in image_to_j2k.c that was preventing the 'r' option to work properly (everything was compressed lossless regardless of the specified rate).
30
! [FOD] Modified the way raw images with more that 8bpp are read and written
33
+ [Parvatha] Added the default lossless parameter to opj_set_default_encoder_parameters in openjpeg.c.
36
* [antonin] fixed a bug in dirent.h that prevented codec on Linux Alpha Systems to compile correctly. Thanks to RobinC.
39
* [antonin] fixed a bug in j2k.c (j2k_write_sod) that allowed to get negative rates, thanks zhong1985624 for pointing this.
42
* [antonin] additional test to avoid crash due to invalid image size, patch by Christopher Layne
45
* [antonin] memory leak fixed in openjpeg.c (opj_destroy_cstr_info()), patch by Carsten Juttner
48
+ [GB] help line for the -F option in j2k_to_image
51
! [FOD] Changed Java files copyright in JavaOpenJPEG module
54
* [FOD] Fixed openjpeg.c for proper initialization of codec context structures (dinfo in opj_create_compress()
55
and opj_create_decompress(). Bug fix suggested by Andrey V. Kiselev
56
* [FOD] Clean up of opj_aligned_malloc(), to just forgo the use of posix_memalign(),
57
as apparently memalign() is what is working better for everyone. Patch by Callum.
60
- [FOD] Removed the J2KViewer module, which has been replaced by OPJViewer
61
* [FOD] Fixed the error handling of j2k_decode in jp2.c, thanks to Robin Cornelius
64
* [GB] Minor style modifications to comply with c99 compiler flag; removed Microsoft-specific "union-in-struct" syntax; Re-enabled cstr_info struct creation when -W switch is specified
65
! [GB] Changed a number of things in opjviewer (e.g., decoding thread does not execute GUI calls anymore), to have it running under linux --> it is better than before, but still crashes
68
! [Parvatha] In convert.c, corrected imagetobmp() conversion for grayscale. In tcd.c, corrected Rate modification in
69
tcd_init_encode(). Thanks to Jeremy Furtek and J�r�me Fimes.
72
! [GB] In opjviewer, unification of JPEG 2000 family handlers (*.jp2, *.mj2, *.j2k) in a single file
75
! [FOD] In image.c, changed the opj_image_create0() memory allocation from malloc() to calloc() in order
76
to avoid segfaults when freeing the memory allocated for the coding of bad images.
77
Thanks to Christopher Layne for this improvement.
80
+ [antonin] Initial commit of Xcode project directory (XCode 2.5 for macosx)
81
available targets : libopenjpeg (stat and dyn), image_to_j2k, j2k_to_image
84
* [antonin] fixed opj_malloc.h for macosx (bugfix provided by janpeder, thanks)
87
+ [FOD] Added missing files to JavaOpenJPEG project (files from Patrick Piscaglia)
90
* [Parvatha] Patch by Callum Lerwick. Fixed bug during encoding using tile option in tcd.c
92
----------------------
94
VERSION 1.3.0 RELEASED
95
----------------------
98
* [FOD] Bug fixed by David Bruken. Fixed memory allocation issue in opj_malloc.h
99
! [FOD] Possible errors in pi_create_encode handled
102
* [Antonin] changed variables names alpha, beta, gamma, delta in dwt.c to avoid re-declarations on Macosx
103
! [Parvatha] In pi.c, removed the Recursive function pi_check_next_level() and modified the code.
104
* [FOD] Fixed allocation problem in pi.c
107
+ [FOD] In mqc.h, changed MQC_NUMCTXS from 32 to 19 as there are only 19 possible contexts
110
+ [FOD] First import of JAVAOpenJPEG, a Java wrapper of OpenJPEG, developed by Patrick Piscaglia of Telemis (www.telemis.com).
111
Thank you Patrick for this new module !
114
! [GB] Added index.h and index.c in VC6 projects; wrapped index.h in the C++ preprocessor; modified OPJViewer project and some files.
117
+ [FOD] Created the file index.c in the codec directory. This file handles the creation of index files,
118
at encoding and decoding.
119
* [FOD] Fixed bugs during the creation of the index (PCRL progression order)
120
* [FOD] Fixed the maximum number of resolutions a user can discard while decoding.
121
Added an error state in J2K_STATE (j2k.c)
124
! [FOD] - First Patch by Callum Lerwick. Instead of reinventing realloc, j2k_read_sod now just uses opj_realloc in j2k.c
125
- Second Patch by Callum Lerwick. This patch rearranges the largest memory allocations so they're allocated as
126
late as possible, and freed as soon as possible. This cuts memory usage by about half on two large test images.
127
- Third Patch by Callum Lerwick. The opj_tcd_cblk array is one of the largest allocations, because it
128
contains a bunch of static buffers. This also makes it a major source of cache thrashing. This patch allocates
129
the buffers from the heap, and dynamically sizes them in the decoder. I have not yet managed to dynamically size
130
them in the encoder, getting the decoder to do it was tricky enough... I also split opj_tcd_cblk_t into separate
131
encode and decode versions. A lot of fields were not used by both, so this cuts its size even further.
133
* [FOD] Avoided ABI breakage
136
! [FOD] Patch by Dzonatas and Callum Lerwick.
137
Fp/vectorization patch which basically converts most of the irreversible decode codepath to floating point,
138
eliminating a few rounds of int/fp conversion, resulting in a vast performance improvement,
139
and an increase in accuracy.
142
! [FOD] In t1.c, small change to avoid calling twice t1_getwmsedec()
143
Patches from Callum Lewick:
144
- Basic gcc optimization flags in cmake and makefile match.
145
- Fixed some spelling errors in dwt.c.
148
*+ [GB] Fixed a bug which prevented JPWL from working on multi-tiled images; added some more fields in the interface info structures
149
(keep a list of markers, save start packet number for each tile)
152
* [GB] Improved success for the linux build; OPJViewer shows all the COM contents
155
* [FOD] Changed the ROI parameter in the image_to_j2k codec to make it correspond to the documentation (i.e. -ROI c=0,U=25)
156
* [FOD] Patch from Callum Lewick. Memset patch.
157
The main idea of the patch is that currently opj_malloc clears all allocations, which unnecessarily
158
dirties up the cache and eats bandwidth. This patch makes it no longer do so, and I've painstakingly determined which allocations actually need
159
to be cleared and changed them to use opj_calloc() instead. I previously tried to just get rid of the opj_*alloc wrappers but that
160
idea was nixed, so this time I'm trying it with macros. I also put in a gcc pragma that helps enforce their use. Which got messy. :) It caught a
161
few places they weren't used but it also revealed that the mj2 tools are not very cleanly separated from the library. It includes all the
162
internal headers, but it wasn't using the malloc wrappers. I figured the binaries should be "external" and have minimal knowledge of the
163
internals of the library. I patched them to not include opj_includes.h, and include only the internal headers they actually need. However,
164
they're using the opj_clock() function, which is in with the malloc wrappers. So I decided to move the malloc wrappers to their own header.
165
But mj2.c seems to want to be "internal", so I patched it to use the wrappers. Note that this patch changes the semantics of opj_malloc, it no longer
166
clears the memory it allocates. If you need it to be cleared, you must use opj_calloc instead, or memset it yourself. It is also somewhat
167
invasive, please test it extensively. I've been pounding on it all summer with my test suite, Second Life, and valgrind, and it checks out clean.
170
* [FOD] Changed the way the image structure is allocated when the decoding parameters include some resolutions to discard.
171
This should have a significant impact for the decoding of huge images when some resolutions are discarder (-r parameter)
172
Warning: The output image size is now reduced when discarding resolutions !
175
* [FOD] Patch from Callum Lewick. Clean up of j2klib.h for the aligned malloc stuff.
176
It makes it work right with mingw, as _mm_malloc() isn't a macro, attempts to pave the way to using cmake
177
to check for this stuff and combines a patch from Dana Fagerstrom at Sun that makes it use memalign() on Solaris
178
convert.c: Changed some error comments for TIFF images
181
* [FOD] Patch from Callum Lewick. Fixed dwt.c where an alignment in buffer was problematic under x86_64.
184
* [Mathieu Malaterre] BUG: Fix previous patch from Callum Lerwick. I have no
185
clue what CMAKE_INSTALL_LIBDIR refers too. Bump up cmake 2.2 restriction to
186
cmake 2.4 because of previous patch (not backward compatible). Properly set the SOVERSION in a cross plateform way (yes WIN32 is a platform)
189
* [Parvatha] Fixed issues with generation of SOP marker.
192
* [Parvatha] Fixed issues with Reading and Writing TIF images in convert.c to avoid segmentation fault.
193
* [Parvatha] Fixed issues relating to using user specified rates for CINEMA option for multiple images.
196
* [FOD] Fixed issues with cstr_info when codestream has components with different number of resolutions.
197
! [FOD] OpenJPEG library interface modified to retain compatibility with version 1.2
200
* [FOD] Patch from Callum Lerwick.
201
Fixed the library linking so it links with the soversion properly set.
202
Fixes up the install targets so that it interacts properly with RPM.
203
Install target for MJ2. Sets some necessary and useful CFLAGS if gcc is in use.
204
* [FOD] Updated the MJ2 codec to be compatible with the recent changes in the OpenJPEG library
207
* [GB] JPWL encoding is finalized correctly into the JP2 file format; added an additional structure in opj_codestream_info, to keep a record of the written markers
210
* [GB] Adapted the JPWL and OPJViewer code to new interface; fixed a samll bug in JPWL which created large EPBs even when null protection was specified
213
+ [FOD] Indexes can now be generated when decoding J2K codestreams.
214
* [Mathieu Malaterre] Upon failure, properly return error code (!=0).
215
* [Mathieu Malaterre] CMake: Add cmake code to do testing if user has properly setup a testimages directory
218
+ [Mathieu Malaterre] CMake: start compiling mj2, jpwl and jp3d
219
+ [Mathieu Malaterre] CMake: output all executable/libs into one single directory
220
+ [Mathieu Malaterre] CMake: start compiling index_create
221
+ [Mathieu Malaterre] OpenJPEG.rc update copyright year
222
+ [Mathieu Malaterre] CMake: add Java j2kviewer but do not compile it using cmake since cmake has too poor support for Java. Should create a custom command running ant instead.
223
+ [Mathieu Malaterre] CMake: Add doxygen output
224
+ [GB] One more field in the codestream_info struct for recording the number of packets per tile part; JPWL now distributes the EPBs in all the tile part headers
225
+ [Mathieu Malaterre] CMake: Add very simple tests (simply run command line with no option)
226
* [Mathieu Malaterre] Fix unitialized read in img_fol (we may need a smarter initialize than memset)
229
+ [GB] Added some fields in the codestream_info structure: they are used to record the position of single tile parts.
230
Changed also the write_index function in the codec, to reflect the presence of this new information.
233
+ [GB] Added the knowledge of JPSEC SEC and INSEC markers (you have to compile the JPWL project). Management of these markers is limited to skipping them without crashing:
234
no real security function at this stage. Deprecated USE_JPSEC will be removed next
237
* [GB] Fixed save capabilities in OPJViewer due to recent code upgrade
240
* [FOD] Changed the OpenJPEG library interface to enable users to access information regarding the codestream (also called codestream index).
241
This index is usefull for all applications requiring to have a scalable acces to the codestream (like JPIP applications, ...)
242
Currently, this information is only available when encoding an image.
243
+ [FOD] Added the information regarding the end of packet position in the index
246
* [FOD] Fixed wrong destructors called in openjpeg.c
247
* [FOD] Fixed bug in j2k_decode_jpt_stream
250
* [Parvatha] The end of main header is calculated after TLM and POC marker for Dcinema.
253
+ [FOD] Added support for Visual Studio 2005
254
* [FOD] Robustified MJ2 codecs
255
* [Parvatha] Solved problems with codec reading from image file directory when filename had more than one "." in name
256
* [Callum Lerwick] Minor cleanup patch, that gets rid of a bunch of "old style declaration" warnings from Intel's compiler
257
* [Callum Lerwick] Aligned malloc using Intel's _mm_malloc(). Cleanup on the t1 memory allocation, getting rid of some leftover debug code
258
* [Callum Lerwick] Memory leaks fixed
259
* [Callum Lerwick] Reworks of t1_updateflags to get rid of the shift operation
260
* [Callum Lerwick] mqc_setcurctx moved to the header to allow it to be inlined into the t1.
261
* [Callum Lerwick] Consolidated some calls to mqc_setcurctx.
262
* [Callum Lerwick] Cleaned up t1_generate_luts to output the proper types.
263
* [Callum Lerwick] Replaced the large ctxno_mag lookup table with a small bit of inline-able branchless code
264
* [Callum Lerwick] Moved the orient flipping into the ctxno_zc table.
267
+ [FOD] Added support for the TGA file format in the codec
270
* [Parvatha] Fixed the DCinema filesize allocation. It now includes the SOT marker size
273
+ [GB] Added a basic saving capability to OPJViewer
276
! [FOD] Updated libtiff library version to 3.8.2 (for WIN32)
277
* [FOD] Updated BMP and PxM truncation when decoding J2K files with more than 8 bits
280
* [FOD] Fixed raw option for images with more than three components
283
+ [FOD] Added support for RAW images. This module has been developped by the University of Perugia team. Thanks to them ! [image_to_j2k.c j2k_to_image.c convert.c convert.h]
9
! [FOD] Modified the memory allocation for codestreams containing multiple tiles. The memory is now allocated for each tile indenpendently, leading to an important decrease of the virtual memory needed. [j2k.c tcd.h tcd.c]
286
! [FOD] Modified the memory allocation for codestreams containing multiple tiles. The memory is now allocated for each tile indenpendently,
287
leading to an important decrease of the virtual memory needed. [j2k.c tcd.h tcd.c]
10
288
! [FOD] Modified old comments about the ability to decode mega-images and comments about the disk size necessary to do this. [image_to_j2k.c and frames_to_mj2.c]
11
289
* [FOD] Added 2000 bytes for the memory allocation in cio.c for the minimum size of headers (useful in case of very small images) [cio.c]
14
* [GB] fixed a bug in JPWL module, which prevented to exploit the full error correction capability of RS codes (e.g. it gave up at 5 errors, even if 6 were correctable); defined a JPWL_MAXIMUM_EPB_ROOM for better customization of the maximum dimension of EPBs (the dimension is pre-calculated on an hypothesis, if it goes beyond 65535 there will be problems, thus we give a little less than the max, let's say 65450)
292
* [GB] fixed a bug in JPWL module, which prevented to exploit the full error correction capability of RS codes (e.g. it gave up at 5 errors,
293
even if 6 were correctable); defined a JPWL_MAXIMUM_EPB_ROOM for better customization of the maximum dimension of EPBs (the dimension
294
is pre-calculated on an hypothesis, if it goes beyond 65535 there will be problems, thus we give a little less than the max, let's say 65450)
17
297
* [ANTONIN] fixed the size of the memory allocation in cio.c (confusion between bits and bytes)