Mathieu Malaterre
7dd65e84e6
[trunk] Revert r2415 for now since it introduce large regression
2014-02-25 14:14:56 +00:00
Mathieu Malaterre
e260ec6e9d
[trunk] Import commit 87b08a096bb8ad61f9dbe4811e208d9c9d7fe63b from ghostpdl
...
don't define lrintf for MSVC 2013 (fix compilation breakage)
Update issue 225
2014-02-25 14:03:30 +00:00
Mathieu Malaterre
7ce3f3c1a6
[trunk] Import commit 4cee6ceab21025079f439bb152fb9d8ae8c5c832 from ghostpdl
...
Bug 694906: fix potential heap overflow in opj_t2_read_packet_header
Update issue 225
2014-02-25 13:50:29 +00:00
Mathieu Malaterre
a466755bbb
[trunk] import commit 83dad6a76536222a3a51146f942e733a2e90ec52 from ghostpdl
...
fix potential NULL-pointer dereference caused by testing the wrong variable
after opj_realloc (happens only in OOM situations)
Update issue 225
2014-02-25 13:39:50 +00:00
Mathieu Malaterre
901c9d8ae0
[trunk] Import commit fc884aee2b69c78500e65c3d05bf216791a9ea4a from ghostpdl
...
prevent heap overflow in opj_t2_read_packet_header
Also prevent a double-free of segment data under OOM conditions.
Problem found in a test file, 1802.pdf.SIGSEGV.36e.894 supplied
by Mateusz "j00ru" Jurczyk and Gynvael Coldwind of the Google
Security Team using Address Sanitizer. Many thanks!
Update issue 225
2014-02-25 13:38:32 +00:00
Mathieu Malaterre
6145c82804
[trunk] Import commit 8ec8321df613986e8642e2975f7182072eb4be62 from ghostpdl
...
make opj_stream_set_user_data accept a NULL stream
for consistency with opj_stream_set_* which does so.
Update issue 225
2014-02-25 13:33:43 +00:00
Mathieu Malaterre
876c02206d
[trunk] Import commit f4139d702559649e577a5df9cfd64b0ca6107a7a from ghostpdl
...
Several functions accept a buffer size but never actually check whether
the buffer overflows during reading/writing. This fixes all cases where
a size variable has explicitly been marked as unused (through a (void)
cast).
This was discovered while investigating an assertion caused by
7cc691f332f26802c64cdc47e17bff8b_signal_sigabrt_7ffff6d59425_2247_2509.pdf
among others.
Thanks to Mateusz Jurczyk and Gynvael Coldwind of the Google Security
Team for providing the example files.
2014-02-25 13:28:37 +00:00
Mathieu Malaterre
d847e477f0
[trunk] add missing private lib. Update issue 223
2014-02-24 17:22:48 +00:00
Mathieu Malaterre
33d8f08964
[trunk] Fix a warning about type conversion. Use a trick where unsigned wrapping is legal
2014-02-24 08:52:44 +00:00
Antonin Descampe
e826e9281e
[trunk] replaced fprintf with event_mgr in cinema-related stuff in j2k.c
2014-02-12 16:33:19 +00:00
Antonin Descampe
780120c9a2
[trunk] moved logic related to cinema profiles in library (was in
...
opj_compress.c). This enables one using the library with its own
executable to easily ask for cinema profiles.
2014-02-12 16:16:21 +00:00
Antonin Descampe
ee3f2ffa19
[trunk] fixed several bugs in cinema mode (2K 24/48 fps, and 4K). Trunk
...
now produces compliant DCI code-streams.
2014-01-22 18:41:34 +00:00
Antonin Descampe
7b14cf8558
[trunk] fixed DCI-compliant codestream generation (-cinema2K and -
2014-01-16 12:55:14 +00:00
Rex Dieter
4d7b6374c8
complete openjpeg2 pkgconfig support, bug #68
2013-10-15 19:17:51 +00:00
Mathieu Malaterre
5855da5a15
[trunk] Import patch from bug #241
2013-09-26 09:28:47 +00:00
Mickael Savinaud
da4bd9b110
[trunk] use the private version of opj_config to avoid compilation error into mj2
2013-03-25 13:43:14 +00:00
Mickael Savinaud
7fbf6df09e
[trunk] use opj_config_private.h into the opj_inttypes.h
2013-03-25 13:36:26 +00:00
Mickael Savinaud
68415d040f
[trunk] separate the opj_config file between public and private part to avoid expose unused variables into the public API.
2013-03-25 12:43:27 +00:00
Mickael Savinaud
07ae149955
[trunk] managed nicely the case where TPSot value is incorrect (thanks winfried). Update the test suite to check this case. Updates issue 202. Updates issue 206. Update issue 208
2013-03-24 22:50:46 +00:00
Mickael Savinaud
f769d5e27f
[trunk] manage correctly the case where meth value is not correct (thanks winfried)
2013-03-17 18:27:41 +00:00
Mickael Savinaud
1e414c8f37
[trunk] correct issue 188 (thanks winfried) and add test about it. Fixes issue 188
2013-03-17 18:16:03 +00:00
Mickael Savinaud
0abf4f8fbb
[trunk]remove wrong code in mj2 library detected by winfried (thanks to you)
2013-03-17 17:06:30 +00:00
Mickael Savinaud
021e255282
[trunk] use the opj_ prefix for the HAVE_FSEEKO variable
2013-03-13 15:17:35 +00:00
Mickael Savinaud
92b1e038c1
[trunk] correct missing variable in openjpeg config file
2013-03-13 10:18:04 +00:00
Mickael Savinaud
a8c33ae219
[trunk] remove some unused variable from opj_config and rename other one with opj_ prefix
2013-03-03 18:06:27 +00:00
Mickael Savinaud
e7bc30b409
[trunk] split into two config files config options related to the lib and to the application.
2013-03-03 17:55:35 +00:00
Mickael Savinaud
efaefa21fc
[trunk] add the prefix opj_ to deprecated everywhere
2013-02-18 13:19:52 +00:00
Mickael Savinaud
42bd417acf
[trunk] update documentation of new functions _v3 and mark deprecated related functions
2013-02-17 22:57:14 +00:00
Mickael Savinaud
c03ca9c73c
[trunk] rename deprecated macro with opj_ prefix and use it for opj_stream_destroy function
2013-02-16 17:31:22 +00:00
Mickael Savinaud
d5884afcf3
[trunk] add functions to avoid to use FILE* into the API (thanks winfried).
...
Update issue 120 and update issue 198
2013-02-16 17:20:55 +00:00
Mickael Savinaud
8b36a11f2b
[trunk] backout one part of the rev 2266
2013-02-03 09:07:23 +00:00
Mathieu Malaterre
ccd448d626
[trunk] JP3D: Fix issue with Z handling in packet iterator
2013-01-03 14:26:38 +00:00
Mathieu Malaterre
44fb38949b
[trunk] JP3D: Handles errors properly
2013-01-03 14:25:49 +00:00
Mathieu Malaterre
ad1532ed57
[trunk] JP3D: remove old debug
2013-01-03 14:22:34 +00:00
Mathieu Malaterre
caaec3bb05
[trunk] JP3D: convert from DOS to UNIX eol
2013-01-02 18:19:56 +00:00
Mathieu Malaterre
df47fae287
[trunk] JP3D: remove exe bit from source files
2013-01-02 18:16:14 +00:00
Mickael Savinaud
b65bf48369
[trunk] merge from branch 1.5 a correction about large code-block data (decoding part) and add tests about issue 5 and issue 62
2012-12-18 17:46:33 +00:00
Mathieu Malaterre
4c02acb728
[trunk] remove left over from v2 transition
2012-12-11 14:15:46 +00:00
Mathieu Malaterre
8c9151c86b
[trunk] JP3D: completely redo the opj_tgt_create function. Take as input the initial opj_tgt_create as found in openjpeg 1.5, and extend with the 3rd dimension.
2012-12-11 14:09:24 +00:00
Mickael Savinaud
b42cf317d6
[trunk] correct the new name of OPJ_HAVE_STDINT_H everywhere
2012-12-04 13:13:50 +00:00
Mickael Savinaud
f5429e4ce8
[trunk] remove SSIZE which is unused in openjpeg and rename HAVE_STDINT_H to OPJ_HAVE_STDINT_H
2012-12-04 12:51:00 +00:00
Mickael Savinaud
82dad8e629
[trunk] add openjpeg.h in some files of openjpip to use some opj type (thanks winfried)
2012-12-04 12:20:30 +00:00
Mickael Savinaud
59aa37fe2b
[trunk] move typedef from opj_stdint.h to openjpeg.h and add an include of stdio.h in openjpeg.h. Fixes issue 197
2012-12-03 13:26:30 +00:00
Mickael Savinaud
0adb43f06e
[trunk] correct the encoding of colr box information (thanks Winfried)
2012-12-03 13:04:43 +00:00
Mickael Savinaud
87e09a09da
[trunk]add the pkgconfig support for openjp2 (thanks Winfried)
2012-12-03 12:21:48 +00:00
Mathieu Malaterre
ba630816bc
[trunk] JP3D codec was trying to pull information from the registration parameter in COM. This is non-standard.
2012-11-28 13:37:50 +00:00
Mathieu Malaterre
863fdafcd5
[trunk] As per T.809 code block are not shifted in JP3D
...
Table A.7
3D code-block width, height and depth exponent values xcb = value, ycb = value
or zcb = value.
NOTE – This redefines Rec. ITU-T T.800 | ISO/IEC 15444-1 significantly! The 3D
code-block width, height and depth are limited to powers of two with the minimum
size being 20 and the maximum being 210.
Further, the 3D code-block size is restricted so that 4 ≤ xcb+ycb+zcb ≤ 18.
2012-11-28 13:06:02 +00:00
Mathieu Malaterre
be5e6941bf
[trunk] JP3D: this is safe to write comment using Registration: ISO-8859-15
2012-11-28 12:21:51 +00:00
Mathieu Malaterre
7980115412
[trunk] JP3D fix issue with Registration value in COM marker. Move COM marker just before COD.
2012-11-28 12:18:17 +00:00
Mathieu Malaterre
be3a1da14a
[trunk] Fix issue with ITU-T T.809 (05/2011)
...
- ZSI is now known as NSI (FF54)
- NSI now stores Ndim (=3)
- CAP extended marker was not set properly
2012-11-28 11:46:16 +00:00