T2Decompress.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
namespace grk
{
struct TileProcessor;
struct T2Decompress
{
T2Decompress(TileProcessor* tileProc);
virtual ~T2Decompress(void) = default;
void decompressPackets(uint16_t tileno, SparseBuffer* src, bool* truncated);
private:
TileProcessor* tileProcessor;
void decompressPacket(PacketParser* parser, bool skipData);
bool processPacket(uint16_t compno, uint8_t resno, uint64_t precinctIndex, uint16_t layno,
SparseBuffer* src);
void readPacketData(Resolution* res, PacketParser* parser, uint64_t precinctIndex, bool defer);
};
} // namespace grk
grk::PacketParser
Definition PacketParser.h:28
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::Resolution
Definition Resolution.h:25
grk::SparseBuffer
Definition SparseBuffer.h:28
grk::T2Decompress
Tier-2 decoding.
Definition T2Decompress.h:29
grk::T2Decompress::decompressPackets
void decompressPackets(uint16_t tileno, SparseBuffer *src, bool *truncated)
Definition T2Decompress.cpp:27
grk::T2Decompress::decompressPacket
void decompressPacket(PacketParser *parser, bool skipData)
Definition T2Decompress.cpp:195
grk::T2Decompress::readPacketData
void readPacketData(Resolution *res, PacketParser *parser, uint64_t precinctIndex, bool defer)
Definition T2Decompress.cpp:173
grk::T2Decompress::tileProcessor
TileProcessor * tileProcessor
Definition T2Decompress.h:35
grk::T2Decompress::~T2Decompress
virtual ~T2Decompress(void)=default
grk::T2Decompress::processPacket
bool processPacket(uint16_t compno, uint8_t resno, uint64_t precinctIndex, uint16_t layno, SparseBuffer *src)
Definition T2Decompress.cpp:95
grk::TileProcessor
Definition TileProcessor.h:78