summaryrefslogtreecommitdiff
path: root/src/lib/openjp2/tcd.h
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2022-08-11 18:06:21 +0200
committerEven Rouault <even.rouault@spatialys.com>2022-08-11 18:12:07 +0200
commitc06632c6f6d0a3e106374fe462869b131366c2d0 (patch)
tree6d5682cbd92c75099b82a6a9c933b43560887d96 /src/lib/openjp2/tcd.h
parent3d9bcd37534ce1166e1f0a7764faf69bea4d89b1 (diff)
Cleanup code related to quality layer allocation, and add a few safety checks
Diffstat (limited to 'src/lib/openjp2/tcd.h')
-rw-r--r--src/lib/openjp2/tcd.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/openjp2/tcd.h b/src/lib/openjp2/tcd.h
index 7a4f3dcb..f659869a 100644
--- a/src/lib/openjp2/tcd.h
+++ b/src/lib/openjp2/tcd.h
@@ -222,8 +222,8 @@ typedef struct opj_tcd_tilecomp {
OPJ_UINT32 win_x1;
OPJ_UINT32 win_y1;
- /* add fixed_quality */
- OPJ_INT32 numpix;
+ /* number of pixels */
+ OPJ_SIZE_T numpix;
} opj_tcd_tilecomp_t;
@@ -235,9 +235,9 @@ typedef struct opj_tcd_tile {
OPJ_INT32 x0, y0, x1, y1;
OPJ_UINT32 numcomps; /* number of components in tile */
opj_tcd_tilecomp_t *comps; /* Components information */
- OPJ_INT32 numpix; /* add fixed_quality */
- OPJ_FLOAT64 distotile; /* add fixed_quality */
- OPJ_FLOAT64 distolayer[100]; /* add fixed_quality */
+ OPJ_SIZE_T numpix; /* number of pixels */
+ OPJ_FLOAT64 distotile; /* distortion of the tile */
+ OPJ_FLOAT64 distolayer[100]; /* distortion per layer */
OPJ_UINT32 packno; /* packet number */
} opj_tcd_tile_t;