<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openjpeg/src, branch codingstyle</title>
<subtitle>Fork of openjpeg library for JPEG2000 encoding and decoding</subtitle>
<id>https://git.carlh.net/cgit/openjpeg/atom?h=codingstyle</id>
<link rel='self' href='https://git.carlh.net/cgit/openjpeg/atom?h=codingstyle'/>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/'/>
<updated>2016-01-25T22:22:06Z</updated>
<entry>
<title>processed all c/h files through astyle with opj_astyle.cfg</title>
<updated>2016-01-25T22:22:06Z</updated>
<author>
<name>Antonin Descampe</name>
<email>antonin@gmail.com</email>
</author>
<published>2016-01-25T22:22:06Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=0febbff19e05cb1a6c2613eee76ad46a669c96cd'/>
<id>urn:sha1:0febbff19e05cb1a6c2613eee76ad46a669c96cd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fixed tile numbering</title>
<updated>2016-01-25T16:30:43Z</updated>
<author>
<name>Antonin Descampe</name>
<email>antonin@gmail.com</email>
</author>
<published>2016-01-25T16:30:43Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=5c5ae1d51a3b5a1c4e68ae0323f7a14d7628f465'/>
<id>urn:sha1:5c5ae1d51a3b5a1c4e68ae0323f7a14d7628f465</id>
<content type='text'>
Fixes #245
</content>
</entry>
<entry>
<title>Merge pull request #648 from stweil/alloc</title>
<updated>2016-01-23T18:43:09Z</updated>
<author>
<name>Antonin Descampe</name>
<email>antonin@gmail.com</email>
</author>
<published>2016-01-23T18:43:09Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=3767af52deaa8e75c322961aa51f56b397de22af'/>
<id>urn:sha1:3767af52deaa8e75c322961aa51f56b397de22af</id>
<content type='text'>
Fix support of posix_memalloc for Linux</content>
</entry>
<entry>
<title>Merge pull request #551 from mayeut/coc-qcc</title>
<updated>2016-01-10T23:23:44Z</updated>
<author>
<name>Matthieu Darbois</name>
<email>mayeut@users.noreply.github.com</email>
</author>
<published>2016-01-10T23:23:44Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=a42d03df79458179bfbf28a8c90d303e22ed9843'/>
<id>urn:sha1:a42d03df79458179bfbf28a8c90d303e22ed9843</id>
<content type='text'>
Add COC/QCC in main header when needed</content>
</entry>
<entry>
<title>Add comment explaining bj is not use when l_data_size == 0</title>
<updated>2016-01-09T13:30:48Z</updated>
<author>
<name>Even Rouault</name>
<email>even.rouault@spatialys.com</email>
</author>
<published>2016-01-09T13:30:48Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=6a1974d40d95d857377a1eb5f4db0d9e24d0ad0a'/>
<id>urn:sha1:6a1974d40d95d857377a1eb5f4db0d9e24d0ad0a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[git/2.1 regression] Fix opj_write_tile() failure when numresolutions=1</title>
<updated>2016-01-08T18:38:45Z</updated>
<author>
<name>Even Rouault</name>
<email>even.rouault@spatialys.com</email>
</author>
<published>2016-01-08T18:38:45Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=87c0d7dc1eee2adf1aa7ae31bdfac078bb114c01'/>
<id>urn:sha1:87c0d7dc1eee2adf1aa7ae31bdfac078bb114c01</id>
<content type='text'>
When trying the GDAL OpenJPEG driver against openjpeg current master HEAD,
I get failures when trying to create .jp2 files. The driver uses
opj_write_tile() and in some tests numresolutions = 1.

In openjp2/dwt.c:410, l_data_size = opj_dwt_max_resolution( tilec-&gt;resolutions,tilec-&gt;numresolutions) * (OPJ_UINT32)sizeof(OPJ_INT32);
is called and returns l_data_size = 0. Now in git opj_malloc() has a special case
for 0 to return a NULL pointer whereas previously it relied on system malloc(),
which in my case didn't return NULL.

So only test the pointer value if l_data_size != 0. This makes the GDAL
autotest suite to pass again.
</content>
</entry>
<entry>
<title>Fix fatal crash on 64 bit Linux</title>
<updated>2016-01-06T20:40:09Z</updated>
<author>
<name>Stefan Weil</name>
<email>sw@weilnetz.de</email>
</author>
<published>2016-01-06T20:34:59Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=9cad6bc1f68be54189c6db8a7fcef6f994daf891'/>
<id>urn:sha1:9cad6bc1f68be54189c6db8a7fcef6f994daf891</id>
<content type='text'>
By default, OpenJPEG uses the function memalign to allocate aligned
memory on Linux systems. That function needs malloc.h which was
missing. This results in a compiler warning:

openjpeg/src/lib/openjp2/opj_malloc.c:63:3: warning:
 implicit declaration of function ‘memalign’
 [-Wimplicit-function-declaration]

On hosts where sizeof(int) &lt; sizeof(void *) the return value of memalign
will be truncated which results in an invalid pointer.

That caused "make test" to produce lots of segmentation faults when
running on a 64 bit Linux host.

Signed-off-by: Stefan Weil &lt;sw@weilnetz.de&gt;
</content>
</entry>
<entry>
<title>Fix whitespace issues in opj_malloc.c</title>
<updated>2016-01-06T20:40:01Z</updated>
<author>
<name>Stefan Weil</name>
<email>sw@weilnetz.de</email>
</author>
<published>2016-01-06T20:34:59Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=79b1c4cc85e5d1709cdb831561ba4927ea673514'/>
<id>urn:sha1:79b1c4cc85e5d1709cdb831561ba4927ea673514</id>
<content type='text'>
Some lines ended with spaces. Remove them.

Signed-off-by: Stefan Weil &lt;sw@weilnetz.de&gt;
</content>
</entry>
<entry>
<title>Fix support of posix_memalign for Linux</title>
<updated>2016-01-06T17:06:45Z</updated>
<author>
<name>Stefan Weil</name>
<email>sw@weilnetz.de</email>
</author>
<published>2015-11-01T19:37:19Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=c00ee8bff7cd6473021cb6f40199d25898d09250'/>
<id>urn:sha1:c00ee8bff7cd6473021cb6f40199d25898d09250</id>
<content type='text'>
posix_memalign is only declared conditionally in stdlib.h,
so add one of the possible definitions to get the declaration.

Signed-off-by: Stefan Weil &lt;sw@weilnetz.de&gt;
</content>
</entry>
<entry>
<title>Fix duplicate article in comments</title>
<updated>2016-01-06T07:55:29Z</updated>
<author>
<name>Stefan Weil</name>
<email>sw@weilnetz.de</email>
</author>
<published>2016-01-06T07:55:29Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/openjpeg/commit/?id=99c4f621bd32ddfec25cb126d4d462642e9d43a6'/>
<id>urn:sha1:99c4f621bd32ddfec25cb126d4d462642e9d43a6</id>
<content type='text'>
Signed-off-by: Stefan Weil &lt;sw@weilnetz.de&gt;
</content>
</entry>
</feed>
