summaryrefslogtreecommitdiff
path: root/libopenjpeg/tcd.c
AgeCommit message (Collapse)Author
2012-09-28[trunk] Start FolderReorgProposal taskMathieu Malaterre
Update issue 177
2012-09-27[trunk] remove t2_destroy, t2_decode_packets and t2_decode_packetMickael Savinaud
rename from t2_destroy_v2 to opj_t2_destroy rename from t2_decode_packets_v2 to opj_t2_decode_packets rename from t2_decode_packet_v2 to opj_t2_decode_packet
2012-09-27[trunk] remove old v1 style function t2_createMickael Savinaud
rename t2_create_v2 to opj_t2_create
2012-09-27[trunk] remove t2_encode_packet and t2_encode_packetsMickael Savinaud
rename from t2_encode_packets_v2 to opj_t2_encode_packets
2012-08-30[trunk] STYLE: Clean up documentation errorsMickael Savinaud
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-22[trunk] realloc is misused and may leak memory (Issue#168)Luc Hermitte
2012-08-17remove deprecated v1 style function t1_destroy; rename t1_destroy_v2 to ↵Mickael Savinaud
opj_t1_destroy remove deprecated v1 style function t1_decode_cblks; rename t1_decode_cblks_v2 to opj_t1_decode_cblks remove deprecated v1 style function t1_encode_cblks; rename t1_encode_cblks_v2 to opj_t1_encode_cblks remove deprecated v1 style function t1_create; rename t1_create_v2 to opj_t1_create
2012-08-17remove deprecated v1 style function dwt_encode; rename dwt_encode_v2 to ↵Mickael Savinaud
opj_dwt_encode remove deprecated v1 style function dwt_decode; rename dwt_decode_v2 to opj_dwt_decode remove deprecated v1 style function dwt_getgain; rename dwt_getgain_v2 to opj_dwt_getgain add opj_dwt_getnorm, opj_dwt_getnorm_real functions remove deprecated v1 style function dwt_encode_real; rename dwt_encode_real_v2 to opj_dwt_encode_real remove deprecated v1 style function dwt_getgain_real; rename dwt_getgain_real_v2 to opj_dwt_getgain_real rename dwt_calc_explicit_stepsizes to opj_dwt_calc_explicit_stepsizes
2012-08-16rename local tcd functions with opj_ prefixMickael Savinaud
2012-08-16remove deprecated v1 style function tcd_decode_tile; rename ↵Mickael Savinaud
tcd_decode_tile_v2 to opj_tcd_decode_tile remove deprecated v1 style function tcd_free_decode remove deprecated v1 style function tcd_free_decode_tile
2012-08-16remove deprecated v1 style function tcd_destroy; rename tcd_destroy_v2 to ↵Mickael Savinaud
opj_tcd_destroy rename tcd_init_v2 to opj_tcd_init remove deprecated v1 style function tcd_malloc_encode remove deprecated v1 style function tcd_free_encode remove deprecated v1 style function tcd_init_encode remove deprecated v1 style function tcd_malloc_decode remove deprecated v1 style function tcd_malloc_decode_tile remove deprecated v1 style function tcd_makelayer_fixed; rename tcd_makelayer_fixed_v2 to opj_tcd_makelayer_fixed remove deprecated v1 style function tcd_rateallocate_fixed; rename tcd_rateallocate_fixed_v2 to opj_tcd_rateallocate_fixed remove deprecated v1 style function tcd_makelayer; rename tcd_makelayer_v2 to opj_tcd_makelayer remove deprecated v1 style function tcd_rateallocate; rename tcd_rateallocate_v2 to opj_tcd_rateallocate remove deprecated v1 style function tcd_encode_tile; rename tcd_encode_tile_v2 to opj_tcd_encode_tile
2012-08-16remove deprecated v1 style function tcd_create; rename tcd_create_v2 to ↵Mickael Savinaud
opj_tcd_create
2012-08-16rename tcd functions with opj_ prefixMickael Savinaud
2012-07-11[trunk] This fixes issues seen on PDF filesMathieu Malaterre
Fixes issue 156
2012-05-14[trunk] Make sure the memory is initialized. valgrind was complaning in ↵Mathieu Malaterre
mqc_init_enc we were reading uninit value. See also comment in r479: FIXME: mqc_init_enc and mqc_byteout underrun the buffer if we don't do this. Why?
2012-05-13remove a fixme about tcd_deallocate and encodind precintMickael Savinaud
2012-03-19[trunk] replace more void* object pointer to proper function pointer: ↵Mathieu Malaterre
opj_procedure. Remove some warnings reported by gcc -pedantic
2012-03-15[trunk] modify image_to_j2k and the lib to support functionalities given by ↵Mickael Savinaud
the v2 alpha branch
2012-03-09[trunk] reverted to revision 1536Mickael Savinaud
2012-03-09[trunk] add tcd_get_encoded_tile_size in trunk from branch v2alphaMickael Savinaud
2012-03-02[trunk] Fix a bunch of warning about C++ comments in C code.Mathieu Malaterre
2012-03-02[trunk] merge r1323 from branch 1.5 over to trunkMathieu Malaterre
2012-03-02[trunk] merge rev 1228 from 1.5 to trunkMathieu Malaterre
2011-12-20Fix test NR-ENC-Bretagne2.ppm-4-encode on linux.Mathieu Malaterre
2011-12-20Fix strange line, as reported by lockalsash (gmail.com)Mathieu Malaterre
2011-10-11[trunk] WIP: correct some segfault with win platform and remove a aligned ↵Mickael Savinaud
allocation which produce error when a realloc is done on this pointer
2011-10-11[trunk] WIP: add stream length value to read unknown marker size, backport ↵Mickael Savinaud
855 into V2 framework, correct memory leak into get_cstr_info
2011-10-05[trunk] WIP: fix the decoding process with conformance files and V2 frameworkMickael Savinaud
2011-09-27[trunk] WIP: add basis for a new output management of the codestream ↵Mickael Savinaud
information and index
2011-09-19WIP: update t1, t2, tcd to use same strut as in V2Mickael Savinaud
2011-09-19WIP: create a new framework to output file informationMickael Savinaud
2011-09-19WIP: new image_header struct is used and enable used of cstr_infoMickael Savinaud
2011-09-19Work In Progress: insert elements from V2 framework into the trunkMickael Savinaud
2011-08-10fixed segfault with 123.j2c and bug.j2c images (thanks to Tim Mattox for his ↵Mickael Savinaud
contribution to this patch)
2011-08-10removed unused parameters warnings with the solution proposed by myself and ↵Mickael Savinaud
Bob Friesenhahn
2011-05-18defined new type "opj_bool", and new constants OPJ_FALSE and OPJ_TRUE, to ↵Antonin Descampe
avoid having to deal with "stdbool.h" (patch from Winfried)
2008-08-22found a bug in tcd.c that was preventing to find the correct threshold in ↵Antonin Descampe
tcd_rateallocate.c for high-precision images. Applied a temporary patch but a better solution should be found.
2008-02-05In convert.c, corrected imagetobmp() conversion for grayscale. In tcd.c, ↵Parvatha Elangovan
corrected Rate modification in tcd_init_encode().
2008-01-04Patch by Callum Lerwick. Fixed error during encoding using tile option in tcd.cParvatha Elangovan
2007-12-19In pi.c, removed the Recursive function pi_check_next_level() and modified ↵Parvatha Elangovan
the code.
2007-12-10First import of JAVAOpenJPEG, a Java wrapper of OpenJPEG, developed by ↵Francois-Olivier Devaux
Patrick Piscaglia of Telemis (www.telemis.com). Thank you Patrick for this new module !
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. The opj_tcd_cblk array is one of the largest ↵Francois-Olivier Devaux
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-14Patch by Callum Lerwick. This patch rearranges the largest memory ↵Francois-Olivier Devaux
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-13Patch by Dzonatas and Callum Lerwick. Fp/vectorization patch which ↵Francois-Olivier Devaux
basically converts most of the irreversible decode codepath to floating point, eliminating a few rounds of int/fp conversion, resulting in a vast performance improvement, and an increase in accuracy.
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-18Fixed issues with Reading and Writing TIF images in convert.c to avoid ↵Parvatha Elangovan
segmentation fault. Fixed issues relating to using user specified rates for CINEMA option for multiple images.
2007-09-17Fixed issues with cstr_info when codestream has components with different ↵Francois-Olivier Devaux
number of resolutions.
2007-09-07Indexes can now be generated when decoding J2K codestreams.Francois-Olivier Devaux