Commit Graph

208 Commits

Author SHA1 Message Date
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 3135642ff5 [trunk] Remove CMake-language block-end command arguments
Ancient versions of CMake required else(), endif(), and similar block termination commands to have arguments matching the command starting the block.  This is no longer the preferred style.
Thanks to Hans Johnson
2012-08-30 17:20:03 +00:00
Mickael Savinaud d5bb3b0039 [trunk] Convert CMake-language commands to lower case
Ancient CMake versions required upper-case commands.  Later command names became case-insensitive.  Now the preferred style is lower-case.
This also changes all the key words to lower case. The primary reason for changing key words is that all documentation for CMakeLists.txt now shows the key words as lower case. Even the printed “Mastering CMake v5” uses lower case.
Thanks to Hans Johnson
2012-08-30 17:14:39 +00:00
Mickael Savinaud de9e1a0693 [trunk] Remove all non-ascii characters (Several compilers and development tools are confused by non-ascii characters in source code. These have been removed) thanks to Hans Johnson 2012-08-30 16:51:30 +00:00
Mickael Savinaud 47b18d89f6 [trunk] COMP: Fix one warning identified by clang31 :
openjpeg/applications/codec/j2k_dump.c:362 col 29: warning: equality comparison
with extraneous parentheses
(thanks to Hans Johnson)
2012-08-30 16:34:17 +00:00
Mickael Savinaud b103fec939 [trunk] COMP: _v2 code remove (thanks to Hans Johnson and Winfried) 2012-08-30 15:43:09 +00:00
Luc Hermitte 4e81ea2a8a [trunk] realloc is misused and may leak memory (Issue#168) 2012-08-22 18:45:31 +00:00
Luc Hermitte 7bfdb31c77 [trunk] j2k_to_image gives fff-topic error message for non-openable files (Issue#167) 2012-08-22 18:22:20 +00:00
Mickael Savinaud fab7693da5 free local memory in image_to_j2k application 2012-08-16 12:03:20 +00:00
Mickael Savinaud cc1d601722 fix some warnings in jp2.c 2012-08-13 08:30:00 +00:00
Mickael Savinaud f12fde9132 [trunk] rename opj_destroy_cstr_info_v2 to opj_destroy_cstr_info 2012-08-09 12:56:43 +00:00
Mickael Savinaud 5d0ace0577 [trunk] rename opj_encode_v2 to opj_encode 2012-08-09 12:42:46 +00:00
Mickael Savinaud 6767ea2456 [trunk] rename opj_setup_encoder_v2 to opj_setup_encoder 2012-08-09 12:35:13 +00:00
Mickael Savinaud d009cf618a rename opj_create_compress_v2 to opj_create_compress 2012-08-09 12:28:51 +00:00
Mickael Savinaud 9a9897a9de [trunk] remove deprecated v1 style function opj_create_compress 2012-08-09 12:26:04 +00:00
Mickael Savinaud 52f414669a [trunk] rename opj_setup_decoder_v2 to opj_setup_decoder 2012-08-09 12:11:24 +00:00
Mickael Savinaud 35289bffe2 [trunk] rename opj_create_decompress_v2 to opj_create_decompress 2012-08-09 11:51:07 +00:00
Mathieu Malaterre efafbe9a5c [trunk] Use const keyword when appropriate 2012-07-25 13:10:43 +00:00
Mathieu Malaterre e38680a4df [trunk] Import changes from 1.5 branch 2012-07-25 13:10:21 +00:00
Mathieu Malaterre 0d0e7a1008 [trunk] 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.
Fixes issue 145
2012-05-29 13:55:49 +00:00
Mathieu Malaterre b8cc257ac5 [trunk] Follow up to r1691. Handle signed case. 2012-05-29 09:33:28 +00:00
Mathieu Malaterre bdb4d96678 [trunk] Add new behavior for codecs. Now supports little endian RAWL format. It is now possible to encode directly little endian raw file, by simply using the rawl extension. Code has been modified to use strcasecmp instead of strncasecmp to cope with 4 letters files extensions.
Update issue 141
2012-05-29 09:30:03 +00:00
Mathieu Malaterre 0c5fb4a81b [trunk] Add commented out code for tile support in applications. 2012-05-29 09:07:49 +00:00
Mickael Savinaud ee17910ec5 use the correct event handler in j2k_to_image.c 2012-05-14 17:47:10 +00:00
Mickael Savinaud 1023be33fb add new functions in jp2 codec from v2 branches; solve bug in j2k_setup_encoder_v2 2012-05-14 09:37:36 +00:00
Mickael Savinaud 80c23d4519 solve problem with input of image_to_j2k; using the right return type comparison for opj_stream_flush; add j2k_write_com_v2, j2k_write_poc_v2, j2k_write_eoc_v2 and j2k_write_tlm_v2 2012-05-13 22:13:58 +00:00
Mickael Savinaud 5652ccc780 [trunk] correct a bug in jpip building induced by the previous commit 2012-05-02 13:30:41 +00:00
Mickael Savinaud 055d429ae1 [trunk] Enhance support of events like the v2 branch. Use right name of variables. 2012-05-02 07:01:13 +00:00
Mathieu Malaterre 8231897b26 [trunk] apply patch from winfried on the mailing list. For more info see: https://groups.google.com/group/openjpeg/msg/e631d586a31c6de4 2012-04-23 13:28:20 +00:00
Mathieu Malaterre d045409b9f Adding sentinel code for debug 2012-04-23 09:15:29 +00:00
Mathieu Malaterre ef044d9f17 [trunk] attempt to fix clang/3.1 compilation error remotely 2012-03-27 08:11:14 +00:00
Mathieu Malaterre 0c5193c588 [trunk] Final touch to get rid of most truncation warnings 2012-03-26 16:42:52 +00:00
Mathieu Malaterre f2c2b3fc7a [trunk] one more round of warnings fixes 2012-03-26 16:18:58 +00:00
Mathieu Malaterre 1228e0e925 [trunk] change char* to const char* when possible. Remove more warnings 2012-03-26 16:08:05 +00:00
Mathieu Malaterre 3a3820bedc [trunk] remove warnings from jp2k decoder 2012-03-26 16:00:26 +00:00
Mathieu Malaterre 91ee6ed60f [trunk] change char* to const char* when possible. Remove more warnings 2012-03-26 15:56:04 +00:00
Mathieu Malaterre 7e28fdc176 [trunk] another round of compilation fixes 2012-03-26 15:37:04 +00:00
Mathieu Malaterre 569bc02649 [trunk] another set of warnings fixes for LFS support 2012-03-26 15:04:49 +00:00
Mathieu Malaterre 178309be47 [trunk] Fix equality into test 2012-03-26 14:50:34 +00:00
Mathieu Malaterre 2fb7ac9a58 [trunk] remove some simple warnings 2012-03-26 14:50:14 +00:00
Mathieu Malaterre 2e493cb89a [trunk] According to JPIP/A.2.3 in class identifiers should be an unsigned integer. Since portion of codes was using Byte8_t and other was using int, pick Byte8_t as best matching type 2012-03-26 14:44:12 +00:00
Mathieu Malaterre cdf0d77b20 [trunk] continue work on getting API to use off_t instead of long toward LFS support in JPIP (sock_manager) 2012-03-26 14:23:33 +00:00
Mathieu Malaterre ccdfaa9115 [trunk] continue work on getting API to use off_t instead of long toward LFS support in JPIP (auxtrans_manager) 2012-03-26 14:14:19 +00:00
Mathieu Malaterre 34af05ec30 [trunk] continue work on getting API to use off_t instead of long toward LFS support in JPIP (metadata_manager) 2012-03-26 13:53:25 +00:00
Mathieu Malaterre 6bd41e47ac [trunk] continue work on getting API to use off_t instead of long toward LFS support in JPIP (manfbox_manager) 2012-03-26 13:49:32 +00:00
Mathieu Malaterre 45d11c53f0 [trunk] continue work on getting API to use off_t instead of long toward LFS support in JPIP (j2kheader_manager) 2012-03-26 13:47:52 +00:00
Mathieu Malaterre 50a68d7d59 [trunk] continue work on getting API to use off_t instead of long toward LFS support in JPIP (index_manager) 2012-03-26 13:34:16 +00:00
Mathieu Malaterre cc47b5a78c [trunk] continue work on getting API to use off_t instead of long toward LFS support in JPIP (marker_param_t) 2012-03-26 13:18:09 +00:00
Mathieu Malaterre 34b4ec3624 [trunk] fix another simple warning 2012-03-26 13:15:40 +00:00
Mathieu Malaterre 86ed364dc0 [trunk] explicit cast missing 2012-03-26 13:02:40 +00:00