summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormayeut <mayeut@users.noreply.github.com>2015-07-18 00:07:04 +0200
committermayeut <mayeut@users.noreply.github.com>2015-07-18 00:07:04 +0200
commit8048bbc7a2c82d8342c3372690ccd3c9a6359425 (patch)
treecf18e5c4b5dcbfe64acee2d3203aac4c82f29222 /src
parentd1591be3d7f5a95a11b2d5d1647f79d01c8c5bc1 (diff)
Add tests for TIFF input with Alpha channel
Update uclouvain/openjpeg#322
Diffstat (limited to 'src')
-rw-r--r--src/bin/jp2/converttif.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/jp2/converttif.c b/src/bin/jp2/converttif.c
index 21bb11f8..d93e5f53 100644
--- a/src/bin/jp2/converttif.c
+++ b/src/bin/jp2/converttif.c
@@ -977,6 +977,7 @@ opj_image_t* tiftoimage(const char *filename, opj_cparameters_t *parameters)
{
planes[j] = image->comps[j].data;
}
+ image->comps[numcomps - 1].alpha = (OPJ_UINT16)(1 - (numcomps & 1));
strip_size = TIFFStripSize(tif);