diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2016-05-21 15:41:36 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2016-05-21 15:46:56 +0200 |
| commit | c539808d097945866c0f7120ccdea28921a011a2 (patch) | |
| tree | 3b2d1e555074c1792141be8d96a7d9e5f8843bed /src/lib/openjp2/t1.h | |
| parent | 426bf8d337715f7b2e867cb2643128e5c2e3b5bb (diff) | |
opj_t1_updateflags(): tiny optimization
We can avoid using a loop-up table with some shift arithmetics.
Diffstat (limited to 'src/lib/openjp2/t1.h')
| -rw-r--r-- | src/lib/openjp2/t1.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/openjp2/t1.h b/src/lib/openjp2/t1.h index 3bc0ad9e..e9d3db57 100644 --- a/src/lib/openjp2/t1.h +++ b/src/lib/openjp2/t1.h @@ -50,6 +50,8 @@ in T1.C are used by some function in TCD.C. /* ----------------------------------------------------------------------- */ #define T1_NMSEDEC_BITS 7 +/* CAUTION: the value of those constants must not be changed, otherwise the */ +/* optimization of opj_t1_updateflags() will break! */ #define T1_SIG_NE 0x0001 /**< Context orientation : North-East direction */ #define T1_SIG_SE 0x0002 /**< Context orientation : South-East direction */ #define T1_SIG_SW 0x0004 /**< Context orientation : South-West direction */ |
