summaryrefslogtreecommitdiff
path: root/src/lib/openjp2/sparse_array.h
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2017-09-01 16:30:50 +0200
committerEven Rouault <even.rouault@spatialys.com>2017-09-01 16:30:50 +0200
commitb2cc8f7f81242f967b65e76de043e5e31663d793 (patch)
tree5e05cb5704c0181502adafc1743299bd21a70023 /src/lib/openjp2/sparse_array.h
parent0ae3cba3404674bbe2028ea9a801301a4c951b33 (diff)
Optimize reading/write into sparse array
Diffstat (limited to 'src/lib/openjp2/sparse_array.h')
-rw-r--r--src/lib/openjp2/sparse_array.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/openjp2/sparse_array.h b/src/lib/openjp2/sparse_array.h
index 485cafea..130fe13e 100644
--- a/src/lib/openjp2/sparse_array.h
+++ b/src/lib/openjp2/sparse_array.h
@@ -77,7 +77,7 @@ void opj_sparse_array_int32_free(opj_sparse_array_int32_t* sa);
* @param y1 bottom y coordinate (not included) of the region. Must be greater than y0.
* @return OPJ_TRUE or OPJ_FALSE.
*/
-OPJ_BOOL opj_sparse_array_is_region_valid(opj_sparse_array_int32_t* sa,
+OPJ_BOOL opj_sparse_array_is_region_valid(const opj_sparse_array_int32_t* sa,
OPJ_UINT32 x0,
OPJ_UINT32 y0,
OPJ_UINT32 x1,
@@ -99,7 +99,7 @@ OPJ_BOOL opj_sparse_array_is_region_valid(opj_sparse_array_int32_t* sa,
* @param forgiving if set to TRUE and the region is invalid, OPJ_TRUE will still be returned.
* @return OPJ_TRUE in case of success.
*/
-OPJ_BOOL opj_sparse_array_int32_read(opj_sparse_array_int32_t* sa,
+OPJ_BOOL opj_sparse_array_int32_read(const opj_sparse_array_int32_t* sa,
OPJ_UINT32 x0,
OPJ_UINT32 y0,
OPJ_UINT32 x1,