diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2021-10-21 12:43:50 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2021-10-21 14:13:58 +0200 |
| commit | 0b5d62684fe360e098e3bccaef02ee3e9781cec4 (patch) | |
| tree | 0fa0b5ec1b13612115b847bdc3d1da4fba40ae67 /src/lib/openjp2/image.c | |
| parent | 3835f37084c762dc7a14b3e995bc005cf584de7c (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/lib/openjp2/image.c')
| -rw-r--r-- | src/lib/openjp2/image.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/lib/openjp2/image.c b/src/lib/openjp2/image.c index fe373905..017201a0 100644 --- a/src/lib/openjp2/image.c +++ b/src/lib/openjp2/image.c @@ -66,7 +66,6 @@ opj_image_t* OPJ_CALLCONV opj_image_create(OPJ_UINT32 numcmpts, comp->x0 = cmptparms[compno].x0; comp->y0 = cmptparms[compno].y0; comp->prec = cmptparms[compno].prec; - comp->bpp = cmptparms[compno].bpp; comp->sgnd = cmptparms[compno].sgnd; if (comp->h != 0 && (OPJ_SIZE_T)comp->w > SIZE_MAX / comp->h / sizeof(OPJ_INT32)) { |
