summaryrefslogtreecommitdiff
path: root/src/bin/jp2/converttif.c
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2021-10-21 12:43:50 +0200
committerEven Rouault <even.rouault@spatialys.com>2021-10-21 14:13:58 +0200
commit0b5d62684fe360e098e3bccaef02ee3e9781cec4 (patch)
tree0fa0b5ec1b13612115b847bdc3d1da4fba40ae67 /src/bin/jp2/converttif.c
parent3835f37084c762dc7a14b3e995bc005cf584de7c (diff)
API: deprecate 'bpp' member in favor of 'prec'
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
Diffstat (limited to 'src/bin/jp2/converttif.c')
-rw-r--r--src/bin/jp2/converttif.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/bin/jp2/converttif.c b/src/bin/jp2/converttif.c
index efd5a4e7..61b295bd 100644
--- a/src/bin/jp2/converttif.c
+++ b/src/bin/jp2/converttif.c
@@ -1389,7 +1389,6 @@ opj_image_t* tiftoimage(const char *filename, opj_cparameters_t *parameters)
for (j = 0; j < numcomps; j++) {
cmptparm[j].prec = tiBps;
- cmptparm[j].bpp = tiBps;
cmptparm[j].dx = (OPJ_UINT32)subsampling_dx;
cmptparm[j].dy = (OPJ_UINT32)subsampling_dy;
cmptparm[j].w = (OPJ_UINT32)w;