OpenJPH: /build/openjph/src/OpenJPH/src/core/codestream/ojph_codeblock_fun.cpp Source File

OpenJPH Open-source implementation of JPEG2000 Part-15

Loading...
Searching...
No Matches
ojph_codeblock_fun.cpp
Go to the documentation of this file.
1//***************************************************************************/
2// This software is released under the 2-Clause BSD license, included
3// below.
4//
5// Copyright (c) 2019, Aous Naman
6// Copyright (c) 2019, Kakadu Software Pty Ltd, Australia
7// Copyright (c) 2019, The University of New South Wales, Australia
8//
9// Redistribution and use in source and binary forms, with or without
10// modification, are permitted provided that the following conditions are
11// met:
12//
13// 1. Redistributions of source code must retain the above copyright
14// notice, this list of conditions and the following disclaimer.
15//
16// 2. Redistributions in binary form must reproduce the above copyright
17// notice, this list of conditions and the following disclaimer in the
18// documentation and/or other materials provided with the distribution.
19//
20// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
21// IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
22// TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
23// PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24// HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
26// TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
27// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
28// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31//***************************************************************************/
32// This file is part of the OpenJPH software implementation.
33// File: ojph_codeblock_fun.cpp
34// Author: Aous Naman
35// Date: 28 August 2019
36//***************************************************************************/
37
38
39#include <climits>
40#include <cmath>
41
42#include "ojph_file.h"
43#include "ojph_mem.h"
44#include "ojph_params.h"
45#include "ojph_codestream.h"
46#include "ojph_codestream_local.h"
47#include "ojph_codeblock_fun.h"
48
49#include "../transform/ojph_colour.h"
50#include "../transform/ojph_transform.h"
51#include "../coding/ojph_block_decoder.h"
52#include "../coding/ojph_block_encoder.h"
53
54namespace ojph {
55
56 namespace local
57 {
58
60 void gen_mem_clear(void* addr, size_t count);
61 void sse_mem_clear(void* addr, size_t count);
62 void avx_mem_clear(void* addr, size_t count);
63 void wasm_mem_clear(void* addr, size_t count);
64
66 ui32 gen_find_max_val32(ui32* address);
67 ui32 sse2_find_max_val32(ui32* address);
68 ui32 avx2_find_max_val32(ui32* address);
69 ui32 wasm_find_max_val32(ui32* address);
70 ui64 gen_find_max_val64(ui64* address);
71 ui64 sse2_find_max_val64(ui64* address);
72 ui64 avx2_find_max_val64(ui64* address);
73 ui64 wasm_find_max_val64(ui64* address);
74
75
77 void gen_rev_tx_to_cb32(const void *sp, ui32 *dp, ui32 K_max,
78 float delta_inv, ui32 count, ui32* max_val);
79 void sse2_rev_tx_to_cb32(const void *sp, ui32 *dp, ui32 K_max,
80 float delta_inv, ui32 count, ui32* max_val);
81 void avx2_rev_tx_to_cb32(const void *sp, ui32 *dp, ui32 K_max,
82 float delta_inv, ui32 count, ui32* max_val);
83 void gen_irv_tx_to_cb32(const void *sp, ui32 *dp, ui32 K_max,
84 float delta_inv, ui32 count, ui32* max_val);
85 void sse2_irv_tx_to_cb32(const void *sp, ui32 *dp, ui32 K_max,
86 float delta_inv, ui32 count, ui32* max_val);
87 void avx2_irv_tx_to_cb32(const void *sp, ui32 *dp, ui32 K_max,
88 float delta_inv, ui32 count, ui32* max_val);
89 void wasm_rev_tx_to_cb32(const void *sp, ui32 *dp, ui32 K_max,
90 float delta_inv, ui32 count, ui32* max_val);
91 void wasm_irv_tx_to_cb32(const void *sp, ui32 *dp, ui32 K_max,
92 float delta_inv, ui32 count, ui32* max_val);
93
94 void gen_rev_tx_to_cb64(const void *sp, ui64 *dp, ui32 K_max,
95 float delta_inv, ui32 count, ui64* max_val);
96 void sse2_rev_tx_to_cb64(const void *sp, ui64 *dp, ui32 K_max,
97 float delta_inv, ui32 count, ui64* max_val);
98 void avx2_rev_tx_to_cb64(const void *sp, ui64 *dp, ui32 K_max,
99 float delta_inv, ui32 count, ui64* max_val);
100 void wasm_rev_tx_to_cb64(const void *sp, ui64 *dp, ui32 K_max,
101 float delta_inv, ui32 count, ui64* max_val);
102
104 void gen_rev_tx_from_cb32(const ui32 *sp, void *dp, ui32 K_max,
105 float delta, ui32 count);
106 void sse2_rev_tx_from_cb32(const ui32 *sp, void *dp, ui32 K_max,
107 float delta, ui32 count);
108 void avx2_rev_tx_from_cb32(const ui32 *sp, void *dp, ui32 K_max,
109 float delta, ui32 count);
110 void gen_irv_tx_from_cb32(const ui32 *sp, void *dp, ui32 K_max,
111 float delta, ui32 count);
112 void sse2_irv_tx_from_cb32(const ui32 *sp, void *dp, ui32 K_max,
113 float delta, ui32 count);
114 void avx2_irv_tx_from_cb32(const ui32 *sp, void *dp, ui32 K_max,
115 float delta, ui32 count);
116 void wasm_rev_tx_from_cb32(const ui32 *sp, void *dp, ui32 K_max,
117 float delta, ui32 count);
118 void wasm_irv_tx_from_cb32(const ui32 *sp, void *dp, ui32 K_max,
119 float delta, ui32 count);
120
121 void gen_rev_tx_from_cb64(const ui64 *sp, void *dp, ui32 K_max,
122 float delta, ui32 count);
123 void sse2_rev_tx_from_cb64(const ui64 *sp, void *dp, ui32 K_max,
124 float delta, ui32 count);
125 void avx2_rev_tx_from_cb64(const ui64 *sp, void *dp, ui32 K_max,
126 float delta, ui32 count);
127 void gen_irv_tx_from_cb64(const ui64 *sp, void *dp, ui32 K_max,
128 float delta, ui32 count);
129 void wasm_rev_tx_from_cb64(const ui64 *sp, void *dp, ui32 K_max,
130 float delta, ui32 count);
131
132 void codeblock_fun::init(bool reversible) {
133
134#if !defined(OJPH_ENABLE_WASM_SIMD) || !defined(OJPH_EMSCRIPTEN)
135
136 // Default path, no acceleration. We may change this later
137 decode_cb32 = ojph_decode_codeblock32;
138 find_max_val32 = gen_find_max_val32;
139 mem_clear = gen_mem_clear;
140 if (reversible) {
141 tx_to_cb32 = gen_rev_tx_to_cb32;
142 tx_from_cb32 = gen_rev_tx_from_cb32;
143 }
144 else
145 {
146 tx_to_cb32 = gen_irv_tx_to_cb32;
147 tx_from_cb32 = gen_irv_tx_from_cb32;
148 }
149 encode_cb32 = ojph_encode_codeblock32;
150
151 decode_cb64 = ojph_decode_codeblock64;
152 find_max_val64 = gen_find_max_val64;
153 if (reversible) {
154 tx_to_cb64 = gen_rev_tx_to_cb64;
155 tx_from_cb64 = gen_rev_tx_from_cb64;
156 }
157 else
158 {
159 tx_to_cb64 = NULL;
160 tx_from_cb64 = gen_irv_tx_from_cb64;
161 }
162 encode_cb64 = ojph_encode_codeblock64;
163 bool result = initialize_block_encoder_tables();
164 assert(result); ojph_unused(result);
165
166 #ifndef OJPH_DISABLE_SIMD
167
168 #if (defined(OJPH_ARCH_X86_64) || defined(OJPH_ARCH_I386))
169
170 // Accelerated functions for INTEL/AMD CPUs
171 #ifndef OJPH_DISABLE_SSE
172 if (get_cpu_ext_level() >= X86_CPU_EXT_LEVEL_SSE)
173 mem_clear = sse_mem_clear;
174 #endif // !OJPH_DISABLE_SSE
175
176 #ifndef OJPH_DISABLE_SSE2
177 if (get_cpu_ext_level() >= X86_CPU_EXT_LEVEL_SSE2) {
178 find_max_val32 = sse2_find_max_val32;
179 if (reversible) {
180 tx_to_cb32 = sse2_rev_tx_to_cb32;
181 tx_from_cb32 = sse2_rev_tx_from_cb32;
182 }
183 else {
184 tx_to_cb32 = sse2_irv_tx_to_cb32;
185 tx_from_cb32 = sse2_irv_tx_from_cb32;
186 }
187 find_max_val64 = sse2_find_max_val64;
188 if (reversible) {
189 tx_to_cb64 = sse2_rev_tx_to_cb64;
190 tx_from_cb64 = sse2_rev_tx_from_cb64;
191 }
192 else
193 {
194 tx_to_cb64 = NULL;
195 tx_from_cb64 = gen_irv_tx_from_cb64;
196 }
197 }
198 #endif // !OJPH_DISABLE_SSE2
199
200 #ifndef OJPH_DISABLE_SSSE3
201 if (get_cpu_ext_level() >= X86_CPU_EXT_LEVEL_SSSE3)
202 decode_cb32 = ojph_decode_codeblock_ssse3;
203 #endif // !OJPH_DISABLE_SSSE3
204
205 #ifndef OJPH_DISABLE_AVX
206 if (get_cpu_ext_level() >= X86_CPU_EXT_LEVEL_AVX)
207 mem_clear = avx_mem_clear;
208 #endif // !OJPH_DISABLE_AVX
209
210 #ifndef OJPH_DISABLE_AVX2
211 if (get_cpu_ext_level() >= X86_CPU_EXT_LEVEL_AVX2) {
212 decode_cb32 = ojph_decode_codeblock_avx2;
213 find_max_val32 = avx2_find_max_val32;
214 if (reversible) {
215 tx_to_cb32 = avx2_rev_tx_to_cb32;
216 tx_from_cb32 = avx2_rev_tx_from_cb32;
217 }
218 else {
219 tx_to_cb32 = avx2_irv_tx_to_cb32;
220 tx_from_cb32 = avx2_irv_tx_from_cb32;
221 }
222 encode_cb32 = ojph_encode_codeblock_avx2;
223 bool result = initialize_block_encoder_tables_avx2();
224 assert(result); ojph_unused(result);
225
226 find_max_val64 = avx2_find_max_val64;
227 if (reversible) {
228 tx_to_cb64 = avx2_rev_tx_to_cb64;
229 tx_from_cb64 = avx2_rev_tx_from_cb64;
230 }
231 else
232 {
233 tx_to_cb64 = NULL;
234 tx_from_cb64 = gen_irv_tx_from_cb64;
235 }
236 }
237 #endif // !OJPH_DISABLE_AVX2
238
239 #if (defined(OJPH_ARCH_X86_64) && !defined(OJPH_DISABLE_AVX512))
240 if (get_cpu_ext_level() >= X86_CPU_EXT_LEVEL_AVX512) {
241 encode_cb32 = ojph_encode_codeblock_avx512;
242 bool result = initialize_block_encoder_tables_avx512();
243 assert(result); ojph_unused(result);
244 }
245 #endif // !OJPH_DISABLE_AVX512
246
247 #elif defined(OJPH_ARCH_ARM)
248
249 #endif // !(defined(OJPH_ARCH_X86_64) || defined(OJPH_ARCH_I386))
250
251 #endif // !OJPH_DISABLE_SIMD
252
253#else // OJPH_ENABLE_WASM_SIMD
254
255 // Accelerated functions for WASM SIMD.
256 decode_cb32 = ojph_decode_codeblock_wasm;
257 find_max_val32 = wasm_find_max_val32;
258 mem_clear = wasm_mem_clear;
259 if (reversible) {
260 tx_to_cb32 = wasm_rev_tx_to_cb32;
261 tx_from_cb32 = wasm_rev_tx_from_cb32;
262 }
263 else {
264 tx_to_cb32 = wasm_irv_tx_to_cb32;
265 tx_from_cb32 = wasm_irv_tx_from_cb32;
266 }
267 encode_cb32 = ojph_encode_codeblock32;
268
269 decode_cb64 = ojph_decode_codeblock64;
270 find_max_val64 = wasm_find_max_val64;
271 if (reversible) {
272 tx_to_cb64 = wasm_rev_tx_to_cb64;
273 tx_from_cb64 = wasm_rev_tx_from_cb64;
274 }
275 else
276 {
277 tx_to_cb64 = NULL;
278 tx_from_cb64 = gen_irv_tx_from_cb64;
279 }
280 encode_cb64 = ojph_encode_codeblock64;
281 bool result = initialize_block_encoder_tables();
282 assert(result); ojph_unused(result);
283
284#endif // !OJPH_ENABLE_WASM_SIMD
285
286 }
287 } // local
288} // ojph
ojph::local
Definition ojph_bitbuffer_read.h:52
ojph::local::gen_irv_tx_from_cb64
void gen_irv_tx_from_cb64(const ui64 *sp, void *dp, ui32 K_max, float delta, ui32 count)
Definition ojph_codestream_gen.cpp:173
ojph::local::ojph_decode_codeblock_wasm
bool ojph_decode_codeblock_wasm(ui8 *coded_data, ui32 *decoded_data, ui32 missing_msbs, ui32 num_passes, ui32 lengths1, ui32 lengths2, ui32 width, ui32 height, ui32 stride, bool stripe_causal)
Decodes one codeblock, processing the cleanup, siginificance propagation, and magnitude refinement pa...
Definition ojph_block_decoder_wasm.cpp:1051
ojph::local::gen_rev_tx_to_cb64
void gen_rev_tx_to_cb64(const void *sp, ui64 *dp, ui32 K_max, float delta_inv, ui32 count, ui64 *max_val)
Definition ojph_codestream_gen.cpp:83
ojph::local::avx2_find_max_val64
ui64 avx2_find_max_val64(ui64 *address)
ojph::local::wasm_rev_tx_to_cb64
void wasm_rev_tx_to_cb64(const void *sp, ui64 *dp, ui32 K_max, float delta_inv, ui32 count, ui64 *max_val)
Definition ojph_codestream_wasm.cpp:220
ojph::local::avx2_irv_tx_to_cb32
void avx2_irv_tx_to_cb32(const void *sp, ui32 *dp, ui32 K_max, float delta_inv, ui32 count, ui32 *max_val)
ojph::local::initialize_block_encoder_tables_avx512
bool initialize_block_encoder_tables_avx512()
ojph::local::sse2_rev_tx_from_cb32
void sse2_rev_tx_from_cb32(const ui32 *sp, void *dp, ui32 K_max, float delta, ui32 count)
ojph::local::avx2_rev_tx_from_cb64
void avx2_rev_tx_from_cb64(const ui64 *sp, void *dp, ui32 K_max, float delta, ui32 count)
ojph::local::sse2_find_max_val32
ui32 sse2_find_max_val32(ui32 *address)
ojph::local::wasm_find_max_val32
ui32 wasm_find_max_val32(ui32 *address)
Definition ojph_codestream_wasm.cpp:57
ojph::local::sse2_find_max_val64
ui64 sse2_find_max_val64(ui64 *address)
ojph::local::ojph_decode_codeblock_ssse3
bool ojph_decode_codeblock_ssse3(ui8 *coded_data, ui32 *decoded_data, ui32 missing_msbs, ui32 num_passes, ui32 lengths1, ui32 lengths2, ui32 width, ui32 height, ui32 stride, bool stripe_causal)
ojph::local::wasm_rev_tx_from_cb32
void wasm_rev_tx_from_cb32(const ui32 *sp, void *dp, ui32 K_max, float delta, ui32 count)
Definition ojph_codestream_wasm.cpp:177
ojph::local::avx_mem_clear
void avx_mem_clear(void *addr, size_t count)
ojph::local::avx2_find_max_val32
ui32 avx2_find_max_val32(ui32 *address)
ojph::local::avx2_rev_tx_to_cb32
void avx2_rev_tx_to_cb32(const void *sp, ui32 *dp, ui32 K_max, float delta_inv, ui32 count, ui32 *max_val)
ojph::local::wasm_rev_tx_from_cb64
void wasm_rev_tx_from_cb64(const ui64 *sp, void *dp, ui32 K_max, float delta, ui32 count)
Definition ojph_codestream_wasm.cpp:267
ojph::local::ojph_encode_codeblock32
void ojph_encode_codeblock32(ui32 *buf, ui32 missing_msbs, ui32 num_passes, ui32 width, ui32 height, ui32 stride, ui32 *lengths, ojph::mem_elastic_allocator *elastic, ojph::coded_lists *&coded)
Definition ojph_block_encoder.cpp:542
ojph::local::ojph_encode_codeblock64
void ojph_encode_codeblock64(ui64 *buf, ui32 missing_msbs, ui32 num_passes, ui32 width, ui32 height, ui32 stride, ui32 *lengths, ojph::mem_elastic_allocator *elastic, ojph::coded_lists *&coded)
Definition ojph_block_encoder.cpp:1026
ojph::local::sse2_rev_tx_to_cb32
void sse2_rev_tx_to_cb32(const void *sp, ui32 *dp, ui32 K_max, float delta_inv, ui32 count, ui32 *max_val)
ojph::local::gen_irv_tx_from_cb32
void gen_irv_tx_from_cb32(const ui32 *sp, void *dp, ui32 K_max, float delta, ui32 count)
Definition ojph_codestream_gen.cpp:158
ojph::local::gen_irv_tx_to_cb32
void gen_irv_tx_to_cb32(const void *sp, ui32 *dp, ui32 K_max, float delta_inv, ui32 count, ui32 *max_val)
Definition ojph_codestream_gen.cpp:105
ojph::local::ojph_encode_codeblock_avx2
void ojph_encode_codeblock_avx2(ui32 *buf, ui32 missing_msbs, ui32 num_passes, ui32 width, ui32 height, ui32 stride, ui32 *lengths, ojph::mem_elastic_allocator *elastic, ojph::coded_lists *&coded)
ojph::local::wasm_irv_tx_to_cb32
void wasm_irv_tx_to_cb32(const void *sp, ui32 *dp, ui32 K_max, float delta_inv, ui32 count, ui32 *max_val)
Definition ojph_codestream_wasm.cpp:127
ojph::local::wasm_find_max_val64
ui64 wasm_find_max_val64(ui64 *address)
Definition ojph_codestream_wasm.cpp:69
ojph::local::sse2_rev_tx_to_cb64
void sse2_rev_tx_to_cb64(const void *sp, ui64 *dp, ui32 K_max, float delta_inv, ui32 count, ui64 *max_val)
ojph::local::gen_mem_clear
void gen_mem_clear(void *addr, size_t count)
Definition ojph_codestream_gen.cpp:47
ojph::local::gen_rev_tx_from_cb64
void gen_rev_tx_from_cb64(const ui64 *sp, void *dp, ui32 K_max, float delta, ui32 count)
Definition ojph_codestream_gen.cpp:142
ojph::local::sse_mem_clear
void sse_mem_clear(void *addr, size_t count)
ojph::local::ojph_decode_codeblock32
bool ojph_decode_codeblock32(ui8 *coded_data, ui32 *decoded_data, ui32 missing_msbs, ui32 num_passes, ui32 lengths1, ui32 lengths2, ui32 width, ui32 height, ui32 stride, bool stripe_causal)
Decodes one codeblock, processing the cleanup, siginificance propagation, and magnitude refinement pa...
Definition ojph_block_decoder32.cpp:742
ojph::local::avx2_rev_tx_to_cb64
void avx2_rev_tx_to_cb64(const void *sp, ui64 *dp, ui32 K_max, float delta_inv, ui32 count, ui64 *max_val)
ojph::local::gen_find_max_val64
ui64 gen_find_max_val64(ui64 *address)
Definition ojph_codestream_gen.cpp:58
ojph::local::sse2_irv_tx_from_cb32
void sse2_irv_tx_from_cb32(const ui32 *sp, void *dp, ui32 K_max, float delta, ui32 count)
ojph::local::wasm_mem_clear
void wasm_mem_clear(void *addr, size_t count)
Definition ojph_codestream_wasm.cpp:48
ojph::local::gen_rev_tx_from_cb32
void gen_rev_tx_from_cb32(const ui32 *sp, void *dp, ui32 K_max, float delta, ui32 count)
Definition ojph_codestream_gen.cpp:126
ojph::local::wasm_rev_tx_to_cb32
void wasm_rev_tx_to_cb32(const void *sp, ui32 *dp, ui32 K_max, float delta_inv, ui32 count, ui32 *max_val)
Definition ojph_codestream_wasm.cpp:79
ojph::local::avx2_rev_tx_from_cb32
void avx2_rev_tx_from_cb32(const ui32 *sp, void *dp, ui32 K_max, float delta, ui32 count)
ojph::local::ojph_decode_codeblock_avx2
bool ojph_decode_codeblock_avx2(ui8 *coded_data, ui32 *decoded_data, ui32 missing_msbs, ui32 num_passes, ui32 lengths1, ui32 lengths2, ui32 width, ui32 height, ui32 stride, bool stripe_causal)
ojph::local::sse2_rev_tx_from_cb64
void sse2_rev_tx_from_cb64(const ui64 *sp, void *dp, ui32 K_max, float delta, ui32 count)
ojph::local::initialize_block_encoder_tables
bool initialize_block_encoder_tables()
Definition ojph_block_encoder.cpp:258
ojph::local::gen_rev_tx_to_cb32
void gen_rev_tx_to_cb32(const void *sp, ui32 *dp, ui32 K_max, float delta_inv, ui32 count, ui32 *max_val)
Definition ojph_codestream_gen.cpp:61
ojph::local::initialize_block_encoder_tables_avx2
bool initialize_block_encoder_tables_avx2()
ojph::local::gen_find_max_val32
ui32 gen_find_max_val32(ui32 *address)
Definition ojph_codestream_gen.cpp:55
ojph::local::wasm_irv_tx_from_cb32
void wasm_irv_tx_from_cb32(const ui32 *sp, void *dp, ui32 K_max, float delta, ui32 count)
Definition ojph_codestream_wasm.cpp:200
ojph::local::sse2_irv_tx_to_cb32
void sse2_irv_tx_to_cb32(const void *sp, ui32 *dp, ui32 K_max, float delta_inv, ui32 count, ui32 *max_val)
ojph::local::ojph_encode_codeblock_avx512
void ojph_encode_codeblock_avx512(ui32 *buf, ui32 missing_msbs, ui32 num_passes, ui32 width, ui32 height, ui32 stride, ui32 *lengths, ojph::mem_elastic_allocator *elastic, ojph::coded_lists *&coded)
ojph::local::avx2_irv_tx_from_cb32
void avx2_irv_tx_from_cb32(const ui32 *sp, void *dp, ui32 K_max, float delta, ui32 count)
ojph::local::ojph_decode_codeblock64
bool ojph_decode_codeblock64(ui8 *coded_data, ui64 *decoded_data, ui32 missing_msbs, ui32 num_passes, ui32 lengths1, ui32 lengths2, ui32 width, ui32 height, ui32 stride, bool stripe_causal)
Decodes one codeblock, processing the cleanup, siginificance propagation, and magnitude refinement pa...
Definition ojph_block_decoder64.cpp:766
ojph
Definition ojph_img_io.h:52
ojph::ui64
uint64_t ui64
Definition ojph_defs.h:56
ojph::get_cpu_ext_level
OJPH_EXPORT int get_cpu_ext_level()
Definition ojph_arch.cpp:260
ojph::ui32
uint32_t ui32
Definition ojph_defs.h:54
ojph::X86_CPU_EXT_LEVEL_AVX2
@ X86_CPU_EXT_LEVEL_AVX2
Definition ojph_arch.h:142
ojph::X86_CPU_EXT_LEVEL_AVX
@ X86_CPU_EXT_LEVEL_AVX
Definition ojph_arch.h:141
ojph::X86_CPU_EXT_LEVEL_AVX512
@ X86_CPU_EXT_LEVEL_AVX512
Definition ojph_arch.h:144
ojph::X86_CPU_EXT_LEVEL_SSE2
@ X86_CPU_EXT_LEVEL_SSE2
Definition ojph_arch.h:136
ojph::X86_CPU_EXT_LEVEL_SSE
@ X86_CPU_EXT_LEVEL_SSE
Definition ojph_arch.h:135
ojph::X86_CPU_EXT_LEVEL_SSSE3
@ X86_CPU_EXT_LEVEL_SSSE3
Definition ojph_arch.h:138
ojph_block_decoder.h
ojph_block_encoder.h
ojph_codeblock_fun.h
ojph_codestream.h
ojph_codestream_local.h
ojph_colour.h
ojph_unused
#define ojph_unused(x)
Definition ojph_defs.h:78
ojph_file.h
ojph_mem.h
ojph_params.h
ojph_transform.h
ojph::local::codeblock_fun::tx_to_cb64
tx_to_cb_fun64 tx_to_cb64
Definition ojph_codeblock_fun.h:106
ojph::local::codeblock_fun::encode_cb64
cb_encoder_fun64 encode_cb64
Definition ojph_codeblock_fun.h:118
ojph::local::codeblock_fun::init
void init(bool reversible)
Definition ojph_codeblock_fun.cpp:132
ojph::local::codeblock_fun::find_max_val32
find_max_val_fun32 find_max_val32
Definition ojph_codeblock_fun.h:101
ojph::local::codeblock_fun::tx_from_cb32
tx_from_cb_fun32 tx_from_cb32
Definition ojph_codeblock_fun.h:109
ojph::local::codeblock_fun::tx_to_cb32
tx_to_cb_fun32 tx_to_cb32
Definition ojph_codeblock_fun.h:105
ojph::local::codeblock_fun::find_max_val64
find_max_val_fun64 find_max_val64
Definition ojph_codeblock_fun.h:102
ojph::local::codeblock_fun::decode_cb32
cb_decoder_fun32 decode_cb32
Definition ojph_codeblock_fun.h:113
ojph::local::codeblock_fun::encode_cb32
cb_encoder_fun32 encode_cb32
Definition ojph_codeblock_fun.h:117
ojph::local::codeblock_fun::mem_clear
mem_clear_fun mem_clear
Definition ojph_codeblock_fun.h:98
ojph::local::codeblock_fun::decode_cb64
cb_decoder_fun64 decode_cb64
Definition ojph_codeblock_fun.h:114
ojph::local::codeblock_fun::tx_from_cb64
tx_from_cb_fun64 tx_from_cb64
Definition ojph_codeblock_fun.h:110