Grok  7.6.2
T1DecompressScheduler.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 
20 #include "grk_includes.h"
21 
22 namespace grk {
23 
24 struct DecompressBlockExec;
25 class T1Interface;
26 
28 public:
31  bool decompress(std::vector<DecompressBlockExec*> *blocks);
32 
34  std::vector<DecompressBlockExec*> *blocks);
35 
37  uint16_t blockw,
38  uint16_t blockh,
39  std::vector<DecompressBlockExec*> *blocks);
40 
41 private:
43  std::vector<T1Interface*> t1Implementations;
44  std::atomic_bool success;
45 
47 };
48 
49 }
grk::TileComponentCodingParams::cblk_sty
uint8_t cblk_sty
code-block mode
Definition: CodingParams.h:63
grk::TileComponent::resolutions
Resolution * resolutions
Definition: TileComponent.h:57
grk::T1DecompressScheduler::prepareScheduleDecompress
bool prepareScheduleDecompress(TileComponent *tilec, TileComponentCodingParams *tccp, std::vector< DecompressBlockExec * > *blocks)
Definition: T1DecompressScheduler.cpp:32
ThreadPool::get
static ThreadPool * get()
Definition: ThreadPool.hpp:51
grk::TileCodingParams
Tile coding parameters : this structure is used to store coding/decoding parameters common to all til...
Definition: CodingParams.h:121
grk::T1DecompressScheduler::t1Implementations
std::vector< T1Interface * > t1Implementations
Definition: T1DecompressScheduler.h:43
grk::TileComponentCodingParams
Tile-component coding parameters.
Definition: CodingParams.h:49
grk::T1DecompressScheduler
Definition: T1DecompressScheduler.h:27
grk::T1DecompressScheduler::decompressBlock
bool decompressBlock(T1Interface *impl, DecompressBlockExec *block)
Definition: T1DecompressScheduler.cpp:91
grk::TileComponent::getBuffer
TileComponentWindowBuffer< int32_t > * getBuffer() const
Definition: TileComponent.cpp:321
grk::TileComponentCodingParams::qmfbid
uint8_t qmfbid
discrete wavelet transform identifier
Definition: CodingParams.h:65
grk::T1DecompressScheduler::decodeBlocks
DecompressBlockExec ** decodeBlocks
Definition: T1DecompressScheduler.h:46
grk::TileComponent::resolutions_to_decompress
uint8_t resolutions_to_decompress
Definition: TileComponent.h:59
ThreadPool::num_threads
size_t num_threads()
Definition: ThreadPool.hpp:49
grk::TileComponent::subbandIntersectsAOI
bool subbandIntersectsAOI(uint8_t resno, eBandOrientation orient, const grk_rect_u32 *aoi) const
Definition: TileComponent.cpp:169
grk
Copyright (C) 2016-2020 Grok Image Compression Inc.
Definition: BitIO.cpp:23
grk::TileComponent
Definition: TileComponent.h:31
grk_includes.h
grk::T1DecompressScheduler::success
std::atomic_bool success
Definition: T1DecompressScheduler.h:44
grk::DecompressBlockExec::open
bool open(T1Interface *t1)
Definition: T1Structs.cpp:658
grk::T1DecompressScheduler::T1DecompressScheduler
T1DecompressScheduler(void)
Definition: T1DecompressScheduler.cpp:21
grk::TileComponentWindowBuffer::alloc
bool alloc()
Definition: TileComponentWindowBuffer.h:428
GRK_RESTRICT
#define GRK_RESTRICT
Definition: grk_includes.h:101
grk::T1DecompressScheduler::~T1DecompressScheduler
~T1DecompressScheduler()
Definition: T1DecompressScheduler.cpp:26
grk::T1DecompressScheduler::scheduleDecompress
bool scheduleDecompress(TileCodingParams *tcp, uint16_t blockw, uint16_t blockh, std::vector< DecompressBlockExec * > *blocks)
Definition: T1DecompressScheduler.cpp:80
grk::T1Interface
Definition: T1Interface.h:23
grk::DecompressBlockExec
Definition: T1Structs.h:270
grk::TileComponentCodingParams::roishift
uint8_t roishift
Region Of Interest shift.
Definition: CodingParams.h:82
ThreadPool::thread_number
int thread_number(std::thread::id id)
Definition: ThreadPool.hpp:44
grk::T1DecompressScheduler::decompress
bool decompress(std::vector< DecompressBlockExec * > *blocks)
Definition: T1DecompressScheduler.cpp:105
grk::T1Factory::get_t1
static T1Interface * get_t1(bool isCompressor, TileCodingParams *tcp, uint32_t maxCblkW, uint32_t maxCblkH)
Definition: T1Factory.cpp:32
grk::GRK_ERROR
void GRK_ERROR(const char *fmt,...)
Definition: logger.cpp:57
grk::Subband
Definition: T1Structs.h:203