Grok 20.3.2
T2Decompress.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2016-2026 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
18#pragma once
19
21
22namespace grk
23{
24struct ITileProcessor;
25
32{
37 explicit T2Decompress(ITileProcessor* tileProc);
38
42 virtual ~T2Decompress(void) = default;
43
50 bool parsePackets(uint16_t tileno, PacketCache* compressedPackets);
51
52private:
57
67 bool parsePacket(uint16_t compno, uint8_t resno, uint64_t precinctIndex, uint16_t layno,
68 PacketCache* compressedPackets);
69
79 void parsePacketData(Resolution* res, PacketParser* parser, uint64_t precinctIndex, bool enqueue);
80};
81
82} // namespace grk
Manages packet buffers and associated packet parsers.
Definition PacketCache.h:30
Parses packet header and packer data.
Definition PacketParser.h:35
ResWindow.
Definition CompressedChunkCache.h:36
Interface for managing tile compression/decompression.
Definition ITileProcessor.h:37
Stores a tile component resolution's dimensions, sub bands and other information.
Definition Resolution.h:31
bool parsePacket(uint16_t compno, uint8_t resno, uint64_t precinctIndex, uint16_t layno, PacketCache *compressedPackets)
Parses packet.
Definition T2Decompress.cpp:137
ITileProcessor * tileProcessor
ITileProcessor for this tile
Definition T2Decompress.h:56
T2Decompress(ITileProcessor *tileProc)
Constructs a T2Decompress object.
Definition T2Decompress.cpp:65
bool parsePackets(uint16_t tileno, PacketCache *compressedPackets)
Parses tile packets.
Definition T2Decompress.cpp:67
virtual ~T2Decompress(void)=default
Destroys a T2Decompress object.
void parsePacketData(Resolution *res, PacketParser *parser, uint64_t precinctIndex, bool enqueue)
Parses packet data.
Definition T2Decompress.cpp:260