Grok  7.6.0
T1Decoder.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016-2020 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 <string>
20 #include <vector>
21 #include <thread>
22 
23 namespace grk {
24 
25 struct decodeBlockInfo;
26 class T1Interface;
27 
28 class T1Decoder {
29 public:
30  T1Decoder(TileCodingParams *tcp, uint16_t blockw, uint16_t blockh);
32  bool decompress(std::vector<decodeBlockInfo*> *blocks);
33 
34 private:
35  uint16_t codeblock_width, codeblock_height; //nominal dimensions of block
36  std::vector<T1Interface*> threadStructs;
37  std::atomic_bool success;
38 
40 };
41 
42 }
grk::T1Decoder::threadStructs
std::vector< T1Interface * > threadStructs
Definition: T1Decoder.h:36
grk::TileCodingParams
Tile coding parameters : this structure is used to store coding/decoding parameters common to all til...
Definition: CodingParams.h:117
grk::T1Decoder::codeblock_height
uint16_t codeblock_height
Definition: T1Decoder.h:35
grk::T1Decoder
Definition: T1Decoder.h:28
grk::T1Decoder::decompress
bool decompress(std::vector< decodeBlockInfo * > *blocks)
grk::T1Decoder::success
std::atomic_bool success
Definition: T1Decoder.h:37
grk::T1Decoder::decodeBlocks
decodeBlockInfo ** decodeBlocks
Definition: T1Decoder.h:39
grk::decodeBlockInfo
Definition: T1Interface.h:25
grk
Copyright (C) 2016-2020 Grok Image Compression Inc.
Definition: BitIO.h:27
grk::T1Decoder::T1Decoder
T1Decoder(TileCodingParams *tcp, uint16_t blockw, uint16_t blockh)
grk::T1Decoder::~T1Decoder
~T1Decoder()
grk::T1Decoder::codeblock_width
uint16_t codeblock_width
Definition: T1Decoder.h:35