Grok 12.0.1
T1OJPH.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#pragma once
19#include "T1Interface.h"
20#include "TileProcessor.h"
21
22namespace ojph
23{
24class mem_fixed_allocator;
25class mem_elastic_allocator;
26
27struct TileCodingParams;
28
30{
31 public:
32 T1OJPH(bool isCompressor, grk::TileCodingParams* tcp, uint32_t maxCblkW, uint32_t maxCblkH);
33 virtual ~T1OJPH();
34
37
38 private:
41
43 uint8_t* coded_data;
46
49};
50} // namespace ojph
Definition T1Interface.h:26
Definition T1OJPH.h:30
mem_elastic_allocator * elastic_alloc
Definition T1OJPH.h:48
mem_fixed_allocator * allocator
Definition T1OJPH.h:47
bool compress(grk::CompressBlockExec *block)
Definition T1OJPH.cpp:95
int32_t * unencoded_data
Definition T1OJPH.h:45
void preCompress(grk::CompressBlockExec *block, grk::Tile *tile)
Definition T1OJPH.cpp:47
bool decompress(grk::DecompressBlockExec *block)
Definition T1OJPH.cpp:120
T1OJPH(bool isCompressor, grk::TileCodingParams *tcp, uint32_t maxCblkW, uint32_t maxCblkH)
Definition T1OJPH.cpp:30
uint32_t coded_data_size
Definition T1OJPH.h:42
uint32_t unencoded_data_size
Definition T1OJPH.h:44
bool postProcess(grk::DecompressBlockExec *block)
uint8_t * coded_data
Definition T1OJPH.h:43
virtual ~T1OJPH()
Definition T1OJPH.cpp:40
Definition ojph_mem.h:178
Definition ojph_mem.h:53
Definition ojph_block_common.cpp:48
Definition BlockExec.h:57
Definition BlockExec.h:45
Tile coding parameters : this structure is used to store coding/decoding parameters common to all til...
Definition CodingParams.h:122
Definition TileProcessor.h:39