Grok  10.0.3
ImageComponentFlow.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016-2022 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 "FlowComponent.h"
21 
22 namespace grk
23 {
24 struct ResFlow
25 {
26  ResFlow(void);
27  ~ResFlow(void);
28 
30  void disableWavelet(void);
31  void graph(void);
32  ResFlow* addTo(tf::Taskflow& composition);
33  ResFlow* precede(ResFlow* successor);
34  ResFlow* precede(FlowComponent* successor);
40  bool doWavelet_;
41 };
42 
44 {
45  public:
46  ImageComponentFlow(uint8_t numResolutions);
47  virtual ~ImageComponentFlow(void);
48  void setRegionDecompression(void);
49  std::string genBlockFlowTaskName(uint8_t resFlowNo);
50  ResFlow* getResFlow(uint8_t resFlowNo);
51  void graph(void);
52  ImageComponentFlow* addTo(tf::Taskflow& composition);
54  FlowComponent* getPrePostProc(tf::Taskflow& codecFlow);
55 
56  uint8_t numResFlows_;
60 };
61 
62 } // namespace grk
Definition: FlowComponent.h:21
Definition: ImageComponentFlow.h:44
FlowComponent * getPrePostProc(tf::Taskflow &codecFlow)
Definition: ImageComponentFlow.cpp:142
ResFlow * getResFlow(uint8_t resFlowNo)
Definition: ImageComponentFlow.cpp:138
ImageComponentFlow(uint8_t numResolutions)
Definition: ImageComponentFlow.cpp:90
void graph(void)
Definition: ImageComponentFlow.cpp:116
virtual ~ImageComponentFlow(void)
Definition: ImageComponentFlow.cpp:106
FlowComponent * waveletFinalCopy_
Definition: ImageComponentFlow.h:58
ImageComponentFlow * addTo(tf::Taskflow &composition)
Definition: ImageComponentFlow.cpp:129
FlowComponent * getFinalFlowT1(void)
Definition: ImageComponentFlow.cpp:125
std::string genBlockFlowTaskName(uint8_t resFlowNo)
Definition: ImageComponentFlow.cpp:152
FlowComponent * prePostProc_
Definition: ImageComponentFlow.h:59
ResFlow * resFlows_
Definition: ImageComponentFlow.h:57
void setRegionDecompression(void)
Definition: ImageComponentFlow.cpp:112
uint8_t numResFlows_
Definition: ImageComponentFlow.h:56
Copyright (C) 2016-2022 Grok Image Compression Inc.
Definition: ICacheable.h:20
Definition: ImageComponentFlow.h:25
bool doWavelet_
Definition: ImageComponentFlow.h:40
FlowComponent * waveletVert_
Definition: ImageComponentFlow.h:39
FlowComponent * waveletHoriz_
Definition: ImageComponentFlow.h:38
FlowComponent * getPacketsFlow(void)
Definition: ImageComponentFlow.cpp:25
~ResFlow(void)
Definition: ImageComponentFlow.cpp:83
FlowComponent * packets_
Definition: ImageComponentFlow.h:36
ResFlow * addTo(tf::Taskflow &composition)
Definition: ImageComponentFlow.cpp:47
ResFlow * precede(ResFlow *successor)
Definition: ImageComponentFlow.cpp:61
FlowComponent * getFinalFlowT1(void)
Definition: ImageComponentFlow.cpp:79
ResFlow(void)
Definition: ImageComponentFlow.cpp:21
void graph(void)
Definition: ImageComponentFlow.cpp:39
FlowComponent * blocks_
Definition: ImageComponentFlow.h:37
void disableWavelet(void)
Definition: ImageComponentFlow.cpp:35