Grok 12.0.1
T2Decompress.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 */
18
19#pragma once
20
21namespace grk
22{
23struct TileProcessor;
24
29{
31 virtual ~T2Decompress(void) = default;
32 void decompressPackets(uint16_t tileno, SparseBuffer* src, bool* truncated);
33
34 private:
37 bool processPacket(uint16_t compno, uint8_t resno, uint64_t precinctIndex, uint16_t layno,
39 void readPacketData(Resolution* res, PacketParser* parser, uint64_t precinctIndex, bool defer);
40};
41
42} // namespace grk
Definition PacketParser.h:28
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
Definition Resolution.h:25
Definition SparseBuffer.h:28
Tier-2 decoding.
Definition T2Decompress.h:29
void decompressPackets(uint16_t tileno, SparseBuffer *src, bool *truncated)
Definition T2Decompress.cpp:27
void decompressPacket(PacketParser *parser, bool skipData)
Definition T2Decompress.cpp:195
void readPacketData(Resolution *res, PacketParser *parser, uint64_t precinctIndex, bool defer)
Definition T2Decompress.cpp:173
TileProcessor * tileProcessor
Definition T2Decompress.h:35
T2Decompress(TileProcessor *tileProc)
Definition T2Decompress.cpp:25
virtual ~T2Decompress(void)=default
bool processPacket(uint16_t compno, uint8_t resno, uint64_t precinctIndex, uint16_t layno, SparseBuffer *src)
Definition T2Decompress.cpp:97
Definition TileProcessor.h:78