OpenJPH Open-source implementation of JPEG2000 Part-15

Loading...
Searching...
No Matches
ojph_params_local.h
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_params_local.h
34// Author: Aous Naman
35// Date: 28 August 2019
36//***************************************************************************/
37
38
39#ifndef OJPH_PARAMS_LOCAL_H
40#define OJPH_PARAMS_LOCAL_H
41
42#include <cstring>
43#include <cassert>
44
45#include "ojph_defs.h"
46#include "ojph_base.h"
47#include "ojph_arch.h"
48#include "ojph_message.h"
49
50 namespace ojph {
51
53 class outfile_base;
54 class infile_base;
55
57 enum PROGRESSION_ORDER : si32
58 {
59 OJPH_PO_LRCP = 0,
60 OJPH_PO_RLCP = 1,
61 OJPH_PO_RPCL = 2,
62 OJPH_PO_PCRL = 3,
63 OJPH_PO_CPRL = 4
64 };
65
67 const char OJPH_PO_STRING_LRCP[] = "LRCP";
68 const char OJPH_PO_STRING_RLCP[] = "RLCP";
69 const char OJPH_PO_STRING_RPCL[] = "RPCL";
70 const char OJPH_PO_STRING_PCRL[] = "PCRL";
71 const char OJPH_PO_STRING_CPRL[] = "CPRL";
72
74 enum OJPH_PROFILE_NUM : si32
75 {
76 OJPH_PN_UNDEFINED = 0,
77 OJPH_PN_PROFILE0 = 1,
78 OJPH_PN_PROFILE1 = 2,
79 OJPH_PN_CINEMA2K = 3,
80 OJPH_PN_CINEMA4K = 4,
81 OJPH_PN_CINEMAS2K = 5,
82 OJPH_PN_CINEMAS4K = 6,
83 OJPH_PN_BROADCAST = 7,
84 OJPH_PN_IMF = 8
85 };
86
88 const char OJPH_PN_STRING_PROFILE0[] = "PROFILE0";
89 const char OJPH_PN_STRING_PROFILE1[] = "PROFILE1";
90 const char OJPH_PN_STRING_CINEMA2K[] = "CINEMA2K";
91 const char OJPH_PN_STRING_CINEMA4K[] = "CINEMA4K";
92 const char OJPH_PN_STRING_CINEMAS2K[] = "CINEMAS2K";
93 const char OJPH_PN_STRING_CINEMAS4K[] = "CINEMAS4K";
94 const char OJPH_PN_STRING_BROADCAST[] = "BROADCAST";
95 const char OJPH_PN_STRING_IMF[] = "IMF";
96
98 enum OJPH_TILEPART_DIVISIONS: ui32 {
99 OJPH_TILEPART_NO_DIVISIONS = 0x0, // no divisions to tile parts
100 OJPH_TILEPART_RESOLUTIONS = 0x1,
101 OJPH_TILEPART_COMPONENTS = 0x2,
102 OJPH_TILEPART_LAYERS = 0x4, // these are meaningless with HTJ2K
103 OJPH_TILEPART_MASK = 0x3, // mask used for testing
104 };
105
106 namespace local {
107
108 //defined here
109 struct param_siz;
110 struct param_cod;
111 struct param_qcd;
112 struct param_cap;
113 struct param_sot;
114 struct param_tlm;
115 struct param_dfs;
116 struct param_atk;
117
119 enum JP2K_MARKER : ui16
120 {
121 SOC = 0xFF4F, //start of codestream (required)
122 CAP = 0xFF50, //extended capability
123 SIZ = 0xFF51, //image and tile size (required)
124 COD = 0xFF52, //coding style default (required)
125 COC = 0xFF53, //coding style component
126 TLM = 0xFF55, //tile-part lengths
127 PRF = 0xFF56, //profile
128 PLM = 0xFF57, //packet length, main header
129 PLT = 0xFF58, //packet length, tile-part header
130 CPF = 0xFF59, //corresponding profile values
131 QCD = 0xFF5C, //qunatization default (required)
132 QCC = 0xFF5D, //quantization component
133 RGN = 0xFF5E, //region of interest
134 POC = 0xFF5F, //progression order change
135 PPM = 0xFF60, //packed packet headers, main header
136 PPT = 0xFF61, //packed packet headers, tile-part header
137 CRG = 0xFF63, //component registration
138 COM = 0xFF64, //comment
139 DFS = 0xFF72, //downsampling factor styles
140 ADS = 0xFF73, //arbitrary decomposition styles
141 NLT = 0xFF76, //non-linearity point transformation
142 ATK = 0xFF79, //arbitrary transformation kernels
143 SOT = 0xFF90, //start of tile-part
144 SOP = 0xFF91, //start of packet
145 EPH = 0xFF92, //end of packet
146 SOD = 0xFF93, //start of data
147 EOC = 0xFFD9, //end of codestream (required)
148 };
149
151 //
152 //
153 //
154 //
155 //
157 struct siz_comp_info
158 {
159 ui8 SSiz;
160 ui8 XRsiz;
161 ui8 YRsiz;
162 };
163
165 struct param_siz
166 {
167 friend ::ojph::param_siz;
168
169 public:
170 enum : ui16 {
171 RSIZ_NLT_FLAG = 0x200,
172 RSIZ_HT_FLAG = 0x4000,
173 RSIZ_EXT_FLAG = 0x8000,
174 };
175
176 public:
177 param_siz() { init(); }
178 ~param_siz() { destroy(); }
179
180 void init()
181 {
182 Lsiz = Csiz = 0;
183 Xsiz = Ysiz = XOsiz = YOsiz = XTsiz = YTsiz = XTOsiz = YTOsiz = 0;
184 skipped_resolutions = 0;
185 memset(store, 0, sizeof(store));
186 ws_kern_support_needed = dfs_support_needed = false;
187 cod = NULL;
188 dfs = NULL;
189 Rsiz = RSIZ_HT_FLAG;
190 cptr = store;
191 old_Csiz = sizeof(store) / sizeof(siz_comp_info);
192 }
193
194 void destroy()
195 { if (cptr != store) { delete[] cptr; cptr = NULL; } }
196
197 void set_num_components(ui32 num_comps)
198 {
199 Csiz = (ui16)num_comps;
200 if (Csiz > old_Csiz)
201 {
202 if (cptr != store)
203 delete[] cptr;
204 cptr = new siz_comp_info[num_comps];
205 old_Csiz = Csiz;
206 }
207 memset(cptr, 0, sizeof(local::siz_comp_info) * num_comps);
208 }
209
210 void set_comp_info(ui32 comp_num, const point& downsampling,
211 ui32 bit_depth, bool is_signed)
212 {
213 assert(comp_num < Csiz);
214 assert(downsampling.x != 0 && downsampling.y != 0);
215 cptr[comp_num].SSiz = (ui8)(bit_depth - 1 + (is_signed ? 0x80 : 0));
216 cptr[comp_num].XRsiz = (ui8)downsampling.x;
217 cptr[comp_num].YRsiz = (ui8)downsampling.y;
218 }
219
220 void check_validity(const param_cod& cod)
221 {
222 this->cod = &cod;
223
224 if (XTsiz == 0 && YTsiz == 0)
225 { XTsiz = Xsiz + XOsiz; YTsiz = Ysiz + YOsiz; }
226 if (Xsiz == 0 || Ysiz == 0 || XTsiz == 0 || YTsiz == 0)
227 OJPH_ERROR(0x00040001,
228 "You cannot set image extent nor tile size to zero");
229 if (XTOsiz > XOsiz || YTOsiz > YOsiz)
230 OJPH_ERROR(0x00040002,
231 "tile offset has to be smaller than image offset");
232 if (XTsiz + XTOsiz <= XOsiz || YTsiz + YTOsiz <= YOsiz)
233 OJPH_ERROR(0x00040003,
234 "the top left tile must intersect with the image");
235 }
236
237 ui16 get_num_components() const { return Csiz; }
238 ui32 get_bit_depth(ui32 comp_num) const
239 {
240 assert(comp_num < Csiz);
241 return (cptr[comp_num].SSiz & 0x7F) + 1u;
242 }
243 bool is_signed(ui32 comp_num) const
244 {
245 assert(comp_num < Csiz);
246 return (cptr[comp_num].SSiz & 0x80) != 0;
247 }
248 point get_downsampling(ui32 comp_num) const
249 {
250 assert(comp_num < Csiz);
251 return point(cptr[comp_num].XRsiz, cptr[comp_num].YRsiz);
252 }
253
254 bool write(outfile_base *file);
255 void read(infile_base *file);
256
257 void link(const param_cod* cod)
258 { this->cod = cod; }
259
260 void link(const param_dfs* dfs)
261 { this->dfs = dfs; }
262
263 void set_skipped_resolutions(ui32 skipped_resolutions)
264 { this->skipped_resolutions = skipped_resolutions; }
265
266 ui32 get_width(ui32 comp_num) const
267 {
268 assert(comp_num < get_num_components());
269 ui32 ds = (ui32)cptr[comp_num].XRsiz;
270 ui32 t = ojph_div_ceil(Xsiz, ds) - ojph_div_ceil(XOsiz, ds);
271 return t;
272 }
273
274 ui32 get_height(ui32 comp_num) const
275 {
276 assert(comp_num < get_num_components());
277 ui32 ds = (ui32)cptr[comp_num].YRsiz;
278 ui32 t = ojph_div_ceil(Ysiz, ds) - ojph_div_ceil(YOsiz, ds);
279 return t;
280 }
281
282 point get_recon_downsampling(ui32 comp_num) const;
283 point get_recon_size(ui32 comp_num) const;
284 ui32 get_recon_width(ui32 comp_num) const
285 { return get_recon_size(comp_num).x; }
286 ui32 get_recon_height(ui32 comp_num) const
287 { return get_recon_size(comp_num).y; }
288
289 bool is_ws_kern_support_needed() { return ws_kern_support_needed; }
290 bool is_dfs_support_needed() { return dfs_support_needed; }
291
292 void set_Rsiz_flag(ui16 flag)
293 { Rsiz |= flag; }
294 void reset_Rsiz_flag(ui16 flag)
295 { Rsiz = (ui16)(Rsiz & ~flag); }
296
297 private:
298 ui16 Lsiz;
299 ui16 Rsiz;
300 ui32 Xsiz;
301 ui32 Ysiz;
302 ui32 XOsiz;
303 ui32 YOsiz;
304 ui32 XTsiz;
305 ui32 YTsiz;
306 ui32 XTOsiz;
307 ui32 YTOsiz;
308 ui16 Csiz;
309 siz_comp_info* cptr;
310
311 private:
312 ui32 skipped_resolutions;
313 int old_Csiz;
314 siz_comp_info store[4];
315 bool ws_kern_support_needed;
316 bool dfs_support_needed;
317 const param_cod* cod;
318 const param_dfs* dfs;
319 param_siz(const param_siz&) = delete; //prevent copy constructor
320 param_siz& operator=(const param_siz&) = delete; //prevent copy
321 };
322
324 //
325 //
326 //
327 //
328 //
330 struct cod_SPcod
331 {
332 cod_SPcod() {
333 num_decomp = 5;
334 block_width = 4; // 64
335 block_height = 4; // 64
336 block_style = 0x40; // HT mode
337 wavelet_trans = 0; // reversible 5 / 3
338 memset(precinct_size, 0, sizeof(precinct_size));
339 }
340
341 ui8 num_decomp;
342 ui8 block_width;
343 ui8 block_height;
344 ui8 block_style;
345 ui8 wavelet_trans;
346 ui8 precinct_size[33]; //num_decomp is in [0,32]
347
348 size get_log_block_dims() const
349 { return size(block_width + 2, block_height + 2); }
350 size get_block_dims() const
351 { size t = get_log_block_dims(); return size(1 << t.w, 1 << t.h); }
352 size get_log_precinct_size(ui32 res_num) const
353 {
354 assert(res_num <= num_decomp);
355 size ps(precinct_size[res_num] & 0xF, precinct_size[res_num] >> 4);
356 return ps;
357 }
358 };
359
361 struct cod_SGcod
362 {
363 cod_SGcod() : prog_order(OJPH_PO_RPCL), num_layers(1), mc_trans(0) {}
364 ui8 prog_order;
365 ui16 num_layers;
366 ui8 mc_trans;
367 };
368
370 struct param_cod
371 {
372 // serves for both COD and COC markers
373 friend ::ojph::param_cod;
374 enum default_comp_num : ui16 {
375 OJPH_COD_UNKNOWN = 65534,
376 OJPH_COD_DEFAULT = 65535
377 };
378
380 enum BLOCK_CODING_STYLES {
381 VERT_CAUSAL_MODE = 0x8,
382 HT_MODE = 0x40
383 };
384
385 enum cod_type : ui8 {
386 UNDEFINED = 0,
387 COD_MAIN = 1,
388 COC_MAIN = 2,
389 COD_TILE = 3, // not implemented
390 COC_TILE = 4 // not implemented
391 };
392
393 enum dwt_type : ui8 {
394 DWT_IRV97 = 0,
395 DWT_REV53 = 1,
396 };
397
398 public: // COD_MAIN and COC_MAIN common functions
399 param_cod(param_cod* top_cod = NULL, ui16 comp_idx = OJPH_COD_DEFAULT)
400 { avail = NULL; init(top_cod, comp_idx); }
401 ~param_cod() { destroy(); }
402
404 void restart()
405 {
406 param_cod** p = &avail; // move next to the end of avail
407 while (*p != NULL)
408 p = &((*p)->next);
409 *p = next;
410 this->init(top_cod, OJPH_COD_DEFAULT);
411 }
412
414 void set_reversible(bool reversible)
415 {
416 assert(type == UNDEFINED || type == COD_MAIN || type == COC_MAIN);
417 SPcod.wavelet_trans = reversible ? DWT_REV53 : DWT_IRV97;
418 }
419
421 void employ_color_transform(ui8 val)
422 {
423 assert(val == 0 || val == 1);
424 assert(type == UNDEFINED || type == COD_MAIN);
425 SGCod.mc_trans = val;
426 }
427
429 void check_validity(const param_siz& siz)
430 {
431 assert(type == COD_MAIN);
432
433 //check that colour transform and match number of components and
434 // downsampling
435 int num_comps = siz.get_num_components();
436 if (SGCod.mc_trans == 1 && num_comps < 3)
437 OJPH_ERROR(0x00040011,
438 "color transform can only be employed when the image has 3 or "
439 "more color components");
440
441 if (SGCod.mc_trans == 1)
442 {
443 bool test_signedness = false;
444 bool test_bit_depth = false;
445 bool test_downsampling = false;
446 point p = siz.get_downsampling(0);
447 ui32 bit_depth = siz.get_bit_depth(0);
448 bool is_signed = siz.is_signed(0);
449 for (ui32 i = 1; i < 3; ++i)
450 {
451 point p1 = siz.get_downsampling(i);
452 test_downsampling = test_downsampling
453 || (p.x != p1.x || p.y != p1.y);
454 test_bit_depth = test_bit_depth
455 || (bit_depth != siz.get_bit_depth(i));
456 test_signedness = test_signedness
457 || (is_signed != siz.is_signed(i));
458 }
459 if (test_downsampling)
460 OJPH_ERROR(0x00040012,
461 "when color transform is used, the first 3 colour components "
462 "must have the same downsampling factor.");
463 if (test_bit_depth)
464 OJPH_ERROR(0x00040014,
465 "when color transform is used, the first 3 colour components "
466 "must have the same bit depth.");
467 if (test_signedness)
468 OJPH_ERROR(0x00040015,
469 "when color transform is used, the first 3 colour components "
470 "must have the same signedness (signed or unsigned).");
471
472 }
473
474 //check the progression order matches downsampling
475 if (SGCod.prog_order == OJPH_PO_RPCL ||
476 SGCod.prog_order == OJPH_PO_PCRL)
477 {
478 ui32 num_comps = siz.get_num_components();
479 for (ui32 i = 0; i < num_comps; ++i)
480 {
481 point r = siz.get_downsampling(i);
482 if (r.x & (r.x - 1) || r.y & (r.y - 1))
483 OJPH_ERROR(0x00040013, "For RPCL and PCRL progression orders,"
484 "component downsampling factors have to be powers of 2");
485 }
486 }
487 }
488
490 ui8 get_num_decompositions() const
491 {
492 if (type == COD_MAIN)
493 return SPcod.num_decomp;
494 else if (type == COC_MAIN)
495 {
496 if (is_dfs_defined())
497 return top_cod->get_num_decompositions();
498 else
499 return SPcod.num_decomp;
500 }
501 else {
502 assert(0);
503 return 0; // just in case
504 }
505 }
506
508 size get_block_dims() const
509 { return SPcod.get_block_dims(); }
510
512 size get_log_block_dims() const
513 { return SPcod.get_log_block_dims(); }
514
516 ui8 get_wavelet_kern() const
517 { return SPcod.wavelet_trans; }
518
520 bool is_reversible() const;
521
523 bool is_employing_color_transform() const
524 {
525 if (type == COD_MAIN || type == COD_TILE)
526 return (SGCod.mc_trans == 1);
527 else
528 return top_cod->is_employing_color_transform();
529 }
530
532 size get_precinct_size(ui32 res_num) const
533 {
534 size t = get_log_precinct_size(res_num);
535 return size(1 << t.w, 1 << t.h);
536 }
537
539 size get_log_precinct_size(ui32 res_num) const
540 {
541 if (Scod & 1)
542 return SPcod.get_log_precinct_size(res_num);
543 else
544 return size(15, 15);
545 }
546
548 bool packets_may_use_sop() const
549 {
550 if (type == COD_MAIN || type == COD_TILE)
551 return (Scod & 2) == 2;
552 return false;
553 }
554
556 bool packets_use_eph() const
557 {
558 if (type == COD_MAIN || type == COD_TILE)
559 return (Scod & 4) == 4;
560 return false;
561 }
562
564 bool get_block_vertical_causality() const
565 { return (SPcod.block_style & local::param_cod::VERT_CAUSAL_MODE) != 0; }
566
568 bool write(outfile_base *file);
569
571 bool write_coc(outfile_base *file, ui32 num_comps);
572
574 void read(infile_base *file);
575
577 void read_coc(infile_base* file, ui32 num_comps, param_cod* top_cod);
578
580 void update_atk(param_atk* atk);
581
583 const param_cod* get_coc(ui32 comp_idx) const;
584
586 param_cod* get_coc(ui32 comp_idx);
587
589 param_cod* add_coc_object(ui32 comp_idx);
590
592 const param_atk* access_atk() const { return atk; }
593
594 public: // COC_MAIN only functions
596 bool is_dfs_defined() const
597 { return (SPcod.num_decomp & 0x80) != 0; }
598
600 ui16 get_dfs_index() const // cannot be more than 15
601 { return SPcod.num_decomp & 0xF; }
602
604 ui32 get_comp_idx() const
605 {
606 assert((type == COC_MAIN && comp_idx != OJPH_COD_DEFAULT) ||
607 (type == COD_MAIN && comp_idx == OJPH_COD_DEFAULT));
608 return comp_idx;
609 }
610
611 private:
613 void init(param_cod* top_cod, ui16 comp_idx)
614 {
615 type = top_cod ? COC_MAIN : COD_MAIN;
616 Lcod = 0;
617 Scod = 0;
618 next = NULL;
619 atk = NULL;
620 this->top_cod = top_cod;
621 this->comp_idx = comp_idx;
622 }
623
625 void destroy() {
626 if (avail)
627 delete avail;
628 if (next) {
629 delete next;
630 next = NULL;
631 }
632 }
633
634 private:
635 bool internal_write_coc(outfile_base *file, ui32 num_comps);
636
638 private: // Common variables
639 cod_type type; // The type of this cod structure
640 ui16 Lcod; // serves as Lcod and Scod
641 ui8 Scod; // serves as Scod and Scoc
642 cod_SGcod SGCod; // Used in COD and copied to COC
643 cod_SPcod SPcod; // serves as SPcod and SPcoc
644 param_cod* next; // to chain coc parameters to cod
645 const param_atk* atk; // used to read transform information
646
647 private: // COC only variables
648 param_cod* top_cod; // parent COD structure
649 ui16 comp_idx; // component index of this COC structure
650
651 private: // on restart, already allocated param_cod objs are stored here
652 param_cod* avail;
653 };
654
656 //
657 //
658 //
659 //
660 //
662 struct param_qcd
663 {
664 // serves for both QCD and QCC markers
665 friend ::ojph::param_qcd;
666 enum default_comp_num : ui16 {
667 OJPH_QCD_UNKNOWN = 65534,
668 OJPH_QCD_DEFAULT = 65535
669 };
670
672 enum qcd_type : ui8 {
673 UNDEFINED = 0,
674 QCD_MAIN = 1,
675 QCC_MAIN = 2,
676 QCD_TILE = 3, // not implemented
677 QCC_TILE = 4 // not implemented
678 };
679
680 public:
681 param_qcd(param_qcd* top_qcd = NULL, ui16 comp_idx = OJPH_QCD_DEFAULT)
682 { avail = NULL; init(top_qcd, comp_idx); }
683 ~param_qcd() { destroy(); }
684
686 void restart()
687 {
688 param_qcd** p = &avail; // move next to the end of avail
689 while (*p != NULL)
690 p = &((*p)->next);
691 *p = next;
692 this->init(top_qcd, OJPH_QCD_DEFAULT);
693 }
694
695 void check_validity(const param_siz& siz, const param_cod& cod);
696 void set_delta(float delta) { base_delta = delta; }
697 void set_delta(ui32 comp_idx, float delta);
698 ui32 get_num_guard_bits() const;
699 ui32 get_MAGB() const;
700 ui32 get_Kmax(const param_dfs* dfs, ui32 num_decompositions,
701 ui32 resolution, ui32 subband) const;
702 ui32 propose_precision(const param_cod* cod) const;
703 float get_irrev_delta(const param_dfs* dfs,
704 ui32 num_decompositions,
705 ui32 resolution, ui32 subband) const;
706 bool write(outfile_base *file);
707 bool write_qcc(outfile_base *file, ui32 num_comps);
708 void read(infile_base *file);
709 void read_qcc(infile_base *file, ui32 num_comps);
710
711 param_qcd* get_qcc(ui32 comp_idx);
712 const param_qcd* get_qcc(ui32 comp_idx) const;
713 param_qcd* add_qcc_object(ui32 comp_idx);
714 ui16 get_comp_idx() const { return comp_idx; }
715
716 private:
718 void init(param_qcd* top_qcd, ui16 comp_idx)
719 {
720 type = top_qcd ? QCC_MAIN : QCD_MAIN;
721 Lqcd = 0;
722 Sqcd = 0;
723 memset(&SPqcd, 0, sizeof(SPqcd));
724 num_subbands = 0;
725 base_delta = -1.0f;
726 enabled = true;
727 next = NULL;
728 this->top_qcd = top_qcd;
729 this->comp_idx = comp_idx;
730 }
731
733 void destroy() {
734 if (avail)
735 delete avail;
736 if (next)
737 {
738 delete next;
739 next = NULL;
740 }
741 }
742
743 private:
744 void set_rev_quant(ui32 num_decomps, ui32 bit_depth,
745 bool is_employing_color_transform);
746 void set_irrev_quant(ui32 num_decomps);
747 ui32 get_largest_Kmax() const;
748 bool internal_write_qcc(outfile_base *file, ui32 num_comps);
749 void trim_non_existing_components(ui32 num_comps);
750
751 ui8 decode_SPqcd(ui8 v) const
752 { return (ui8)(v >> 3); }
753 ui8 encode_SPqcd(ui8 v) const
754 { return (ui8)(v << 3); }
755
756 private: // QCD variables
757 qcd_type type;
758 ui16 Lqcd;
759 ui8 Sqcd;
760 union
761 {
762 ui8 u8[97];
763 ui16 u16[97];
764 } SPqcd;
765 ui32 num_subbands; // number of subbands
766 float base_delta; // base quantization step size -- all other
767 // step sizes are derived from it.
768 bool enabled; // enabled if two, and ignored if false
769 param_qcd *next; // pointer to create chains of qcc marker segments
770 param_qcd *top_qcd; // pointer to the top QCD (this is the default)
771
772 private: // QCC only variables
773 ui16 comp_idx;
774
775 private: // on restart, already allocated param_qcd objs are stored here
776 param_qcd* avail;
777 };
778
780 //
781 //
782 //
783 //
784 //
786 // data structures used by param_nlt
787 struct param_nlt
788 {
789 using special_comp_num = ojph::param_nlt::special_comp_num;
790 using nonlinearity = ojph::param_nlt::nonlinearity;
791 public:
792 param_nlt() { avail = NULL; init(); }
793 ~param_nlt() { destroy(); }
794
796 void restart()
797 {
798 param_nlt** p = &avail; // move next to the end of avail
799 while (*p != NULL)
800 p = &((*p)->next);
801 *p = next;
802 this->init();
803 }
804
805 void check_validity(param_siz& siz);
806 void set_nonlinear_transform(ui32 comp_num, ui8 nl_type);
807 bool get_nonlinear_transform(ui32 comp_num, ui8& bit_depth,
808 bool& is_signed, ui8& nl_type) const;
809 bool write(outfile_base* file) const;
810 void read(infile_base* file);
811
812 private:
814 void init()
815 {
816 Lnlt = 6;
817 Cnlt = special_comp_num::ALL_COMPS; // default
818 BDnlt = 0;
819 Tnlt = nonlinearity::OJPH_NLT_UNDEFINED;
820 enabled = false; next = NULL;
821 }
822
824 void destroy()
825 {
826 if (avail)
827 delete avail;
828 if (next) {
829 delete next;
830 next = NULL;
831 }
832 }
833
834 private:
835 const param_nlt* get_nlt_object(ui32 comp_num) const;
836 param_nlt* get_nlt_object(ui32 comp_num);
837 param_nlt* add_object(ui32 comp_num);
838 bool is_any_enabled() const;
839 void trim_non_existing_components(ui32 num_comps);
840
841 private:
842 ui16 Lnlt; // length of the marker segment excluding marker
843 ui16 Cnlt; // Component involved in the transformation
844 ui8 BDnlt; // Decoded image component bit depth parameter
845 ui8 Tnlt; // Type of non-linearity
846 bool enabled; // true if this object is used
847 param_nlt* next; // for chaining NLT markers
848
849 // The top level param_nlt object is not allocated, but as part of
850 // codestream, and is used to manage allocated next objects.
851 // next holds a list of param_nlt objects, which are managed by the top
852 // param_nlt object.
853
854 private: // on restart, already allocated param_nlt objs are stored here
855 param_nlt* avail;
856 };
857
859 //
860 //
861 //
862 //
863 //
865 struct param_cap
866 {
867 public:
868 param_cap()
869 {
870 memset(this, 0, sizeof(param_cap));
871 Lcap = 8;
872 Pcap = 0x00020000; //for jph, Pcap^15 must be set, the 15th MSB
873 }
874
875 void check_validity(const param_cod& cod, const param_qcd& qcd)
876 {
877 if (cod.get_wavelet_kern() == param_cod::DWT_REV53)
878 Ccap[0] &= 0xFFDF;
879 else
880 Ccap[0] |= 0x0020;
881 Ccap[0] &= 0xFFE0;
882 ui32 Bp = 0;
883 ui32 B = qcd.get_MAGB();
884 if (B <= 8)
885 Bp = 0;
886 else if (B < 28)
887 Bp = B - 8;
888 else
889 Bp = 13 + (B >> 2);
890 Ccap[0] = (ui16)(Ccap[0] | (ui16)Bp);
891 }
892
893 bool write(outfile_base *file);
894 void read(infile_base *file);
895
896 private:
897 ui16 Lcap;
898 ui32 Pcap;
899 ui16 Ccap[32]; //a maximum of 32
900 };
901
902
904 //
905 //
906 //
907 //
908 //
910 struct param_sot
911 {
912 public:
913 void init(ui32 payload_length = 0, ui16 tile_idx = 0,
914 ui8 tile_part_index = 0, ui8 num_tile_parts = 0)
915 {
916 Lsot = 10;
917 Psot = payload_length + 12; //total = payload + SOT marker
918 Isot = tile_idx;
919 TPsot = tile_part_index;
920 TNsot = num_tile_parts;
921 }
922
923 bool write(outfile_base *file, ui32 payload_len);
924 bool write(outfile_base *file, ui32 payload_len, ui8 TPsot, ui8 TNsot);
925 bool read(infile_base *file, bool resilient);
926
927 ui16 get_tile_index() const { return Isot; }
928 ui32 get_payload_length() const { return Psot > 0 ? Psot - 12 : 0; }
929 ui8 get_tile_part_index() const { return TPsot; }
930 ui8 get_num_tile_parts() const { return TNsot; }
931
932 private:
933 ui16 Lsot;
934 ui16 Isot;
935 ui32 Psot;
936 ui8 TPsot;
937 ui8 TNsot;
938 };
939
941 //
942 //
943 //
944 //
945 //
947 struct param_tlm
948 {
949 struct Ttlm_Ptlm_pair
950 {
951 ui16 Ttlm;
952 ui32 Ptlm;
953 };
954
955 public:
956 param_tlm() { pairs = NULL; num_pairs = 0; next_pair_index = 0; };
957 void init(ui32 num_pairs, Ttlm_Ptlm_pair* store);
958
959 void set_next_pair(ui16 Ttlm, ui32 Ptlm);
960 bool write(outfile_base *file);
961
962 private:
963 ui16 Ltlm;
964 ui8 Ztlm;
965 ui8 Stlm;
966 Ttlm_Ptlm_pair* pairs;
967 ui32 num_pairs;
968 ui32 next_pair_index;
969 };
970
972 //
973 //
974 //
975 //
976 //
978 struct param_dfs
979 {
980 public:
981 enum dfs_dwt_type : ui8 {
982 NO_DWT = 0, // no wavelet transform
983 BIDIR_DWT = 1, // bidirectional DWT (this the conventional DWT)
984 HORZ_DWT = 2, // horizontal only DWT transform
985 VERT_DWT = 3, // vertical only DWT transform
986 };
987
988 public: // member functions
989 param_dfs() { avail = NULL; init(); }
990 ~param_dfs() { destroy(); }
991
993 void restart()
994 {
995 param_dfs** p = &avail; // move next to the end of avail
996 while (*p != NULL)
997 p = &((*p)->next);
998 *p = next;
999 this->init();
1000 }
1001
1002 bool read(infile_base *file);
1003 bool exists() const { return Ldfs != 0; }
1004
1005 // get_dfs return a dfs structure Sdfs == index, or NULL if not found
1006 const param_dfs* get_dfs(int index) const;
1007 // decomp_level is the decomposition level, starting from 1 for highest
1008 // resolution to num_decomps for the coarsest resolution
1009 dfs_dwt_type get_dwt_type(ui32 decomp_level) const;
1010 ui32 get_subband_idx(ui32 num_decompositions, ui32 resolution,
1011 ui32 subband) const;
1012 point get_res_downsamp(ui32 skipped_resolutions) const;
1013
1014 private:
1016 void init()
1017 { Ldfs = Sdfs = Ids = 0; memset(Ddfs, 0, sizeof(Ddfs)); next = NULL; }
1018
1020 void destroy()
1021 {
1022 if (avail)
1023 delete avail;
1024 if (next) {
1025 delete next;
1026 next = NULL;
1027 }
1028 }
1029
1030 private: // member variables
1031 ui16 Ldfs; // length of the segment marker
1032 ui16 Sdfs; // index of this DFS marker segment
1033 ui8 Ids; // number of elements in Ddfs, 2 bits per sub-level
1034 ui8 Ddfs[8]; // a string defining number of decomposition sub-levels
1035 // 8 bytes should be enough for 32 levels
1036 param_dfs* next; // used for linking other dfs segments
1037
1038 private: // on restart, already allocated param_dfs objs are stored here
1039 param_dfs* avail;
1040 };
1041
1043 //
1044 //
1045 //
1046 //
1047 //
1049 // data structures used by param_atk
1050
1051 union lifting_step {
1052 struct irv_data {
1053 // si8 Oatk; // only for arbitrary filter
1054 // ui8 LCatk; // number of lifting coefficients in a step
1055 float Aatk; // lifting coefficient
1056 };
1057
1058 struct rev_data {
1059 // si8 Oatk; // only for arbitrary filter, offset of filter
1060 ui8 Eatk; // only for reversible, epsilon, the power of 2
1061 si16 Batk; // only for reversible, beta, the additive residue
1062 // ui8 LCatk; // number of lifting coefficients in a step
1063 si16 Aatk; // lifting coefficient
1064 };
1065
1066 irv_data irv;
1067 rev_data rev;
1068 };
1069
1070 struct param_atk
1071 {
1072 // Limitations:
1073 // Arbitrary filters (ARB) are not supported
1074 // Only one coefficient per step -- first order filter
1075 // Only even-indexed subsequence in first reconstruction step,
1076 // m_init = 0 is supported
1077 public: // member functions
1078 param_atk()
1079 {
1080 d = d_store;
1081 max_steps = sizeof(d_store) / sizeof(lifting_step);
1082 init(NULL);
1083 }
1084 ~param_atk()
1085 {
1086 if (avail) {
1087 delete avail;
1088 avail = NULL;
1089 }
1090 if (next) {
1091 delete next;
1092 next = NULL;
1093 }
1094 if (d != NULL && d != d_store) {
1095 delete[] d;
1096 d = d_store;
1097 max_steps = sizeof(d_store) / sizeof(lifting_step);
1098 }
1099 }
1100
1102 void restart()
1103 {
1104 assert(top_atk == NULL);
1105
1106 Latk = Satk = 0;
1107 Katk = 0.0f;
1108 Natk = 0;
1109 if (d == NULL || d == d_store) {
1110 d = d_store;
1111 max_steps = sizeof(d_store) / sizeof(lifting_step);
1112 }
1113 memset(d, 0, max_steps * sizeof(lifting_step));
1114
1115 param_atk** p = &avail; // move next to the end of avail
1116 while (*p != NULL)
1117 p = &((*p)->next);
1118 *p = next;
1119
1120 next = NULL;
1121 }
1122
1123 bool read(infile_base *file);
1124
1125 ui8 get_index() const { return (ui8)(Satk & 0xFF); }
1126 int get_coeff_type() const { return (Satk >> 8) & 0x7; }
1127 bool is_whole_sample() const { return (Satk & 0x800) != 0; }
1128 bool is_reversible() const { return (Satk & 0x1000) != 0; }
1129 bool is_m_init0() const { return (Satk & 0x2000) == 0; }
1130 bool is_using_ws_extension() const { return (Satk & 0x4000) != 0; }
1131 param_atk* get_atk(int index);
1132 const lifting_step* get_step(ui32 s) const
1133 { assert(s < Natk); return d + s; }
1134 ui32 get_num_steps() const { return Natk; }
1135 float get_K() const { return Katk; }
1136
1137 private:
1139 void init(param_atk* top_atk)
1140 {
1141 Latk = Satk = 0;
1142 Katk = 0.0f;
1143 Natk = 0;
1144 if (d == NULL || d == d_store) {
1145 d = d_store;
1146 max_steps = sizeof(d_store) / sizeof(lifting_step);
1147 }
1148 memset(d, 0, max_steps * sizeof(lifting_step));
1149 next = NULL;
1150 this->top_atk = top_atk;
1151 avail = NULL;
1152 }
1153 private:
1154 bool read_coefficient(infile_base *file, float &K, si32& bytes);
1155 bool read_coefficient(infile_base *file, si16 &K, si32& bytes);
1156
1157 void init_irv97();
1158 void init_rev53();
1159 param_atk* add_object();
1160
1161 private: // member variables
1162 ui16 Latk; // structure length
1163 ui16 Satk; // carries a variety of information
1164 float Katk; // only for irreversible scaling factor K
1165 ui8 Natk; // number of lifting steps
1166 lifting_step* d; // pointer to data, initialized to d_store
1167 ui32 max_steps; // maximum number of steps without memory allocation
1168 lifting_step d_store[6]; // lifting step coefficient
1169 param_atk* next; // used for chaining if more than one atk segment
1170 // exist in the codestream
1171 param_atk* top_atk;// This is the top level atk, from which all atk
1172 // objects are derived
1173
1174 private: // on restart, already allocated param_atk objs are stored here
1175 param_atk* avail;
1176 };
1177 } // !local namespace
1178} // !ojph namespace
1179
1180#endif // !OJPH_PARAMS_LOCAL_H
ojph::infile_base
Definition ojph_file.h:247
ojph::local::resolution
Definition ojph_resolution.h:62
ojph::local::subband
Definition ojph_subband.h:63
ojph::outfile_base
Definition ojph_file.h:75
ojph::param_nlt::nonlinearity
nonlinearity
Definition ojph_params.h:248
ojph::param_nlt::special_comp_num
special_comp_num
Definition ojph_params.h:247
ojph::local::JP2K_MARKER
JP2K_MARKER
Definition ojph_params_local.h:120
ojph::local::SOD
@ SOD
Definition ojph_params_local.h:146
ojph::local::SIZ
@ SIZ
Definition ojph_params_local.h:123
ojph::local::ATK
@ ATK
Definition ojph_params_local.h:142
ojph::local::PRF
@ PRF
Definition ojph_params_local.h:127
ojph::local::NLT
@ NLT
Definition ojph_params_local.h:141
ojph::local::TLM
@ TLM
Definition ojph_params_local.h:126
ojph::local::PPM
@ PPM
Definition ojph_params_local.h:135
ojph::local::SOP
@ SOP
Definition ojph_params_local.h:144
ojph::local::QCC
@ QCC
Definition ojph_params_local.h:132
ojph::local::CRG
@ CRG
Definition ojph_params_local.h:137
ojph::local::ADS
@ ADS
Definition ojph_params_local.h:140
ojph::local::DFS
@ DFS
Definition ojph_params_local.h:139
ojph::local::RGN
@ RGN
Definition ojph_params_local.h:133
ojph::local::SOC
@ SOC
Definition ojph_params_local.h:121
ojph::local::QCD
@ QCD
Definition ojph_params_local.h:131
ojph::local::EPH
@ EPH
Definition ojph_params_local.h:145
ojph::local::PPT
@ PPT
Definition ojph_params_local.h:136
ojph::local::COC
@ COC
Definition ojph_params_local.h:125
ojph::local::POC
@ POC
Definition ojph_params_local.h:134
ojph::local::PLT
@ PLT
Definition ojph_params_local.h:129
ojph::local::COD
@ COD
Definition ojph_params_local.h:124
ojph::local::CAP
@ CAP
Definition ojph_params_local.h:122
ojph::local::CPF
@ CPF
Definition ojph_params_local.h:130
ojph::local::PLM
@ PLM
Definition ojph_params_local.h:128
ojph::local::SOT
@ SOT
Definition ojph_params_local.h:143
ojph::local::COM
@ COM
Definition ojph_params_local.h:138
ojph::local::EOC
@ EOC
Definition ojph_params_local.h:147
ojph
Definition ojph_img_io.h:52
ojph::OJPH_PN_STRING_BROADCAST
const char OJPH_PN_STRING_BROADCAST[]
Definition ojph_params_local.h:94
ojph::OJPH_PN_STRING_CINEMAS4K
const char OJPH_PN_STRING_CINEMAS4K[]
Definition ojph_params_local.h:93
ojph::OJPH_PO_STRING_PCRL
const char OJPH_PO_STRING_PCRL[]
Definition ojph_params_local.h:70
ojph::PROGRESSION_ORDER
PROGRESSION_ORDER
Definition ojph_params_local.h:58
ojph::OJPH_PO_LRCP
@ OJPH_PO_LRCP
Definition ojph_params_local.h:59
ojph::OJPH_PO_RLCP
@ OJPH_PO_RLCP
Definition ojph_params_local.h:60
ojph::OJPH_PO_CPRL
@ OJPH_PO_CPRL
Definition ojph_params_local.h:63
ojph::OJPH_PO_PCRL
@ OJPH_PO_PCRL
Definition ojph_params_local.h:62
ojph::OJPH_PO_RPCL
@ OJPH_PO_RPCL
Definition ojph_params_local.h:61
ojph::OJPH_PN_STRING_IMF
const char OJPH_PN_STRING_IMF[]
Definition ojph_params_local.h:95
ojph::OJPH_PN_STRING_CINEMA4K
const char OJPH_PN_STRING_CINEMA4K[]
Definition ojph_params_local.h:91
ojph::ui16
uint16_t ui16
Definition ojph_defs.h:52
ojph::OJPH_PO_STRING_RLCP
const char OJPH_PO_STRING_RLCP[]
Definition ojph_params_local.h:68
ojph::OJPH_PN_STRING_CINEMA2K
const char OJPH_PN_STRING_CINEMA2K[]
Definition ojph_params_local.h:90
ojph::OJPH_PO_STRING_RPCL
const char OJPH_PO_STRING_RPCL[]
Definition ojph_params_local.h:69
ojph::OJPH_TILEPART_DIVISIONS
OJPH_TILEPART_DIVISIONS
Definition ojph_params_local.h:98
ojph::OJPH_TILEPART_RESOLUTIONS
@ OJPH_TILEPART_RESOLUTIONS
Definition ojph_params_local.h:100
ojph::OJPH_TILEPART_NO_DIVISIONS
@ OJPH_TILEPART_NO_DIVISIONS
Definition ojph_params_local.h:99
ojph::OJPH_TILEPART_LAYERS
@ OJPH_TILEPART_LAYERS
Definition ojph_params_local.h:102
ojph::OJPH_TILEPART_COMPONENTS
@ OJPH_TILEPART_COMPONENTS
Definition ojph_params_local.h:101
ojph::OJPH_TILEPART_MASK
@ OJPH_TILEPART_MASK
Definition ojph_params_local.h:103
ojph::OJPH_PO_STRING_CPRL
const char OJPH_PO_STRING_CPRL[]
Definition ojph_params_local.h:71
ojph::OJPH_PROFILE_NUM
OJPH_PROFILE_NUM
Definition ojph_params_local.h:75
ojph::OJPH_PN_PROFILE1
@ OJPH_PN_PROFILE1
Definition ojph_params_local.h:78
ojph::OJPH_PN_BROADCAST
@ OJPH_PN_BROADCAST
Definition ojph_params_local.h:83
ojph::OJPH_PN_CINEMA4K
@ OJPH_PN_CINEMA4K
Definition ojph_params_local.h:80
ojph::OJPH_PN_CINEMA2K
@ OJPH_PN_CINEMA2K
Definition ojph_params_local.h:79
ojph::OJPH_PN_CINEMAS4K
@ OJPH_PN_CINEMAS4K
Definition ojph_params_local.h:82
ojph::OJPH_PN_UNDEFINED
@ OJPH_PN_UNDEFINED
Definition ojph_params_local.h:76
ojph::OJPH_PN_IMF
@ OJPH_PN_IMF
Definition ojph_params_local.h:84
ojph::OJPH_PN_CINEMAS2K
@ OJPH_PN_CINEMAS2K
Definition ojph_params_local.h:81
ojph::OJPH_PN_PROFILE0
@ OJPH_PN_PROFILE0
Definition ojph_params_local.h:77
ojph::si32
int32_t si32
Definition ojph_defs.h:55
ojph::OJPH_PN_STRING_PROFILE0
const char OJPH_PN_STRING_PROFILE0[]
Definition ojph_params_local.h:88
ojph::si16
int16_t si16
Definition ojph_defs.h:53
ojph::OJPH_PN_STRING_CINEMAS2K
const char OJPH_PN_STRING_CINEMAS2K[]
Definition ojph_params_local.h:92
ojph::ui32
uint32_t ui32
Definition ojph_defs.h:54
ojph::ui8
uint8_t ui8
Definition ojph_defs.h:50
ojph::OJPH_PO_STRING_LRCP
const char OJPH_PO_STRING_LRCP[]
Definition ojph_params_local.h:67
ojph::OJPH_PN_STRING_PROFILE1
const char OJPH_PN_STRING_PROFILE1[]
Definition ojph_params_local.h:89
ojph_arch.h
ojph_base.h
ojph_defs.h
ojph_div_ceil
#define ojph_div_ceil(a, b)
Definition ojph_defs.h:70
ojph_message.h
OJPH_ERROR
#define OJPH_ERROR(t,...)
Definition ojph_message.h:288
ojph::local::cod_SGcod
Definition ojph_params_local.h:362
ojph::local::cod_SGcod::num_layers
ui16 num_layers
Definition ojph_params_local.h:365
ojph::local::cod_SGcod::mc_trans
ui8 mc_trans
Definition ojph_params_local.h:366
ojph::local::cod_SGcod::cod_SGcod
cod_SGcod()
Definition ojph_params_local.h:363
ojph::local::cod_SGcod::prog_order
ui8 prog_order
Definition ojph_params_local.h:364
ojph::local::cod_SPcod
Definition ojph_params_local.h:331
ojph::local::cod_SPcod::block_width
ui8 block_width
Definition ojph_params_local.h:342
ojph::local::cod_SPcod::cod_SPcod
cod_SPcod()
Definition ojph_params_local.h:332
ojph::local::cod_SPcod::get_log_precinct_size
size get_log_precinct_size(ui32 res_num) const
Definition ojph_params_local.h:352
ojph::local::cod_SPcod::get_block_dims
size get_block_dims() const
Definition ojph_params_local.h:350
ojph::local::cod_SPcod::block_style
ui8 block_style
Definition ojph_params_local.h:344
ojph::local::cod_SPcod::precinct_size
ui8 precinct_size[33]
Definition ojph_params_local.h:346
ojph::local::cod_SPcod::get_log_block_dims
size get_log_block_dims() const
Definition ojph_params_local.h:348
ojph::local::cod_SPcod::num_decomp
ui8 num_decomp
Definition ojph_params_local.h:341
ojph::local::cod_SPcod::wavelet_trans
ui8 wavelet_trans
Definition ojph_params_local.h:345
ojph::local::cod_SPcod::block_height
ui8 block_height
Definition ojph_params_local.h:343
ojph::local::lifting_step::irv_data
Definition ojph_params_local.h:1052
ojph::local::lifting_step::irv_data::Aatk
float Aatk
Definition ojph_params_local.h:1055
ojph::local::lifting_step::rev_data
Definition ojph_params_local.h:1058
ojph::local::lifting_step::rev_data::Aatk
si16 Aatk
Definition ojph_params_local.h:1063
ojph::local::lifting_step::rev_data::Eatk
ui8 Eatk
Definition ojph_params_local.h:1060
ojph::local::lifting_step::rev_data::Batk
si16 Batk
Definition ojph_params_local.h:1061
ojph::local::param_atk
Definition ojph_params_local.h:1071
ojph::local::param_atk::Natk
ui8 Natk
Definition ojph_params_local.h:1165
ojph::local::param_atk::read_coefficient
bool read_coefficient(infile_base *file, float &K, si32 &bytes)
Definition ojph_params.cpp:2380
ojph::local::param_atk::get_K
float get_K() const
Definition ojph_params_local.h:1135
ojph::local::param_atk::Katk
float Katk
Definition ojph_params_local.h:1164
ojph::local::param_atk::d
lifting_step * d
Definition ojph_params_local.h:1166
ojph::local::param_atk::is_m_init0
bool is_m_init0() const
Definition ojph_params_local.h:1129
ojph::local::param_atk::Satk
ui16 Satk
Definition ojph_params_local.h:1163
ojph::local::param_atk::d_store
lifting_step d_store[6]
Definition ojph_params_local.h:1168
ojph::local::param_atk::top_atk
param_atk * top_atk
Definition ojph_params_local.h:1171
ojph::local::param_atk::init
void init(param_atk *top_atk)
Definition ojph_params_local.h:1139
ojph::local::param_atk::param_atk
param_atk()
Definition ojph_params_local.h:1078
ojph::local::param_atk::get_num_steps
ui32 get_num_steps() const
Definition ojph_params_local.h:1134
ojph::local::param_atk::is_reversible
bool is_reversible() const
Definition ojph_params_local.h:1128
ojph::local::param_atk::read
bool read(infile_base *file)
Definition ojph_params.cpp:2467
ojph::local::param_atk::add_object
param_atk * add_object()
Definition ojph_params.cpp:2596
ojph::local::param_atk::get_coeff_type
int get_coeff_type() const
Definition ojph_params_local.h:1126
ojph::local::param_atk::get_index
ui8 get_index() const
Definition ojph_params_local.h:1125
ojph::local::param_atk::Latk
ui16 Latk
Definition ojph_params_local.h:1162
ojph::local::param_atk::avail
param_atk * avail
Definition ojph_params_local.h:1175
ojph::local::param_atk::next
param_atk * next
Definition ojph_params_local.h:1169
ojph::local::param_atk::get_atk
param_atk * get_atk(int index)
Definition ojph_params.cpp:2347
ojph::local::param_atk::is_whole_sample
bool is_whole_sample() const
Definition ojph_params_local.h:1127
ojph::local::param_atk::get_step
const lifting_step * get_step(ui32 s) const
Definition ojph_params_local.h:1132
ojph::local::param_atk::max_steps
ui32 max_steps
Definition ojph_params_local.h:1167
ojph::local::param_atk::init_rev53
void init_rev53()
Definition ojph_params.cpp:2581
ojph::local::param_atk::restart
void restart()
Definition ojph_params_local.h:1102
ojph::local::param_atk::init_irv97
void init_irv97()
Definition ojph_params.cpp:2567
ojph::local::param_atk::~param_atk
~param_atk()
Definition ojph_params_local.h:1084
ojph::local::param_atk::is_using_ws_extension
bool is_using_ws_extension() const
Definition ojph_params_local.h:1130
ojph::local::param_cap::param_cap
param_cap()
Definition ojph_params_local.h:868
ojph::local::param_cap::check_validity
void check_validity(const param_cod &cod, const param_qcd &qcd)
Definition ojph_params_local.h:875
ojph::local::param_cap::read
void read(infile_base *file)
Definition ojph_params.cpp:811
ojph::local::param_cap::Pcap
ui32 Pcap
Definition ojph_params_local.h:898
ojph::local::param_cap::write
bool write(outfile_base *file)
Definition ojph_params.cpp:788
ojph::local::param_cap::Ccap
ui16 Ccap[32]
Definition ojph_params_local.h:899
ojph::local::param_cap::Lcap
ui16 Lcap
Definition ojph_params_local.h:897
ojph::local::param_cod
Definition ojph_params_local.h:371
ojph::local::param_cod::check_validity
void check_validity(const param_siz &siz)
Definition ojph_params_local.h:429
ojph::local::param_cod::comp_idx
ui16 comp_idx
Definition ojph_params_local.h:649
ojph::local::param_cod::cod_type
cod_type
Definition ojph_params_local.h:385
ojph::local::param_cod::COD_MAIN
@ COD_MAIN
Definition ojph_params_local.h:387
ojph::local::param_cod::COD_TILE
@ COD_TILE
Definition ojph_params_local.h:389
ojph::local::param_cod::COC_TILE
@ COC_TILE
Definition ojph_params_local.h:390
ojph::local::param_cod::COC_MAIN
@ COC_MAIN
Definition ojph_params_local.h:388
ojph::local::param_cod::UNDEFINED
@ UNDEFINED
Definition ojph_params_local.h:386
ojph::local::param_cod::write
bool write(outfile_base *file)
Definition ojph_params.cpp:854
ojph::local::param_cod::get_block_dims
size get_block_dims() const
Definition ojph_params_local.h:508
ojph::local::param_cod::get_coc
const param_cod * get_coc(ui32 comp_idx) const
Definition ojph_params.cpp:1089
ojph::local::param_cod::internal_write_coc
bool internal_write_coc(outfile_base *file, ui32 num_comps)
Definition ojph_params.cpp:911
ojph::local::param_cod::get_log_block_dims
size get_log_block_dims() const
Definition ojph_params_local.h:512
ojph::local::param_cod::get_dfs_index
ui16 get_dfs_index() const
Definition ojph_params_local.h:600
ojph::local::param_cod::write_coc
bool write_coc(outfile_base *file, ui32 num_comps)
Definition ojph_params.cpp:896
ojph::local::param_cod::set_reversible
void set_reversible(bool reversible)
Definition ojph_params_local.h:414
ojph::local::param_cod::SGCod
cod_SGcod SGCod
Definition ojph_params_local.h:642
ojph::local::param_cod::atk
const param_atk * atk
Definition ojph_params_local.h:645
ojph::local::param_cod::is_employing_color_transform
bool is_employing_color_transform() const
Definition ojph_params_local.h:523
ojph::local::param_cod::employ_color_transform
void employ_color_transform(ui8 val)
Definition ojph_params_local.h:421
ojph::local::param_cod::get_comp_idx
ui32 get_comp_idx() const
Definition ojph_params_local.h:604
ojph::local::param_cod::get_block_vertical_causality
bool get_block_vertical_causality() const
Definition ojph_params_local.h:564
ojph::local::param_cod::avail
param_cod * avail
Definition ojph_params_local.h:652
ojph::local::param_cod::SPcod
cod_SPcod SPcod
Definition ojph_params_local.h:643
ojph::local::param_cod::default_comp_num
default_comp_num
Definition ojph_params_local.h:374
ojph::local::param_cod::OJPH_COD_DEFAULT
@ OJPH_COD_DEFAULT
Definition ojph_params_local.h:376
ojph::local::param_cod::OJPH_COD_UNKNOWN
@ OJPH_COD_UNKNOWN
Definition ojph_params_local.h:375
ojph::local::param_cod::top_cod
param_cod * top_cod
Definition ojph_params_local.h:648
ojph::local::param_cod::access_atk
const param_atk * access_atk() const
Definition ojph_params_local.h:592
ojph::local::param_cod::dwt_type
dwt_type
Definition ojph_params_local.h:393
ojph::local::param_cod::DWT_REV53
@ DWT_REV53
Definition ojph_params_local.h:395
ojph::local::param_cod::DWT_IRV97
@ DWT_IRV97
Definition ojph_params_local.h:394
ojph::local::param_cod::read
void read(infile_base *file)
Definition ojph_params.cpp:957
ojph::local::param_cod::get_log_precinct_size
size get_log_precinct_size(ui32 res_num) const
Definition ojph_params_local.h:539
ojph::local::param_cod::init
void init(param_cod *top_cod, ui16 comp_idx)
Definition ojph_params_local.h:613
ojph::local::param_cod::read_coc
void read_coc(infile_base *file, ui32 num_comps, param_cod *top_cod)
Definition ojph_params.cpp:1006
ojph::local::param_cod::Lcod
ui16 Lcod
Definition ojph_params_local.h:640
ojph::local::param_cod::type
cod_type type
Definition ojph_params_local.h:639
ojph::local::param_cod::restart
void restart()
Definition ojph_params_local.h:404
ojph::local::param_cod::update_atk
void update_atk(param_atk *atk)
Definition ojph_params.cpp:1068
ojph::local::param_cod::Scod
ui8 Scod
Definition ojph_params_local.h:641
ojph::local::param_cod::is_dfs_defined
bool is_dfs_defined() const
Definition ojph_params_local.h:596
ojph::local::param_cod::packets_use_eph
bool packets_use_eph() const
Definition ojph_params_local.h:556
ojph::local::param_cod::get_num_decompositions
ui8 get_num_decompositions() const
Definition ojph_params_local.h:490
ojph::local::param_cod::packets_may_use_sop
bool packets_may_use_sop() const
Definition ojph_params_local.h:548
ojph::local::param_cod::is_reversible
bool is_reversible() const
Definition ojph_params.cpp:843
ojph::local::param_cod::~param_cod
~param_cod()
Definition ojph_params_local.h:401
ojph::local::param_cod::get_precinct_size
size get_precinct_size(ui32 res_num) const
Definition ojph_params_local.h:532
ojph::local::param_cod::param_cod
param_cod(param_cod *top_cod=NULL, ui16 comp_idx=OJPH_COD_DEFAULT)
Definition ojph_params_local.h:399
ojph::local::param_cod::get_wavelet_kern
ui8 get_wavelet_kern() const
Definition ojph_params_local.h:516
ojph::local::param_cod::destroy
void destroy()
Definition ojph_params_local.h:625
ojph::local::param_cod::add_coc_object
param_cod * add_coc_object(ui32 comp_idx)
Definition ojph_params.cpp:1112
ojph::local::param_cod::next
param_cod * next
Definition ojph_params_local.h:644
ojph::local::param_cod::BLOCK_CODING_STYLES
BLOCK_CODING_STYLES
Definition ojph_params_local.h:380
ojph::local::param_cod::VERT_CAUSAL_MODE
@ VERT_CAUSAL_MODE
Definition ojph_params_local.h:381
ojph::local::param_cod::HT_MODE
@ HT_MODE
Definition ojph_params_local.h:382
ojph::local::param_dfs
Definition ojph_params_local.h:979
ojph::local::param_dfs::read
bool read(infile_base *file)
Definition ojph_params.cpp:2292
ojph::local::param_dfs::get_dwt_type
dfs_dwt_type get_dwt_type(ui32 decomp_level) const
Definition ojph_params.cpp:2235
ojph::local::param_dfs::get_res_downsamp
point get_res_downsamp(ui32 skipped_resolutions) const
Definition ojph_params.cpp:2271
ojph::local::param_dfs::dfs_dwt_type
dfs_dwt_type
Definition ojph_params_local.h:981
ojph::local::param_dfs::HORZ_DWT
@ HORZ_DWT
Definition ojph_params_local.h:984
ojph::local::param_dfs::BIDIR_DWT
@ BIDIR_DWT
Definition ojph_params_local.h:983
ojph::local::param_dfs::VERT_DWT
@ VERT_DWT
Definition ojph_params_local.h:985
ojph::local::param_dfs::NO_DWT
@ NO_DWT
Definition ojph_params_local.h:982
ojph::local::param_dfs::param_dfs
param_dfs()
Definition ojph_params_local.h:989
ojph::local::param_dfs::next
param_dfs * next
Definition ojph_params_local.h:1036
ojph::local::param_dfs::Ddfs
ui8 Ddfs[8]
Definition ojph_params_local.h:1034
ojph::local::param_dfs::destroy
void destroy()
Definition ojph_params_local.h:1020
ojph::local::param_dfs::Sdfs
ui16 Sdfs
Definition ojph_params_local.h:1032
ojph::local::param_dfs::Ldfs
ui16 Ldfs
Definition ojph_params_local.h:1031
ojph::local::param_dfs::avail
param_dfs * avail
Definition ojph_params_local.h:1039
ojph::local::param_dfs::get_subband_idx
ui32 get_subband_idx(ui32 num_decompositions, ui32 resolution, ui32 subband) const
Definition ojph_params.cpp:2246
ojph::local::param_dfs::init
void init()
Definition ojph_params_local.h:1016
ojph::local::param_dfs::restart
void restart()
Definition ojph_params_local.h:993
ojph::local::param_dfs::Ids
ui8 Ids
Definition ojph_params_local.h:1033
ojph::local::param_dfs::~param_dfs
~param_dfs()
Definition ojph_params_local.h:990
ojph::local::param_dfs::get_dfs
const param_dfs * get_dfs(int index) const
Definition ojph_params.cpp:2226
ojph::local::param_dfs::exists
bool exists() const
Definition ojph_params_local.h:1003
ojph::local::param_nlt
Definition ojph_params_local.h:788
ojph::local::param_nlt::param_nlt
param_nlt()
Definition ojph_params_local.h:792
ojph::local::param_nlt::BDnlt
ui8 BDnlt
Definition ojph_params_local.h:844
ojph::local::param_nlt::destroy
void destroy()
Definition ojph_params_local.h:824
ojph::local::param_nlt::special_comp_num
ojph::param_nlt::special_comp_num special_comp_num
Definition ojph_params_local.h:789
ojph::local::param_nlt::write
bool write(outfile_base *file) const
Definition ojph_params.cpp:1918
ojph::local::param_nlt::add_object
param_nlt * add_object(ui32 comp_num)
Definition ojph_params.cpp:1986
ojph::local::param_nlt::avail
param_nlt * avail
Definition ojph_params_local.h:855
ojph::local::param_nlt::Tnlt
ui8 Tnlt
Definition ojph_params_local.h:845
ojph::local::param_nlt::trim_non_existing_components
void trim_non_existing_components(ui32 num_comps)
Definition ojph_params.cpp:2019
ojph::local::param_nlt::Lnlt
ui16 Lnlt
Definition ojph_params_local.h:842
ojph::local::param_nlt::read
void read(infile_base *file)
Definition ojph_params.cpp:1946
ojph::local::param_nlt::nonlinearity
ojph::param_nlt::nonlinearity nonlinearity
Definition ojph_params_local.h:790
ojph::local::param_nlt::next
param_nlt * next
Definition ojph_params_local.h:847
ojph::local::param_nlt::init
void init()
Definition ojph_params_local.h:814
ojph::local::param_nlt::~param_nlt
~param_nlt()
Definition ojph_params_local.h:793
ojph::local::param_nlt::get_nonlinear_transform
bool get_nonlinear_transform(ui32 comp_num, ui8 &bit_depth, bool &is_signed, ui8 &nl_type) const
Definition ojph_params.cpp:1900
ojph::local::param_nlt::Cnlt
ui16 Cnlt
Definition ojph_params_local.h:843
ojph::local::param_nlt::get_nlt_object
const param_nlt * get_nlt_object(ui32 comp_num) const
Definition ojph_params.cpp:1977
ojph::local::param_nlt::restart
void restart()
Definition ojph_params_local.h:796
ojph::local::param_nlt::check_validity
void check_validity(param_siz &siz)
Definition ojph_params.cpp:1795
ojph::local::param_nlt::enabled
bool enabled
Definition ojph_params_local.h:846
ojph::local::param_nlt::is_any_enabled
bool is_any_enabled() const
Definition ojph_params.cpp:2009
ojph::local::param_nlt::set_nonlinear_transform
void set_nonlinear_transform(ui32 comp_num, ui8 nl_type)
Definition ojph_params.cpp:1884
ojph::local::param_qcd
Definition ojph_params_local.h:663
ojph::local::param_qcd::encode_SPqcd
ui8 encode_SPqcd(ui8 v) const
Definition ojph_params_local.h:753
ojph::local::param_qcd::u16
ui16 u16[97]
Definition ojph_params_local.h:763
ojph::local::param_qcd::write_qcc
bool write_qcc(outfile_base *file, ui32 num_comps)
Definition ojph_params.cpp:1570
ojph::local::param_qcd::~param_qcd
~param_qcd()
Definition ojph_params_local.h:683
ojph::local::param_qcd::u8
ui8 u8[97]
Definition ojph_params_local.h:762
ojph::local::param_qcd::set_rev_quant
void set_rev_quant(ui32 num_decomps, ui32 bit_depth, bool is_employing_color_transform)
Definition ojph_params.cpp:1279
ojph::local::param_qcd::restart
void restart()
Definition ojph_params_local.h:686
ojph::local::param_qcd::set_irrev_quant
void set_irrev_quant(ui32 num_decomps)
Definition ojph_params.cpp:1326
ojph::local::param_qcd::get_largest_Kmax
ui32 get_largest_Kmax() const
Definition ojph_params.cpp:1500
ojph::local::param_qcd::get_comp_idx
ui16 get_comp_idx() const
Definition ojph_params_local.h:714
ojph::local::param_qcd::get_num_guard_bits
ui32 get_num_guard_bits() const
Definition ojph_params.cpp:1458
ojph::local::param_qcd::get_irrev_delta
float get_irrev_delta(const param_dfs *dfs, ui32 num_decompositions, ui32 resolution, ui32 subband) const
Definition ojph_params.cpp:1403
ojph::local::param_qcd::enabled
bool enabled
Definition ojph_params_local.h:768
ojph::local::param_qcd::set_delta
void set_delta(float delta)
Definition ojph_params_local.h:696
ojph::local::param_qcd::read_qcc
void read_qcc(infile_base *file, ui32 num_comps)
Definition ojph_params.cpp:1691
ojph::local::param_qcd::check_validity
void check_validity(const param_siz &siz, const param_cod &cod)
Definition ojph_params.cpp:1138
ojph::local::param_qcd::write
bool write(outfile_base *file)
Definition ojph_params.cpp:1527
ojph::local::param_qcd::propose_precision
ui32 propose_precision(const param_cod *cod) const
Definition ojph_params.cpp:1433
ojph::local::param_qcd::read
void read(infile_base *file)
Definition ojph_params.cpp:1650
ojph::local::param_qcd::init
void init(param_qcd *top_qcd, ui16 comp_idx)
Definition ojph_params_local.h:718
ojph::local::param_qcd::base_delta
float base_delta
Definition ojph_params_local.h:766
ojph::local::param_qcd::add_qcc_object
param_qcd * add_qcc_object(ui32 comp_idx)
Definition ojph_params.cpp:1769
ojph::local::param_qcd::destroy
void destroy()
Definition ojph_params_local.h:733
ojph::local::param_qcd::type
qcd_type type
Definition ojph_params_local.h:757
ojph::local::param_qcd::top_qcd
param_qcd * top_qcd
Definition ojph_params_local.h:770
ojph::local::param_qcd::num_subbands
ui32 num_subbands
Definition ojph_params_local.h:765
ojph::local::param_qcd::qcd_type
qcd_type
Definition ojph_params_local.h:672
ojph::local::param_qcd::QCD_TILE
@ QCD_TILE
Definition ojph_params_local.h:676
ojph::local::param_qcd::QCD_MAIN
@ QCD_MAIN
Definition ojph_params_local.h:674
ojph::local::param_qcd::QCC_MAIN
@ QCC_MAIN
Definition ojph_params_local.h:675
ojph::local::param_qcd::UNDEFINED
@ UNDEFINED
Definition ojph_params_local.h:673
ojph::local::param_qcd::QCC_TILE
@ QCC_TILE
Definition ojph_params_local.h:677
ojph::local::param_qcd::get_MAGB
ui32 get_MAGB() const
Definition ojph_params.cpp:1368
ojph::local::param_qcd::avail
param_qcd * avail
Definition ojph_params_local.h:776
ojph::local::param_qcd::get_Kmax
ui32 get_Kmax(const param_dfs *dfs, ui32 num_decompositions, ui32 resolution, ui32 subband) const
Definition ojph_params.cpp:1464
ojph::local::param_qcd::Lqcd
ui16 Lqcd
Definition ojph_params_local.h:758
ojph::local::param_qcd::comp_idx
ui16 comp_idx
Definition ojph_params_local.h:773
ojph::local::param_qcd::decode_SPqcd
ui8 decode_SPqcd(ui8 v) const
Definition ojph_params_local.h:751
ojph::local::param_qcd::get_qcc
param_qcd * get_qcc(ui32 comp_idx)
Definition ojph_params.cpp:1746
ojph::local::param_qcd::param_qcd
param_qcd(param_qcd *top_qcd=NULL, ui16 comp_idx=OJPH_QCD_DEFAULT)
Definition ojph_params_local.h:681
ojph::local::param_qcd::next
param_qcd * next
Definition ojph_params_local.h:769
ojph::local::param_qcd::default_comp_num
default_comp_num
Definition ojph_params_local.h:666
ojph::local::param_qcd::OJPH_QCD_DEFAULT
@ OJPH_QCD_DEFAULT
Definition ojph_params_local.h:668
ojph::local::param_qcd::OJPH_QCD_UNKNOWN
@ OJPH_QCD_UNKNOWN
Definition ojph_params_local.h:667
ojph::local::param_qcd::trim_non_existing_components
void trim_non_existing_components(ui32 num_comps)
Definition ojph_params.cpp:1637
ojph::local::param_qcd::internal_write_qcc
bool internal_write_qcc(outfile_base *file, ui32 num_comps)
Definition ojph_params.cpp:1585
ojph::local::param_qcd::SPqcd
union ojph::local::param_qcd::@140013103227173134364232343330020031205064137337 SPqcd
ojph::local::param_qcd::Sqcd
ui8 Sqcd
Definition ojph_params_local.h:759
ojph::local::param_siz
Definition ojph_params_local.h:166
ojph::local::param_siz::skipped_resolutions
ui32 skipped_resolutions
Definition ojph_params_local.h:312
ojph::local::param_siz::cptr
siz_comp_info * cptr
Definition ojph_params_local.h:309
ojph::local::param_siz::YOsiz
ui32 YOsiz
Definition ojph_params_local.h:303
ojph::local::param_siz::YTsiz
ui32 YTsiz
Definition ojph_params_local.h:305
ojph::local::param_siz::store
siz_comp_info store[4]
Definition ojph_params_local.h:314
ojph::local::param_siz::set_skipped_resolutions
void set_skipped_resolutions(ui32 skipped_resolutions)
Definition ojph_params_local.h:263
ojph::local::param_siz::old_Csiz
int old_Csiz
Definition ojph_params_local.h:313
ojph::local::param_siz::get_bit_depth
ui32 get_bit_depth(ui32 comp_num) const
Definition ojph_params_local.h:238
ojph::local::param_siz::ws_kern_support_needed
bool ws_kern_support_needed
Definition ojph_params_local.h:315
ojph::local::param_siz::param_siz
param_siz()
Definition ojph_params_local.h:177
ojph::local::param_siz::get_recon_height
ui32 get_recon_height(ui32 comp_num) const
Definition ojph_params_local.h:286
ojph::local::param_siz::is_signed
bool is_signed(ui32 comp_num) const
Definition ojph_params_local.h:243
ojph::local::param_siz::check_validity
void check_validity(const param_cod &cod)
Definition ojph_params_local.h:220
ojph::local::param_siz::XTOsiz
ui32 XTOsiz
Definition ojph_params_local.h:306
ojph::local::param_siz::write
bool write(outfile_base *file)
Definition ojph_params.cpp:639
ojph::local::param_siz::param_siz
param_siz(const param_siz &)=delete
ojph::local::param_siz::get_num_components
ui16 get_num_components() const
Definition ojph_params_local.h:237
ojph::local::param_siz::cod
const param_cod * cod
Definition ojph_params_local.h:317
ojph::local::param_siz::get_recon_downsampling
point get_recon_downsampling(ui32 comp_num) const
Definition ojph_params.cpp:751
ojph::local::param_siz::set_Rsiz_flag
void set_Rsiz_flag(ui16 flag)
Definition ojph_params_local.h:292
ojph::local::param_siz::init
void init()
Definition ojph_params_local.h:180
ojph::local::param_siz::XOsiz
ui32 XOsiz
Definition ojph_params_local.h:302
ojph::local::param_siz::Csiz
ui16 Csiz
Definition ojph_params_local.h:308
ojph::local::param_siz::get_recon_size
point get_recon_size(ui32 comp_num) const
Definition ojph_params.cpp:767
ojph::local::param_siz::Xsiz
ui32 Xsiz
Definition ojph_params_local.h:300
ojph::local::param_siz::RSIZ_HT_FLAG
@ RSIZ_HT_FLAG
Definition ojph_params_local.h:172
ojph::local::param_siz::RSIZ_NLT_FLAG
@ RSIZ_NLT_FLAG
Definition ojph_params_local.h:171
ojph::local::param_siz::RSIZ_EXT_FLAG
@ RSIZ_EXT_FLAG
Definition ojph_params_local.h:173
ojph::local::param_siz::dfs
const param_dfs * dfs
Definition ojph_params_local.h:318
ojph::local::param_siz::is_dfs_support_needed
bool is_dfs_support_needed()
Definition ojph_params_local.h:290
ojph::local::param_siz::get_height
ui32 get_height(ui32 comp_num) const
Definition ojph_params_local.h:274
ojph::local::param_siz::set_comp_info
void set_comp_info(ui32 comp_num, const point &downsampling, ui32 bit_depth, bool is_signed)
Definition ojph_params_local.h:210
ojph::local::param_siz::is_ws_kern_support_needed
bool is_ws_kern_support_needed()
Definition ojph_params_local.h:289
ojph::local::param_siz::dfs_support_needed
bool dfs_support_needed
Definition ojph_params_local.h:316
ojph::local::param_siz::YTOsiz
ui32 YTOsiz
Definition ojph_params_local.h:307
ojph::local::param_siz::link
void link(const param_cod *cod)
Definition ojph_params_local.h:257
ojph::local::param_siz::destroy
void destroy()
Definition ojph_params_local.h:194
ojph::local::param_siz::Rsiz
ui16 Rsiz
Definition ojph_params_local.h:299
ojph::local::param_siz::Lsiz
ui16 Lsiz
Definition ojph_params_local.h:298
ojph::local::param_siz::XTsiz
ui32 XTsiz
Definition ojph_params_local.h:304
ojph::local::param_siz::get_downsampling
point get_downsampling(ui32 comp_num) const
Definition ojph_params_local.h:248
ojph::local::param_siz::reset_Rsiz_flag
void reset_Rsiz_flag(ui16 flag)
Definition ojph_params_local.h:294
ojph::local::param_siz::read
void read(infile_base *file)
Definition ojph_params.cpp:684
ojph::local::param_siz::operator=
param_siz & operator=(const param_siz &)=delete
ojph::local::param_siz::link
void link(const param_dfs *dfs)
Definition ojph_params_local.h:260
ojph::local::param_siz::Ysiz
ui32 Ysiz
Definition ojph_params_local.h:301
ojph::local::param_siz::set_num_components
void set_num_components(ui32 num_comps)
Definition ojph_params_local.h:197
ojph::local::param_siz::get_width
ui32 get_width(ui32 comp_num) const
Definition ojph_params_local.h:266
ojph::local::param_siz::get_recon_width
ui32 get_recon_width(ui32 comp_num) const
Definition ojph_params_local.h:284
ojph::local::param_siz::~param_siz
~param_siz()
Definition ojph_params_local.h:178
ojph::local::param_sot
Definition ojph_params_local.h:911
ojph::local::param_sot::TPsot
ui8 TPsot
Definition ojph_params_local.h:936
ojph::local::param_sot::get_num_tile_parts
ui8 get_num_tile_parts() const
Definition ojph_params_local.h:930
ojph::local::param_sot::init
void init(ui32 payload_length=0, ui16 tile_idx=0, ui8 tile_part_index=0, ui8 num_tile_parts=0)
Definition ojph_params_local.h:913
ojph::local::param_sot::get_tile_index
ui16 get_tile_index() const
Definition ojph_params_local.h:927
ojph::local::param_sot::read
bool read(infile_base *file, bool resilient)
Definition ojph_params.cpp:2087
ojph::local::param_sot::TNsot
ui8 TNsot
Definition ojph_params_local.h:937
ojph::local::param_sot::Lsot
ui16 Lsot
Definition ojph_params_local.h:933
ojph::local::param_sot::get_tile_part_index
ui8 get_tile_part_index() const
Definition ojph_params_local.h:929
ojph::local::param_sot::get_payload_length
ui32 get_payload_length() const
Definition ojph_params_local.h:928
ojph::local::param_sot::write
bool write(outfile_base *file, ui32 payload_len)
Definition ojph_params.cpp:2042
ojph::local::param_sot::Isot
ui16 Isot
Definition ojph_params_local.h:934
ojph::local::param_sot::Psot
ui32 Psot
Definition ojph_params_local.h:935
ojph::local::param_tlm::Ttlm_Ptlm_pair
Definition ojph_params_local.h:950
ojph::local::param_tlm::Ttlm_Ptlm_pair::Ptlm
ui32 Ptlm
Definition ojph_params_local.h:952
ojph::local::param_tlm::Ttlm_Ptlm_pair::Ttlm
ui16 Ttlm
Definition ojph_params_local.h:951
ojph::local::param_tlm::next_pair_index
ui32 next_pair_index
Definition ojph_params_local.h:968
ojph::local::param_tlm::Ltlm
ui16 Ltlm
Definition ojph_params_local.h:963
ojph::local::param_tlm::set_next_pair
void set_next_pair(ui16 Ttlm, ui32 Ptlm)
Definition ojph_params.cpp:2185
ojph::local::param_tlm::write
bool write(outfile_base *file)
Definition ojph_params.cpp:2194
ojph::local::param_tlm::param_tlm
param_tlm()
Definition ojph_params_local.h:956
ojph::local::param_tlm::Ztlm
ui8 Ztlm
Definition ojph_params_local.h:964
ojph::local::param_tlm::pairs
Ttlm_Ptlm_pair * pairs
Definition ojph_params_local.h:966
ojph::local::param_tlm::Stlm
ui8 Stlm
Definition ojph_params_local.h:965
ojph::local::param_tlm::num_pairs
ui32 num_pairs
Definition ojph_params_local.h:967
ojph::local::param_tlm::init
void init(ui32 num_pairs, Ttlm_Ptlm_pair *store)
Definition ojph_params.cpp:2169
ojph::local::siz_comp_info
Definition ojph_params_local.h:158
ojph::local::siz_comp_info::XRsiz
ui8 XRsiz
Definition ojph_params_local.h:160
ojph::local::siz_comp_info::SSiz
ui8 SSiz
Definition ojph_params_local.h:159
ojph::local::siz_comp_info::YRsiz
ui8 YRsiz
Definition ojph_params_local.h:161
ojph::point
Definition ojph_base.h:58
ojph::point::y
ui32 y
Definition ojph_base.h:60
ojph::point::x
ui32 x
Definition ojph_base.h:60
ojph::size
Definition ojph_base.h:48
ojph::size::w
ui32 w
Definition ojph_base.h:50
ojph::size::h
ui32 h
Definition ojph_base.h:51
ojph::local::lifting_step
Definition ojph_params_local.h:1051
ojph::local::lifting_step::irv
irv_data irv
Definition ojph_params_local.h:1066
ojph::local::lifting_step::rev
rev_data rev
Definition ojph_params_local.h:1067