mayeut
7ad3e2a870
Add "-p", "-force-rgb" and "-upsample" options to j2k_to_image
...
Fix #606
2015-10-18 16:07:40 +02:00
Pedro Gimeno
4469a98cd7
Wrong TGA header generated by j2k_to_image
...
The TGA file writer used by j2k_to_image writes a wrong field to the
header for alpha-less images.
To reproduce:
1. Take any 24-bit j2k image with no alpha.
2. Convert it to TGA with j2k_to_image -i <image>.j2k -o <image>.tga
3. Open <image>.tga with Gimp.
When opened, the image will have a wrong alpha channel, because Gimp
uses a certain field in the header to determine if the image has alpha.
That field is saved wrongly by j2k_to_image for alpha-less images. Per
the TGA specification, Gimp is correct in this case.
2015-09-16 20:28:29 +02:00
Mathieu Malaterre
de73cfeec1
[1.5] Fix issues with big endian handling
...
Fixes issue 302
2014-03-18 14:40:37 +00:00
Mathieu Malaterre
6fc2b56847
[1.5] Remove another set of simple warnings
2014-03-17 16:11:48 +00:00
Mathieu Malaterre
a05a9aa4ed
[1.5] Fix remainings warnings on 1.5 branch
2014-03-12 11:52:26 +00:00
Mathieu Malaterre
6aad1208b2
[1.5] Import first patch (fixes.patch) from issue 249 to fix leaks on error condition.
...
Update issue 249
2014-02-26 08:38:19 +00:00
Mickael Savinaud
c0c69d1c36
[1.5] improve the bmp read function for RGB8 case (thanks Winfried). Update issue 203
2012-12-18 08:47:19 +00:00
Mathieu Malaterre
835bf5357f
[1.5] 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.
Update issue 145
2012-05-29 13:54:21 +00:00
Mathieu Malaterre
ce9d5083ef
[1.5] Integrate patch from winfried posted on the mailing list. See here for more info: https://groups.google.com/group/openjpeg/msg/6488859a0dce77
2012-04-23 13:35:01 +00:00
Mathieu Malaterre
8c9fd1b351
[1.5] Apply big-endian patch from winfried: libopenjpeg and WORDS_BIGENDIAN, 2012/02/14
2012-03-01 16:10:27 +00:00
Mathieu Malaterre
b3b2ee0925
[1.5] j2k_to_image does not support writing image with precision less than 8bits. Simply give up for now. Thanks to winfried for report. Also add static keyword for undeclared function in convert.h
2012-03-01 15:52:30 +00:00
Mathieu Malaterre
c9ae2a5fbc
hopefully fix a warning on VS2008 compiler
2011-12-21 10:24:59 +00:00
Mathieu Malaterre
72867bc692
Fix a bunch of warnings reported by gcc (unused results from fwrite)
2011-12-12 08:55:44 +00:00
Mickael Savinaud
1dc6eddf1c
backport rev 1013-1014 from trunk
2011-10-19 15:45:03 +00:00
Antonin Descampe
9a89e2f162
backport r898 to r907 in openjpeg-1.5 branch
2011-09-01 12:08:10 +00:00
Mickael Savinaud
4f329cbb45
fixed wrong patch with the return value of fgets into convert.c file
2011-08-11 08:21:28 +00:00
Mickael Savinaud
0e8995aa7e
fixed error with the return value of fgets into convert.c file
2011-08-10 15:54:15 +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
Mickael Savinaud
e716a316f6
manage case 0 frames inside yuv_num_frames function and correct some warnings with gcc4.5 (credit to Winfried)
2011-07-28 10:45:22 +00:00
Mickael Savinaud
c2b0a8101b
correct some warnings detected under unix platform
2011-07-27 16:37:57 +00:00
Mickael Savinaud
a7f08e9b36
fixed issue 74 for trunk
2011-07-25 07:31:52 +00:00
Mickael Savinaud
f8de2fc8eb
to follow last version of conformance data about component separator for pgx file, we changed - to _ separator even if nb component = 1
2011-07-21 14:56:29 +00:00
Mickael Savinaud
9cd5752e38
correct build error (mislocated declaration) with convert to tiff function when HAVE_LIBTIFF is defined
2011-07-18 08:58:18 +00:00
Antonin Descampe
a5130aebab
fixed bmptoimage (see http://groups.google.com/group/openjpeg/browse_thread/thread/33a24c5896bf6391 )
2011-07-03 18:23:33 +00:00
Antonin Descampe
88f43b15fa
defined new type "opj_bool", and new constants OPJ_FALSE and OPJ_TRUE, to avoid having to deal with "stdbool.h" (patch from Winfried)
2011-05-18 11:02:27 +00:00
Antonin Descampe
6aaaa3eae2
changed the directory hierarchy of the whole project. See README files for details.
2011-04-13 22:38:50 +00:00
Antonin Descampe
16f205d886
re-organization of openjpeg directories hierarchy : step 1
2011-04-13 21:01:39 +00:00