Grok 12.0.1
TileComponent.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2016-2024 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 * This source code incorporates work covered by the BSD 2-clause license.
18 * Please see the LICENSE file in the root directory for details.
19 *
20 */
21#pragma once
22#include <vector>
23#include "TileProcessor.h"
24
25namespace grk
26{
61
62} // namespace grk
Definition SparseCanvas.h:39
Copyright (C) 2016-2024 Grok Image Compression Inc.
Definition ICacheable.h:20
void grk_read(const uint8_t *buffer, TYPE *value, uint32_t numBytes)
Definition BufferedStream.h:239
eBandOrientation
Definition ResSimple.h:23
Definition BlockExec.h:45
Definition Resolution.h:25
Tile-component coding parameters.
Definition CodingParams.h:53
Definition TileComponent.h:28
ISparseCanvas * regionWindow_
Definition TileComponent.h:55
uint8_t numresolutions
Definition TileComponent.h:46
TileComponentWindow< int32_t > * getWindow() const
Definition TileComponent.cpp:337
uint8_t numResolutionsToDecompress
Definition TileComponent.h:47
bool allocRegionWindow(uint32_t numres, bool truncatedTile)
Definition TileComponent.cpp:191
void postProcessHT(int32_t *srcData, DecompressBlockExec *block, uint16_t stride)
Definition TileComponent.cpp:368
bool isWholeTileDecoding()
Definition TileComponent.cpp:341
bool init(TileProcessor *tileProcessor, grk_rect32 unreducedTileComp, uint8_t prec, TileComponentCodingParams *tccp)
Initialize tile component in unreduced tile component coordinates (tile component coordinates take su...
Definition TileComponent.cpp:71
~TileComponent()
Definition TileComponent.cpp:40
Resolution * resolutions_
Definition TileComponent.h:45
TileComponentWindow< int32_t > * window_
Definition TileComponent.h:58
TileComponent()
Definition TileComponent.cpp:30
bool subbandIntersectsAOI(uint8_t resno, eBandOrientation orient, const grk_rect32 *aoi) const
Definition TileComponent.cpp:186
TileComponentCodingParams * tccp_
Definition TileComponent.h:59
void dealloc(void)
Definition TileComponent.cpp:59
std::atomic< uint8_t > highestResolutionDecompressed
Definition TileComponent.h:48
bool canCreateWindow(grk_rect32 unreducedTileCompOrImageCompWindow)
Definition TileComponent.cpp:315
bool wholeTileDecompress
Definition TileComponent.h:56
ISparseCanvas * getRegionWindow()
Definition TileComponent.cpp:345
void postProcess(int32_t *srcData, DecompressBlockExec *block)
Definition TileComponent.cpp:349
void createWindow(grk_rect32 unreducedTileCompOrImageCompWindow)
Definition TileComponent.cpp:329
void postDecompressImpl(int32_t *srcData, DecompressBlockExec *block, uint16_t stride)
Definition TileComponent.cpp:386
bool isCompressor_
Definition TileComponent.h:57
Definition TileComponentWindow.h:160
Definition TileProcessor.h:78