<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openjpeg/src/lib/openjp2/t1.c, branch floating_point_irreversible_encoding</title>
<subtitle>Fork of openjpeg library for JPEG2000 encoding and decoding</subtitle>
<id>https://git.carlh.net/cgit/openjpeg/atom?h=floating_point_irreversible_encoding</id>
<link rel='self' href='https://git.carlh.net/cgit/openjpeg/atom?h=floating_point_irreversible_encoding'/>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/'/>
<updated>2020-05-24T13:38:48Z</updated>
<entry>
<title>T1 encoder: speed-up by aggressive inlining and more cache friendly data organization</title>
<updated>2020-05-24T13:38:48Z</updated>
<author>
<name>Even Rouault</name>
<email>even.rouault@spatialys.com</email>
</author>
<published>2020-05-24T13:38:21Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=1c5627ee7406f84cfb40809b7ac31c63342427df'/>
<id>urn:sha1:1c5627ee7406f84cfb40809b7ac31c63342427df</id>
<content type='text'>
~ 9% speed improvement seen on 10980x10980 uint16 image, T36JTT_20160914T074612_B02.tif
opj_compress time from 17.2s to 15.8s
</content>
</entry>
<entry>
<title>Irreversible compression/decompression DWT: use 1/K constant as per standard</title>
<updated>2020-05-20T18:31:28Z</updated>
<author>
<name>Even Rouault</name>
<email>even.rouault@spatialys.com</email>
</author>
<published>2020-05-20T16:00:45Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=3cd1305596f191a01afdc11f9355f9c6590065dd'/>
<id>urn:sha1:3cd1305596f191a01afdc11f9355f9c6590065dd</id>
<content type='text'>
The previous constant opj_c13318 was mysteriously equal to 2/K , and in
the DWT, we had to divide K and opj_c13318 by 2... The issue was that the
band-&gt;stepsize computation in tcd.c didn't take into account the log2gain of
the band.

The effect of this change is expected to be mostly equivalent to the previous
situation, except some difference in rounding. But it leads to a dramatic
reduction of the mean square error and peak error in the irreversible encoding
of issue141.tif !
</content>
</entry>
<entry>
<title>Irreversible decoding: align code more closely to the standard by avoid messing up with stepsize (no functional change)</title>
<updated>2020-05-20T18:31:28Z</updated>
<author>
<name>Even Rouault</name>
<email>even.rouault@spatialys.com</email>
</author>
<published>2020-05-20T11:14:16Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=f38c069547f1c41dc94ec4a273efb07997685c21'/>
<id>urn:sha1:f38c069547f1c41dc94ec4a273efb07997685c21</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Encoder: use floating-point operations for irreversible transformation</title>
<updated>2020-05-20T18:31:28Z</updated>
<author>
<name>Even Rouault</name>
<email>even.rouault@spatialys.com</email>
</author>
<published>2020-05-18T18:15:07Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=00cff6f5c02deabb64ccb15f15c13fcb773968fe'/>
<id>urn:sha1:00cff6f5c02deabb64ccb15f15c13fcb773968fe</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add multithreading support in the T1 (entropy phase) encoder</title>
<updated>2020-05-20T18:30:21Z</updated>
<author>
<name>Even Rouault</name>
<email>even.rouault@spatialys.com</email>
</author>
<published>2020-04-29T09:50:17Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=97eb7e0bf17b476d516262e0af462ec7eeb8f505'/>
<id>urn:sha1:97eb7e0bf17b476d516262e0af462ec7eeb8f505</id>
<content type='text'>
- API wise, opj_codec_set_threads() can be used on the encoding side
- opj_compress has a -threads switch similar to opj_uncompress
</content>
</entry>
<entry>
<title>opj_t1_encode_cblks: fix UBSAN signed integer overflow</title>
<updated>2019-03-29T10:17:39Z</updated>
<author>
<name>Even Rouault</name>
<email>even.rouault@spatialys.com</email>
</author>
<published>2019-03-29T10:17:39Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=a1d32a596a94280178c44a55d7e7f1acd992ed5d'/>
<id>urn:sha1:a1d32a596a94280178c44a55d7e7f1acd992ed5d</id>
<content type='text'>
Fixes #1053 / CVE-2018-5727

Note: I don't consider this issue to be a security vulnerability, in
practice.
At least with gcc or clang compilers on x86_64 which generate the same
assembly code with or without that fix.
</content>
</entry>
<entry>
<title>Fix some potential overflow issues (#1161)</title>
<updated>2018-10-31T19:44:30Z</updated>
<author>
<name>Stefan Weil</name>
<email>sw@weilnetz.de</email>
</author>
<published>2018-10-31T19:44:30Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=948332e6ed17565100d1df5f6fdbf66865218e36'/>
<id>urn:sha1:948332e6ed17565100d1df5f6fdbf66865218e36</id>
<content type='text'>
* Fix some potential overflow issues

Put sizeof to the beginning of the multiplication to enforce that
size_t instead of smaller integer types is used for the calculation.

This fixes warnings from LGTM:

    Multiplication result may overflow 'unsigned int'
    before it is converted to 'unsigned long'.

It also allows removing some type casts.

Signed-off-by: Stefan Weil &lt;sw@weilnetz.de&gt;

* Fix code indentation

Signed-off-by: Stefan Weil &lt;sw@weilnetz.de&gt;
</content>
</entry>
<entry>
<title>Workaround Coverity CID 169392</title>
<updated>2017-09-21T12:10:49Z</updated>
<author>
<name>Even Rouault</name>
<email>even.rouault@spatialys.com</email>
</author>
<published>2017-09-21T12:10:49Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=7711307d865d46ca1bb8bb152071178b10066d05'/>
<id>urn:sha1:7711307d865d46ca1bb8bb152071178b10066d05</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Avoid relying on operator precedence (raised by cppcheck)</title>
<updated>2017-09-19T16:35:52Z</updated>
<author>
<name>Even Rouault</name>
<email>even.rouault@spatialys.com</email>
</author>
<published>2017-09-19T16:35:52Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=8df07d5866c9e3517bf04a7abee4a07a04735df4'/>
<id>urn:sha1:8df07d5866c9e3517bf04a7abee4a07a04735df4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix warnings and errors when compiling with a c++ compiler (#1021)</title>
<updated>2017-09-19T10:46:20Z</updated>
<author>
<name>Even Rouault</name>
<email>even.rouault@spatialys.com</email>
</author>
<published>2017-09-19T10:46:20Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=fdef69b43ce5222ac0f2a87f2fad1442ece340e8'/>
<id>urn:sha1:fdef69b43ce5222ac0f2a87f2fad1442ece340e8</id>
<content type='text'>
</content>
</entry>
</feed>
