Mickael Savinaud
f8fc214b11
[trunk] rename local functions in t2 with opj_ prefix
2012-09-27 09:14:58 +00:00
Mickael Savinaud
7861bfa45e
rename from t2_skip_packet to opj_t2_skip_packet;
...
rename from t2_skip_packet_data to opj_t2_skip_packet_data;
2012-09-27 08:56:00 +00:00
Mathieu Malaterre
1ff1401ff1
[trunk] Fix Heap-based buffer-overflow when decoding openjpeg image
...
Thanks to Huzaifa Sidhpurwala of Red Hat Security Response Team for report
This does not affect release 1.5.0 and/or 1.5 release branch.
Fixes issue 170
2012-09-10 11:05:15 +00:00
Mathieu Malaterre
20beb093a1
[trunk] Fix all C90 issues using gcc -pedantic -Wno-long-long to track them
...
As a side effect, fix all comment style to remove extra gcc output
Fixes issue 173
2012-09-10 09:04:47 +00:00
Mickael Savinaud
f16216e270
[trunk] STYLE: Clean up documentation errors
...
Functions should only have formal documentation in one place, and preferably in the declaration (i.e. repeated documentaiton should not be at both the declaration and the definition, because it causes too much maintenance to keep them syncronized). In cases where the definition is also the declaration (as is often the case for static functions in the .c files) the documentation was preserved at the first use of the function signature.
Functions that are formally documented should contain documentation for each function argument.
The clang 3.1 compiler issues documentation warnings when the documentation block with @params preceeding a declaration does not match the argument list. This patch set follows a convention used elsewere in openjpeg to add a placeholder FIXME DOC description where one was previously missing.
Thanks to Hans Johnson.
2012-08-30 16:56:31 +00:00
Luc Hermitte
4e81ea2a8a
[trunk] realloc is misused and may leak memory (Issue#168)
2012-08-22 18:45:31 +00:00
Mickael Savinaud
3a78e8010d
[trunk] modify image_to_j2k and the lib to support functionalities given by the v2 alpha branch
2012-03-15 10:23:20 +00:00
Mathieu Malaterre
4a2673772a
[trunk] Fix a bunch of warning about C++ comments in C code.
2012-03-02 15:53:14 +00:00
Mathieu Malaterre
44a3af51f0
[trunk] merge r1322 from branch 1.5 over to trunk
2012-03-02 15:04:45 +00:00
Mathieu Malaterre
24d7f54662
[trunk] merge rev 1228 from 1.5 to trunk
2012-03-02 14:14:31 +00:00
Mathieu Malaterre
79fee501af
Apply doxygen fixes suggested by Brad Hards on opj mailing list.
2011-12-03 17:26:59 +00:00
Mickael Savinaud
ff3c441023
[trunk] WIP: fix bug when decoding an area or a tile with special resolution
2011-11-17 14:29:36 +00:00
Mickael Savinaud
27e255fa75
[trunk] WIP: correct some memory leaks in applications functions
2011-10-12 14:42:21 +00:00
Mickael Savinaud
ee0e8a3aad
[trunk] WIP: fix the decoding process with conformance files and V2 framework
2011-10-05 16:27:16 +00:00
Mickael Savinaud
a600d8f4e2
[trunk] WIP: add basis for a new output management of the codestream information and index
2011-09-27 12:14:11 +00:00
Mickael Savinaud
7062c01b68
WIP: fixed build issues with JPWL option ON
2011-09-20 14:50:04 +00:00
Mickael Savinaud
ac59fd1476
WIP: begin to test opj_decode_tile_data
2011-09-19 16:34:44 +00:00
Mickael Savinaud
6561d70664
WIP: update t1, t2, tcd to use same strut as in V2
2011-09-19 16:09:19 +00:00
Mickael Savinaud
d44375aece
WIP: create a new framework to output file information
2011-09-19 16:01:49 +00:00
Mickael Savinaud
b0ef524b9e
WIP: new image_header struct is used and enable used of cstr_info
2011-09-19 13:30:21 +00:00
Mickael Savinaud
b551844cc2
Work In Progress: insert elements from V2 framework into the trunk
2011-09-19 13:04:04 +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
Antonin Descampe
0c9f6a3ac9
fixed another bug related to the number of packets in a tile-part, not correctly taken into account when generating an index file during decoding
2011-05-16 19:39:07 +00:00
Antonin Descampe
0dc7f6a2d3
Fixed doxygen data inside source code (from winfried)
2010-10-24 20:28:22 +00:00
Antonin Descampe
eeefefd56c
Added files to let people build openjpeg with configure tools ; Added makefiles to let people manually build openjpeg on *nix platforms ; Removed obsolete Makefiles ; Renamed dirent.h to windirent.h ; Made optional the PNG, TIFF, and LCMS support in CMake files ; Added opj_config* files to configure openjpeg before building it (opj_config.h generated by configure, cmake, or manually by the user) ; Renamed this file from ChangeLog to CHANGES ; Renamed License.txt to LICENSE ; Updated README files ; Added INSTALL and LICENSE files ; Added man pages
2010-10-05 10:33:15 +00:00
Francois-Olivier Devaux
fdf04af271
[v1.4]Fixed issue 6 on google code. Variable "pi" not freed or pointed-to in function "pi_create_encode". Thanks to Kent Mein for reporting this.
...
[v1.4]Fixed problem with Borland C++ Builder (Borland C do not have lrintf). Thanks Marek Mauder for this fix.
2010-04-08 20:19:54 +00:00
Francois-Olivier Devaux
287fb0b8fd
Bug fixed by David Bruken. Fixed memory allocation issue in opj_malloc.h.
...
Possible errors in pi_create_encode handled
2007-12-21 10:19:01 +00:00
Parvatha Elangovan
64ed560f4f
In pi.c, removed the Recursive function pi_check_next_level() and modified the code.
2007-12-19 12:28:40 +00:00
Francois-Olivier Devaux
010ae27471
Patch by Callum Lerwick. The opj_tcd_cblk array is one of the largest allocations, because it contains a bunch of static buffers. This also makes it a major source of cache thrashing. This patch allocates the buffers from the heap, and dynamically sizes them in the decoder. I have not yet managed to dynamically size them in the encoder, getting the decoder to do it was tricky enough... I also split opj_tcd_cblk_t into separate encode and decode versions. A lot of fields were not used by both, so this cuts its size even further.
2007-11-14 10:52:02 +00:00
Francois-Olivier Devaux
24e189e4d8
Patch by Callum Lerwick. This patch rearranges the largest memory allocations so they're allocated as late as possible, and freed as soon as possible. This cuts memory usage by about half on two large test images.
2007-11-14 08:45:00 +00:00
Francois-Olivier Devaux
1f11a4fe90
Changed the way the image structure is allocated when the decoding parameters include some resolutions to discard. This should have a significant impact for the decoding of huge images when some resolutions are discarder (-r parameter)
...
Warning: The output image size is now reduced when discarding resolutions !
2007-10-12 15:04:34 +00:00
Parvatha Elangovan
7e40a9475a
Fixed issues with generation of SOP marker.
2007-09-19 14:56:19 +00:00
Parvatha Elangovan
a6ba04cdf4
Fixed issues with Reading and Writing TIF images in convert.c to avoid segmentation fault.
...
Fixed issues relating to using user specified rates for CINEMA option for multiple images.
2007-09-18 13:07:29 +00:00
Francois-Olivier Devaux
569bbb0077
Fixed issues with cstr_info when codestream has components with different number of resolutions.
2007-09-17 14:00:43 +00:00
Francois-Olivier Devaux
3816e0edf4
Indexes can now be generated when decoding J2K codestreams.
2007-09-07 15:01:55 +00:00
Francois-Olivier Devaux
7a2d96efe1
Added information regarding the end of packet position in the index
2007-08-30 15:32:51 +00:00
Francois-Olivier Devaux
acfe0ad645
Changed the OpenJPEG library interface to enable users to access information regarding the codestream (also called index).
2007-08-30 09:51:20 +00:00
Francois-Olivier Devaux
adca52578d
Memory leaks fixed
2007-08-21 12:21:35 +00:00
Francois-Olivier Devaux
7dcb817e6a
Fixed the DCinema filesize allocation. It now includes the SOT marker size
2007-08-08 09:41:16 +00:00
Francois-Olivier Devaux
3d626da232
Fixed the generation of index files. Now works with cinema formats.
2007-06-15 13:27:43 +00:00
Parvatha Elangovan
dbd132dca8
Accepting "j2c" as format for Encoding and Decoding. Modification in image_to_j2k.c.
...
Modified imagetotif() to read images with signed data. Modification in convert.c.
2007-04-10 16:23:48 +00:00
Parvatha Elangovan
dd18811600
Digital cinema compliance for 4K chosen by "-cinema4K" option. Modification in image_to_j2k.c.
...
Bit rate limitation for each color component. Modification in image_to_j2k.c, t2.c.
Modified and tested Progression order change "-POC" option. Modification in image_to_j2k.c, j2k.c, pi.c.
Function j2k_check_poc_val() to check for possible loss of packets in case of wrong POC declaration. Modification in j2k.c.
Structure T2_MODE. This tells if the t2_encode_packets() is called during Threshold calculation or in Final pass. Modification in j2k.h, tcd.c
2007-04-04 13:40:32 +00:00
Parvatha Elangovan
9ba672366e
Enable accepting file names with `-´ symbol .Modification getopt.c
...
Rsiz profile name generation to be STD_RSIZ for profiles which are not DCI compliant.Modification in image_to_j2k.c
Renamed convert_progression_order to j2k_convert_progression_order. Modification j2k.c
Calculation of number of tile part in each tile in j2k_calculate_tp. Modification j2k.c
j2k_setup_encoder to set bit rate limitation for digital cinema compliance with quality option. Modification in j2k.c
Equation to check multiple tile precincts. Modification pi.c
array size generation of pi->include in pi_initialise_encode().Modification in pi.c
Modification in pi_create_encode for tile part generation.Modification in pi.c
In tcd_rateallocate a variable stable_threshold which holds the valid threshold value. This is used to avoid error in case of a wrong threshold value in the last iteration. Modification in tcd.c.
2007-03-29 14:15:14 +00:00
Giuseppe Baruffa
144e1ff4e6
Following to Hervé's suggestions, all the exit() calls, added by JPWL strict checking in t2.c and j2k.c, have been substituted with (object free'ing + opj_evt_message(EVT_ERROR) + return); added linking to TIFF library in the JPWL VC6 workspaces
2007-03-27 17:18:56 +00:00
Parvatha Elangovan
694a173adb
Added feature for generation of tile parts. Modifications in image_to_j2k.c, openjpeg.c, j2k.c, pi.c
...
Added function j2k_write_tlm(),to generate TLM marker for a Digital cinema compliant codestream. Modifications in j2k.c.
2007-03-20 17:15:18 +00:00
Francois-Olivier Devaux
ed3aec55fd
Copyright update
2007-01-15 09:55:40 +00:00
Francois-Olivier Devaux
2c03b73dff
First integration of JPWL code
2006-12-04 14:59:33 +00:00
Mathieu Malaterre
b883da435b
COMP: Fix declaration hides parameter len
2006-02-18 12:52:52 +00:00
Mathieu Malaterre
6a4572a56f
COMP: Fix declaration hides parameter len
2006-02-18 12:51:35 +00:00
Freeimage
355b88c15d
fixed various minor warnings occuring under icc9 and bcc32, added MSVC project and compiler directives to build a 'standard' WIN32 DLL
2006-01-31 21:26:11 +00:00