Grok  9.5.0
T1DecompressScheduler.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016-2021 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 
20 #include "grk_includes.h"
21 
22 namespace grk
23 {
24 struct DecompressBlockExec;
25 class T1Interface;
26 
28 {
29  public:
32  bool decompress(std::vector<DecompressBlockExec*>* blocks);
33 
35  std::vector<DecompressBlockExec*>* blocks, uint8_t prec);
36 
37  bool scheduleDecompress(TileCodingParams* tcp, uint16_t blockw, uint16_t blockh,
38  std::vector<DecompressBlockExec*>* blocks);
39 
40  private:
42  std::vector<T1Interface*> t1Implementations;
43  std::atomic_bool success;
44 
46  const uint8_t gain_b[4] = {0, 1, 1, 2};
47 };
48 
49 } // namespace grk
Definition: T1DecompressScheduler.h:28
bool decompressBlock(T1Interface *impl, DecompressBlockExec *block)
Definition: T1DecompressScheduler.cpp:87
bool decompress(std::vector< DecompressBlockExec * > *blocks)
Definition: T1DecompressScheduler.cpp:104
T1DecompressScheduler(void)
Definition: T1DecompressScheduler.cpp:21
std::atomic_bool success
Definition: T1DecompressScheduler.h:43
const uint8_t gain_b[4]
Definition: T1DecompressScheduler.h:46
DecompressBlockExec ** decodeBlocks
Definition: T1DecompressScheduler.h:45
std::vector< T1Interface * > t1Implementations
Definition: T1DecompressScheduler.h:42
~T1DecompressScheduler()
Definition: T1DecompressScheduler.cpp:22
bool scheduleDecompress(TileCodingParams *tcp, uint16_t blockw, uint16_t blockh, std::vector< DecompressBlockExec * > *blocks)
Definition: T1DecompressScheduler.cpp:74
bool prepareScheduleDecompress(TileComponent *tilec, TileComponentCodingParams *tccp, std::vector< DecompressBlockExec * > *blocks, uint8_t prec)
Definition: T1DecompressScheduler.cpp:27
Definition: T1Interface.h:26
Copyright (C) 2016-2021 Grok Image Compression Inc.
Definition: ICacheable.h:20
Definition: BlockExec.h:45
Tile coding parameters : this structure is used to store coding/decoding parameters common to all til...
Definition: CodingParams.h:122
Tile-component coding parameters.
Definition: CodingParams.h:53
Definition: TileComponent.h:28