T1Part1.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 "T1Interface.h"
namespace grk
{
namespace t1_part1
{
class T1Part1 : public T1Interface
{
public:
T1Part1(bool isCompressor, uint32_t maxCblkW, uint32_t maxCblkH);
virtual ~T1Part1();
bool compress(CompressBlockExec* block);
bool decompress(DecompressBlockExec* block);
private:
bool preCompress(CompressBlockExec* block, uint32_t& max);
T1* t1;
};
} // namespace t1_part1
} // namespace grk
T1Interface.h
grk::T1Interface
Definition T1Interface.h:26
grk::t1_part1::T1Part1
Definition T1Part1.h:26
grk::t1_part1::T1Part1::preCompress
bool preCompress(CompressBlockExec *block, uint32_t &max)
Definition T1Part1.cpp:37
grk::t1_part1::T1Part1::compress
bool compress(CompressBlockExec *block)
Definition T1Part1.cpp:95
grk::t1_part1::T1Part1::t1
T1 * t1
Definition T1Part1.h:36
grk::t1_part1::T1Part1::decompress
bool decompress(DecompressBlockExec *block)
Definition T1Part1.cpp:140
grk::t1_part1::T1Part1::~T1Part1
virtual ~T1Part1()
Definition T1Part1.cpp:33
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::CompressBlockExec
Definition BlockExec.h:57
grk::DecompressBlockExec
Definition BlockExec.h:45
grk::T1
Definition T1.h:32