Grok  10.0.3
Resolution.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016-2022 Grok Image Compression Inc.
3  *
4  * This source code is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Affero General Public License, version 3,
6  * as published by the Free Software Foundation.
7  *
8  * This source code is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU Affero General Public License for more details.
12  *
13  * You should have received a copy of the GNU Affero General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  */
17 #pragma once
18 
19 #include "grk_includes.h"
20 
21 namespace grk
22 {
23 
24 struct Resolution : public grk_rect32
25 {
26  Resolution(void);
27  ~Resolution(void);
28  virtual void print() const override;
29  bool init(TileProcessor* tileProcessor, TileComponentCodingParams* tccp, uint8_t resno);
30  ResSimple genResSimple(void);
31 
33  Subband tileBand[BAND_NUM_INDICES]; // unreduced tile component bands in canvas coordinates
34  uint8_t numTileBandWindows; // 1 or 3
35  uint32_t precinctGridWidth, precinctGridHeight; /* dimensions of precinct grid */
41 };
42 
43 } // namespace grk
Copyright (C) 2016-2022 Grok Image Compression Inc.
Definition: ICacheable.h:20
@ BAND_NUM_INDICES
Definition: ResSimple.h:39
Plugin tile.
Definition: grok.h:739
Definition: PacketParser.h:78
Definition: ResSimple.h:43
Definition: Resolution.h:25
bool initialized
Definition: Resolution.h:32
uint32_t precinctGridWidth
Definition: Resolution.h:35
bool init(TileProcessor *tileProcessor, TileComponentCodingParams *tccp, uint8_t resno)
Definition: Resolution.cpp:40
Resolution(void)
Definition: Resolution.cpp:23
~Resolution(void)
Definition: Resolution.cpp:27
Subband tileBand[BAND_NUM_INDICES]
Definition: Resolution.h:33
grk_pt32 precinctPartitionTopLeft
Definition: Resolution.h:37
virtual void print() const override
Definition: Resolution.cpp:31
uint32_t precinctGridHeight
Definition: Resolution.h:35
uint8_t numTileBandWindows
Definition: Resolution.h:34
grk_plugin_tile * current_plugin_tile
Definition: Resolution.h:39
ParserMap * parserMap_
Definition: Resolution.h:40
ResSimple genResSimple(void)
Definition: Resolution.cpp:87
grk_pt32 cblkExpn
Definition: Resolution.h:36
grk_pt32 precinctExpn
Definition: Resolution.h:38
Definition: Subband.h:26
Tile-component coding parameters.
Definition: CodingParams.h:53
Definition: TileProcessor.h:78