<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openjpeg/src/bin/jp2/converttif.c, branch master</title>
<subtitle>Fork of openjpeg library for JPEG2000 encoding and decoding</subtitle>
<id>https://git.carlh.net/cgit/openjpeg/atom?h=master</id>
<link rel='self' href='https://git.carlh.net/cgit/openjpeg/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/'/>
<updated>2023-09-24T11:54:28Z</updated>
<entry>
<title>Require `stdint.h` &amp; `inttypes.h`</title>
<updated>2023-09-24T11:54:28Z</updated>
<author>
<name>mayeut</name>
<email>mayeut@users.noreply.github.com</email>
</author>
<published>2023-09-24T11:54:28Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=c4b3a91ede1d0301f7f5f50287c0bda35aa7ca7e'/>
<id>urn:sha1:c4b3a91ede1d0301f7f5f50287c0bda35aa7ca7e</id>
<content type='text'>
With #1450 which goes with 480cc9d49775d018c19ce0e01f6be27858d63d39 "Remove support for non-C99 compilers (like VS2010) that don't support snprintf()",
support for MSVC versions prior to vs2015 is dropped: https://stackoverflow.com/questions/2915672/snprintf-and-visual-studio-2010

This means that all supported MSVC versions do have `stdint.h` &amp; `inttypes.h` now.
For non windows platforms, those headers were already mandatory.

Make them mandatory for all builds.
</content>
</entry>
<entry>
<title>Remove duplicate assignments in function tiftoimage</title>
<updated>2021-12-10T10:29:06Z</updated>
<author>
<name>Stefan Weil</name>
<email>sw@weilnetz.de</email>
</author>
<published>2021-12-10T10:27:44Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=af8339d33f92d1f88b504d9cd84cde981fef94df'/>
<id>urn:sha1:af8339d33f92d1f88b504d9cd84cde981fef94df</id>
<content type='text'>
Signed-off-by: Stefan Weil &lt;sw@weilnetz.de&gt;
</content>
</entry>
<entry>
<title>opj_compress: add a -TargetBitDepth switch for TIFF output (#1384)</title>
<updated>2021-10-27T12:10:50Z</updated>
<author>
<name>msheby</name>
<email>44249925+msheby@users.noreply.github.com</email>
</author>
<published>2021-10-27T12:10:50Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=90481203a28d4d18052a07711d6d890ed1ab8c8a'/>
<id>urn:sha1:90481203a28d4d18052a07711d6d890ed1ab8c8a</id>
<content type='text'>
Sometimes, given the same (16-bit TIF) input, one wants to generate a variety of J2C outputs (say, 16-, 12-, and 10-bit). This patch allows one to downsample input files, and so makes it easier to automate OpenJPEG in mass generation of J2Cs without having to pipe though an image processing program.</content>
</entry>
<entry>
<title>API: deprecate 'bpp' member in favor of 'prec'</title>
<updated>2021-10-21T12:13:58Z</updated>
<author>
<name>Even Rouault</name>
<email>even.rouault@spatialys.com</email>
</author>
<published>2021-10-21T10:43:50Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=0b5d62684fe360e098e3bccaef02ee3e9781cec4'/>
<id>urn:sha1:0b5d62684fe360e098e3bccaef02ee3e9781cec4</id>
<content type='text'>
in opj_image_comp and opj_image_comptparm structures.

bpp was redundant with prec, and almost never set by the library, except
by opj_image_create(). This change should hopefully not impact existing,
working, users of the API, which should already have used prec to get
things working.

Fixes #1379
</content>
</entry>
<entry>
<title>Use standard integer types for compatibility with libtiff 4.3.0 (#1377)</title>
<updated>2021-09-12T10:32:38Z</updated>
<author>
<name>Jamaika1</name>
<email>lukaszcz18@wp.pl</email>
</author>
<published>2021-09-12T10:32:38Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=8fc4bf8ecbccea2d2ec3faef143ca5a57eba677d'/>
<id>urn:sha1:8fc4bf8ecbccea2d2ec3faef143ca5a57eba677d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>opj_decompress: add sanity checks to avoid segfault in case of decoding error</title>
<updated>2020-04-01T19:11:36Z</updated>
<author>
<name>Even Rouault</name>
<email>even.rouault@spatialys.com</email>
</author>
<published>2020-04-01T18:58:55Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=1c54024165fd5db0e6047f28903274eb27d0980f'/>
<id>urn:sha1:1c54024165fd5db0e6047f28903274eb27d0980f</id>
<content type='text'>
Prevent crashes like:
opj_decompress -i 0722_5-1_2019.jp2 -o out.ppm -r 4 -t 0

where 0722_5-1_2019.jp2 is
https://drive.google.com/file/d/1ZxOUZg2-FKjYwa257VFLMpTXRWxEoP0a/view?usp=sharing
</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>tiftoimage(): fix read heap buffer overflow (#988)</title>
<updated>2017-08-16T11:36:52Z</updated>
<author>
<name>Even Rouault</name>
<email>even.rouault@spatialys.com</email>
</author>
<published>2017-08-16T11:36:52Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=af760007711bf93041d3eba3a41b9a48d365f303'/>
<id>urn:sha1:af760007711bf93041d3eba3a41b9a48d365f303</id>
<content type='text'>
The number of components is given only by TIFFTAG_SAMPLESPERPIXEL / tiSpp.
Querying TIFFTAG_EXTRASAMPLES only give information about which channel is
the alpha channel, but we mostly ignore it for now, so remove that part of the
code.
</content>
</entry>
<entry>
<title>Changes in converttif.c for PPC64</title>
<updated>2017-08-10T22:06:23Z</updated>
<author>
<name>szukw000</name>
<email>szukw000@arcor.de</email>
</author>
<published>2017-08-10T22:06:23Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=9f750884f91a4f1b9ca3e6a401057c21a7e2bd99'/>
<id>urn:sha1:9f750884f91a4f1b9ca3e6a401057c21a7e2bd99</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix remaining warning</title>
<updated>2017-08-09T01:05:37Z</updated>
<author>
<name>Antonin Descampe</name>
<email>antonin@gmail.com</email>
</author>
<published>2017-08-09T01:05:37Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=0c07950cb3f318df5b2051ae5d96bef553bb9966'/>
<id>urn:sha1:0c07950cb3f318df5b2051ae5d96bef553bb9966</id>
<content type='text'>
format specifier mismatch in #975
</content>
</entry>
</feed>
