T1: (failed) optimization attempt for low bit planes in refpass (#932) t1_optim_attempt_refpass_4_at_context16
authorEven Rouault <even.rouault@spatialys.com>
Mon, 22 May 2017 11:27:27 +0000 (13:27 +0200)
committerEven Rouault <even.rouault@spatialys.com>
Mon, 22 May 2017 11:27:27 +0000 (13:27 +0200)
commitdcf013db288db8712010648d378a293bb91a0eb7
treea014c2edd08951f3f1b94c1950eaec0f69c26358
parent83d7a6d4a44833e78321bfd367dc0f822a8d0945
T1: (failed) optimization attempt for low bit planes in refpass (#932)

In the lowest bit plane in 6 to 8% of the cases, the 4 samples in a column
in the zig-zag pattern are in context 16 of the refpass. So let's add a
dedicated function for this.

However the (best) timings show that it is actually slower. With this special
case: 50205 ms vs 49570 ms originally on MAPA_005.jp2 reencoded with default options.
src/lib/openjp2/t1.c