MQC/RAW decoder: use an artificial 0xFF 0xFF terminating marker.
authorEven Rouault <even.rouault@spatialys.com>
Fri, 2 Jun 2017 14:49:26 +0000 (16:49 +0200)
committerEven Rouault <even.rouault@spatialys.com>
Fri, 2 Jun 2017 16:24:07 +0000 (18:24 +0200)
commit532243f1fd9997db63ea7f6b199d21138ccf58a3
tree3e204ebb64f2a1ceb5c73af30c3ff377dde55b9a
parent9b39fc4bccb3e9e4e9a9f61c4dc672fb7f05d865
MQC/RAW decoder: use an artificial 0xFF 0xFF terminating marker.

This saves comparing the current pointer with the end of buffer pointer.
This results at least in tiny speed improvement for raw decoding, and
smaller code size for MQC as well.

This kills the remains of the raw.h/.c files that were only used for
decoding. Encoding using the mqc structure already.
14 files changed:
src/lib/openjp2/CMakeLists.txt
src/lib/openjp2/j2k.h
src/lib/openjp2/mqc.c
src/lib/openjp2/mqc.h
src/lib/openjp2/mqc_inl.h
src/lib/openjp2/opj_common.h [new file with mode: 0644]
src/lib/openjp2/opj_includes.h
src/lib/openjp2/raw.c [deleted file]
src/lib/openjp2/raw.h [deleted file]
src/lib/openjp2/raw_inl.h [deleted file]
src/lib/openjp2/t1.c
src/lib/openjp2/t1.h
src/lib/openjp2/t2.c
src/lib/openjp2/tcd.c