Antonin Descampe
bfd3fe8a4a
fixed minor bugs which were triggering warnings at compilation (different signedness, wrong pointer type, etc)
2009-09-10 12:29:51 +00:00
Mathieu Malaterre
a69db02b7f
COMP: minor compilation warning
2008-10-01 16:00:42 +00:00
Antonin Descampe
4a90f97639
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).
2008-08-21 16:00:44 +00:00
Francois-Olivier Devaux
4da178b0d8
Modified the way raw images with more that 8bpp are read and written
2008-08-08 13:15:36 +00:00
Antonin Descampe
846bd364be
fixed a bug in dirent.h that prevented codec on Linux Alpha Systems to compile correctly. Thanks to RobinC.
2008-06-12 14:55:12 +00:00
Giuseppe Baruffa
a92cc111a2
Added help line for the -F option in j2k_to_image
2008-03-12 10:40:42 +00:00
Giuseppe Baruffa
ac0cc6df62
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. 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
2008-02-11 14:43:11 +00:00
Parvatha Elangovan
29ea3dde47
In convert.c, corrected imagetobmp() conversion for grayscale. In tcd.c, corrected Rate modification in tcd_init_encode().
2008-02-05 15:15:38 +00:00
Francois-Olivier Devaux
26606c71c8
First import of JAVAOpenJPEG, a Java wrapper of OpenJPEG, developed by Patrick Piscaglia of Telemis (www.telemis.com). Thank you Patrick for this new module !
2007-12-10 13:16:01 +00:00
Giuseppe Baruffa
e06bcd027f
Added index.h and index.c in VC6 projects; wrapped index.h in the C++ preprocessor; modified OPJViewer project and some files.
2007-11-29 14:38:26 +00:00
Francois-Olivier Devaux
efa5f7977c
Created the file index.c in the codec directory. This file handles the creation of index files, at encoding and decoding.
...
Fixed bugs during the creation of the index (PCRL progression order)
2007-11-27 12:38:52 +00:00
Giuseppe Baruffa
95d760a173
Fixed a bug which prevented JPWL from working on multi-tiled images; added some more fields in the interface info structures (keep a list of markers, save start packet number for each tile)
2007-11-05 13:05:07 +00:00
Francois-Olivier Devaux
5fdc05d18d
Changed the ROI parameter in the image_to_j2k codec to make it correspond to the documentation (i.e. -ROI c=0,U=25)
2007-10-18 08:14:43 +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
Francois-Olivier Devaux
ab0473aa42
*Patch from Callum Lewick. Clean up of j2klib.h for the aligned malloc stuff.
...
*convert.c: Changed some error comments for TIFF images
2007-10-10 06:17:28 +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
55c4c14352
OpenJPEG library interface modified to retain compatibility with version 1.2. Sorry if some of you already adapted their code to the previous interface, but we want to avoid a ABI break....
2007-09-17 15:11:20 +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
Giuseppe Baruffa
1e705438e4
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
2007-09-11 15:21:12 +00:00
Giuseppe Baruffa
d70a0415b9
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
2007-09-07 23:16:31 +00:00
Francois-Olivier Devaux
3816e0edf4
Indexes can now be generated when decoding J2K codestreams.
2007-09-07 15:01:55 +00:00
Mathieu Malaterre
3392d99487
BUG: cannot run tests if EXAMPLES are not built
2007-09-07 13:49:57 +00:00
Mathieu Malaterre
b29cff9b9c
ENH: Add cmake code to do testing if user has properly setup a testimages directory
2007-09-07 13:21:17 +00:00
Mathieu Malaterre
2479921c71
ENH: Upon failure, properly return error code (!=0)
2007-09-07 13:06:36 +00:00
Mathieu Malaterre
53471a76f1
ENH: Fix unitialized read in img_fol (we may need a smarter initialize than memset)
2007-09-06 16:49:15 +00:00
Mathieu Malaterre
8ac5e7023c
ENH: Add very simple tests (simply run command line with no option)
2007-09-06 16:38:06 +00:00
Giuseppe Baruffa
dfcacb8247
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
2007-09-06 15:59:39 +00:00
Mathieu Malaterre
976ca18103
ENH: Add jpwl. Also remove old deprecated way of linking lib math on unix
2007-09-06 10:23:40 +00:00
Giuseppe Baruffa
d3d2a36fbc
Added some fields in the codestream_info structure: they are used to record 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-04 14:19: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
2c75c27ee8
Solved problems with codec reading from image file directory when filename had more than one "." in name
2007-08-21 10:50:47 +00:00
Francois-Olivier Devaux
d9924962ff
Added support for Visual Studio 2005
2007-08-21 10:17:35 +00:00
Francois-Olivier Devaux
17f0828c74
Fixed _strnicmp bug
2007-08-20 15:26:01 +00:00
Francois-Olivier Devaux
8298fd2b0a
Added support for the TGA file format in the codec
2007-08-20 15:20:42 +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
c45b8e6c38
Updated libtiff library version to 3.8.2 (for WIN32)
...
Updated BMP and PxM truncation when decoding J2K files with more than 8 bits (convert.c)
2007-07-19 13:44:04 +00:00
Francois-Olivier Devaux
64d72b7bfd
Fixed raw option to encode raw images with more than three components.
2007-07-18 09:45:59 +00:00
Francois-Olivier Devaux
b7ce19709d
Added support for RAW images. This module has been developped by the University of Perugia team. Thanks to them !
2007-07-17 16:19:41 +00:00
Francois-Olivier Devaux
5dec8bbbe9
2007-07-13 13:07:07 +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
Francois-Olivier Devaux
aec1d7592c
Tipo corrected...
2007-06-04 13:32:25 +00:00
Francois-Olivier Devaux
ea9335ff48
Bugs corrected in decoding of command line (getopt.c), in the handling of 16 bit files (t1.c and tcd.c) and the calculation of elapsed time for multiple tiles parts (tcd.c and tdc.h).
2007-06-04 13:23:26 +00:00
Francois-Olivier Devaux
814bab6900
Fixed the handling of 16bit TIFF files for cinema compression. Modified "convert.c".
...
Fixed the parameters used for cinema compression (9-7 transform used instead of 5-3). Modified "image_to_j2k.c"
2007-05-31 09:13:44 +00:00
Francois-Olivier Devaux
f3170bf64e
Possibility to choose to apply MCT (multiple component transform) enabled, and new decoding_limit: DECODE_ALL_BUT_PACKETS
2007-05-10 14:13:30 +00:00
Parvatha Elangovan
110b54c7c6
Fixed Error in tiftoimage(). Modification in convert.c.
2007-04-12 10:01:48 +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
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
Parvatha Elangovan
78003a016a
Added option for Digital cinema profile compliant codestream. This can be 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-03-07 16:04:33 +00:00
Francois-Olivier Devaux
9e5d0b1a40
Modified codec projects (*.dsp) and makefile to include the tiff library (modified codec/image_to_j2k.dsp codec/j2k_to_image.dsp and codec/makefile)
2007-03-01 16:12:17 +00:00
Mathieu Malaterre
219dd65bef
COMP: Fix compilation of executable linking to TIFF lib.
2007-03-01 14:39:31 +00:00
Parvatha Elangovan
192e46c32f
Enabled compression of TIF image format to j2k by tifftoimage() and decompression of codestream to TIF image format using imagetotif(). Modifications in image_to_j2k.c, j2k_to_image.c, convert.c, convert.h
2007-02-28 15:31:56 +00:00
Francois-Olivier Devaux
2fb6da8d85
Corrected codec Makefile by adding the compilation of "compat/getopt.c"
2007-02-28 13:56:06 +00:00
Parvatha Elangovan
fd680a1cf0
Made get_file_format function more robust. Modifications in image_to_j2k.c, j2k_to_image.c, getopt.c, getopt.h
2007-02-27 14:19:09 +00:00
Parvatha Elangovan
313c772f4a
Added the dirent.h file used for opening and reading Directory holding image files. Used in image_to_j2k.c and j2k_to_image.c.
2007-02-27 08:54:56 +00:00
Parvatha Elangovan
0781b7d441
Option to read images from a Folder whose path is specified in the Input parameters by "-ImgDir" along with output decod format specified by "-OutFor" . Modifications in image_to_j2k.c, j2k_to_image.c, getopt.c, getopt.h
...
Enabling use of multi character input parameters in the codec. Modifications in image_to_j2k.c, j2k_to_image.c, getopt.c, getopt.h
2007-02-26 15:40:01 +00:00
Francois-Olivier Devaux
d084ff59f2
David Fries suggestions. In image_to_j2k and j2k_to_image, strncpy() functions: instead of specifying the path size macro, let the compiler read the length out of the array entry.
2007-02-13 09:00:37 +00:00
Francois-Olivier Devaux
3f5e8eb92b
Extra tokens at the end of #endif directive corrected in openjpeg.c, j2k.c and image_to_j2k.c -> no more warnings in linux compilation
2007-01-31 15:19:54 +00:00
Francois-Olivier Devaux
b700cd9101
Linux Makefile for the codec added
2007-01-31 14:57:26 +00:00
Francois-Olivier Devaux
a6d7377213
Use of OPJ_PATH_LEN (defined as 4096) to be the maximum allowed size for filenames instead of MAX_PATH which is not always defined. This caused some programs using OpenJPEG to crash. Modifications in openjpeg.h j2k_to_image.c and image_to_j2k.c
2007-01-30 10:51:29 +00:00
Francois-Olivier Devaux
ed3aec55fd
Copyright update
2007-01-15 09:55:40 +00:00
Giuseppe Baruffa
3adfd18602
* Better fix of the TPH EPBs bug in JPWL module
...
* Fixed the UEP bug in JPWL module
+ Added some lines in the help of JPWL_image_to_j2k
2006-12-05 18:20:04 +00:00
Francois-Olivier Devaux
265de2ed0d
SVN file properties modified (EOL handled better)
2006-12-04 16:20:36 +00:00
Francois-Olivier Devaux
f9d76c0be9
First integration of JPWL code
2006-12-04 14:55:38 +00:00
Francois-Olivier Devaux
bcf7032b8b
First integration of JPWL code
2006-12-04 14:55:11 +00:00
Francois-Olivier Devaux
0ace960ea5
Corrected incorrect fprintf formatting
2006-12-04 14:52:34 +00:00
Antonin Descampe
b565431251
added the ability to specify the rate as "float" (before : integer)
2006-10-31 17:10:14 +00:00
Antonin Descampe
b5aee428ba
remove some needless cvs files
2006-10-27 17:51:08 +00:00
Antonin Descampe
3386c7765a
testsvn2
2006-10-27 14:48:39 +00:00
Antonin Descampe
173ccf70d4
fixed a bug in j2k_to_image.c, that prevented the -l option to work correctly.
2006-08-18 10:10:47 +00:00
Mathieu Malaterre
9aa9170110
ENH: Update CMake to do proper installation. Still using the 2.2 installation approach for now.
2006-07-22 03:47:02 +00:00
Mathieu Malaterre
4b3aabebd2
ENH: Fix warning about assignment discards qualifiers from pointer target type
2006-07-22 03:35:17 +00:00
Mathieu Malaterre
0577ed8e6e
STYLE: Fix style issue
2006-07-22 03:27:36 +00:00
Mathieu Malaterre
4f87b9abd1
BUG: Do not leak with greyscale bmp. Solve problem with name>256 for pgx and resolve random memory access (reported by valgrind)
2006-07-22 03:26:10 +00:00
Mathieu Malaterre
abe8e93c21
ENH: Marking const char * what should be const char *. TODO need to fix code for imagetopgx.
2006-07-21 21:07:18 +00:00
Mathieu Malaterre
f222743e19
ENH: Better solution: using the opj_version function to stay up to date
2006-07-21 21:00:19 +00:00
Mathieu Malaterre
190b4b7c9e
ENH: Minor cleanup, mainly comment and line too long
2006-07-21 20:28:44 +00:00
Mathieu Malaterre
d55af7fe7e
ENH: Cannot assign const char* into a char*. At same time upgrade OpenJPEG version to proper one
2006-07-21 20:03:07 +00:00
Mathieu Malaterre
23eeec8769
ENH: Do the proper thing for static/shared
2006-02-05 21:39:19 +00:00
Freeimage
f31d963a64
fixed a bug in codec/convert.c::imagetobmp
2006-02-04 18:39:46 +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
Freeimage
8a662fa4b1
fixed various minor warnings occuring under gcc, added corrections proposed in the forum
2006-01-26 20:02:04 +00:00
Mathieu Malaterre
61e353d652
STYLE: Add a lot of comments for the CMake build system
2006-01-25 16:32:48 +00:00
Antonin Descampe
2f75846baf
fixed a problem in convert.c when multiple comments
2006-01-25 15:45:01 +00:00
Antonin Descampe
e6aae96217
added cmake files to the project
2006-01-25 09:23:17 +00:00
Antonin Descampe
6a52f1a9df
fixed various minor warnings with gdcm patches
2006-01-20 16:53:05 +00:00
Antonin Descampe
e45e87cfb7
removed old readme and Makefile
2005-12-08 09:27:26 +00:00
Antonin Descampe
59835a580e
openjpeg version 1.0 (previous version still available with tag opj0-97)
2005-12-02 18:30:54 +00:00
Antonin Descampe
f61cda9b7d
openjpeg version 1.0 (previous version still available with tag opj0-97)
2005-12-02 13:34:15 +00:00
Antonin Descampe
7ee36c3a4c
1) quantization stepsizes stored as float instead of shifted integers -> fixes a pb of precision when using very small stepsizes. 2) bug fixed when decoding until bitplane 0 -> r-value (1/2) added to the coefficient.
2005-10-27 07:49:29 +00:00
Antonin Descampe
cd98a4f740
bug fixed when freeing the memory allocated if ppm-marker or ppt-marker is used
2005-09-13 14:11:41 +00:00
Antonin Descampe
de75303c38
Several bugs fixed when dealing with pgx-files with more than 8 bpp and the fixed_quality feature.
2005-07-18 15:21:56 +00:00
Antonin Descampe
ec1b970a32
argv[2] replaced by outfile when writing to output file (thanks to O.Smeesters and V.Mesaros)
2005-05-26 15:18:56 +00:00
Francois-Olivier Devaux
7bdb0331a6
Removed unused parameter in fprintf at line 618
2005-03-25 13:58:00 +00:00
Francois-Olivier Devaux
623f1d96cf
Unused "dest" pointer removed from main()
2005-03-25 13:53:54 +00:00
Francois-Olivier Devaux
34a6c13a2d
Input file format bug fixed (2)
2005-02-10 16:22:01 +00:00
Francois-Olivier Devaux
542f06007c
Input file format bug fixed
2005-02-10 16:16:18 +00:00