summaryrefslogtreecommitdiff
path: root/libopenjpeg/j2k.c
AgeCommit message (Collapse)Author
2011-01-02bug fixes to enable cmake compilation on WIN32 platform (see CHANGES for ↵Antonin Descampe
details)
2010-06-22Also dump the image info as well as cp info.Mathieu Malaterre
2010-03-24Code improvements using 'g++-4.4.0' to trace the code (v1.4). Thanks to ↵Francois-Olivier Devaux
Winfried for this patch.
2008-05-22fixed a bug in j2k.c (j2k_write_sod) that allowed to get negative rates, ↵Antonin Descampe
thanks zhong1985624 for pointing this.
2008-05-22additional test to avoid crash due to invalid image size, patch by ↵Antonin Descampe
Christopher Layne
2007-12-19In pi.c, removed the Recursive function pi_check_next_level() and modified ↵Parvatha Elangovan
the code.
2007-11-27Fixed the maximum number of resolutions a user can discard while decoding.Francois-Olivier Devaux
Added an error state in J2K_STATE (j2k.c)
2007-11-14Patch by Callum Lerwick. Instead of reinventing realloc, j2k_read_sod now ↵Francois-Olivier Devaux
just uses opj_realloc in j2k.c
2007-11-05Fixed a bug which prevented JPWL from working on multi-tiled images; added ↵Giuseppe Baruffa
some more fields in the interface info structures (keep a list of markers, save start packet number for each tile)
2007-10-18Patch from Callum Lewick. Memset patch. See ChangeLog for more details. ↵Francois-Olivier Devaux
Thanks Callum !
2007-10-12Changed the way the image structure is allocated when the decoding ↵Francois-Olivier Devaux
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-09-19Fixed issues with generation of SOP marker.Parvatha Elangovan
2007-09-17Fixed issues with cstr_info when codestream has components with different ↵Francois-Olivier Devaux
number of resolutions.
2007-09-11JPWL encoding is finalized correctly into the JP2 file format; added an ↵Giuseppe Baruffa
additional structure in opj_codestream_info, to keep a record of the written markers
2007-09-07Indexes can now be generated when decoding J2K codestreams.Francois-Olivier Devaux
2007-09-06One more field in the codestream_info struct for recording the number of ↵Giuseppe Baruffa
packets per tile part; JPWL now distributes the EPBs in all the tile part headers
2007-09-04Added some fields in the codestream_info structure: they are used to record ↵Giuseppe Baruffa
the position of single tile parts. Changed also the write_index function in the codec, to reflect the presence of this new information.
2007-09-03Added the knowledge of JPSEC SEC and INSEC markers (you have to compile the ↵Giuseppe Baruffa
JPWL project). Management of these markers is limited to skipping them without crashing: no real security function at this stage. Deprecated USE_JPSEC and USE_JPWL will be removed next
2007-08-30Changed the OpenJPEG library interface to enable users to access information ↵Francois-Olivier Devaux
regarding the codestream (also called index).
2007-08-28Fixed wrong destructors called in openjpeg.cFrancois-Olivier Devaux
Fixed bug in j2k_decode_jpt_stream
2007-08-24The end of main header is calculated after TLM and POC marker for Dcinema.Parvatha Elangovan
2007-08-21Memory leaks fixedFrancois-Olivier Devaux
2007-08-08Fixed the DCinema filesize allocation. It now includes the SOT marker sizeFrancois-Olivier Devaux
2007-07-13(no commit message)Francois-Olivier Devaux
2007-06-15Fixed the generation of index files. Now works with cinema formats. Francois-Olivier Devaux
2007-05-23Bug fixed by Sylvain Munaut. Change in the reading of the POC marker. Since ↵Francois-Olivier Devaux
COD/COC can be anywhere in the header, the decoder cannot always know while decoding the POC marker the value of numlayers and numresolution.
2007-05-10Possibility to choose to apply MCT (multiple component transform) enabled, ↵Francois-Olivier Devaux
and new decoding_limit: DECODE_ALL_BUT_PACKETS
2007-04-04Digital cinema compliance for 4K chosen by "-cinema4K" option. Modification ↵Parvatha Elangovan
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-03-29Enable accepting file names with `-´ symbol .Modification getopt.cParvatha Elangovan
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-27Following to Hervé's suggestions, all the exit() calls, added by JPWL ↵Giuseppe Baruffa
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-21Fixed j2k_prog_order_list[]. Modifications in j2k.c.Parvatha Elangovan
Fixed t1_decode_cblks. Modifications in t1.c.
2007-03-20Added feature for generation of tile parts. Modifications in image_to_j2k.c, ↵Parvatha Elangovan
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-07Added option for Digital cinema profile compliant codestream. This can be ↵Parvatha Elangovan
chosen by "-cinema2K" or "-cinema4K" for a 2K and 4K compliance respectively. The feature for tileparts has not been implemented in this version. Modification in image_to_j2k.c Added the Digital Cinema profiles (CINEMA2K and CINEMA4K) to the list of profiles recognized in the codestream SIZ marker segment. Modification in openjpeg.h,j2k.c Added feature for constant quality within bitrate defined in Digital cinema standards. Modification in tcd.c Modified the method of generation of buffer length. Modification in cio.c
2007-02-19Added OPJ_LIMIT_DECODING enabling us to limit the decoding to main headerFrancois-Olivier Devaux
2007-01-31Extra tokens at the end of #endif directive corrected in openjpeg.c, j2k.c ↵Francois-Olivier Devaux
and image_to_j2k.c -> no more warnings in linux compilation
2007-01-15Copyright updateFrancois-Olivier Devaux
2006-12-04First integration of JPWL codeFrancois-Olivier Devaux
2006-10-31added the ability to specify the rate as "float" (before : integer)Antonin Descampe
2006-01-18changed the name of j2k_realloc to opj_reallocFreeimage
2005-12-08OpenJPEG version 1.1Antonin Descampe
2005-12-02openjpeg version 1.0 (previous version still available with tag opj0-97)Antonin Descampe
2005-11-08small changes to remove warnings related to signednessAntonin Descampe
2005-11-01Changes proposed by Mathieu Malaterre from the GDCM project... Thanks a lot ↵Antonin Descampe
Mathieu - '//' replaced by '/* */' - inclusion of int.h in int.c - inclusion of j2k.h in int.h in order to export symbols - adding (void) var when a variable is declared but not used - some explicit cast - CLOCKS_PER_SEC is declared as float in bcc55, so there is a need to cast it to int for the modulo operation - some variables changed from float -> double
2005-09-20bug fixed when asking for an index with more than (layer*resolutions*100) ↵Antonin Descampe
packets per tile
2005-09-13bug fixed when freeing the memory allocated if ppm-marker or ppt-marker is usedAntonin Descampe
2005-06-02Conversions from int to unsigned int to ensure correct execution of int_min ↵Francois-Olivier Devaux
at line 626 to 628
2005-03-25#endif;Francois-Olivier Devaux
replaced by #endif
2005-03-16Modifications made to enable the decoding of a J2K file headers without ↵Francois-Olivier Devaux
decoding all packets using #NO_PACKETS_DECODING Used with MJ2_to_metadata
2005-01-26* function getopt added to the decoder (to efficiently manage argumentsAntonin Descampe
in command line) * reduce_on, reduce_value grouped in a single variable reduce * up-to-date usage display * image_type renamed --> decod_format * JPEG2000_format renamed --> cod_format
2004-11-29Index structure adpated for other progression orders than LRCPAntonin Descampe
(thanks to Stefano Pensa)