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