Grok  9.7.5
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 
29  void graph(void);
30  ResFlow* addTo(tf::Taskflow& composition);
31  ResFlow* precede(ResFlow* successor);
32  ResFlow* precede(FlowComponent* successor);
36 };
37 
39 {
40  public:
41  ImageComponentFlow(uint8_t numResolutions);
42  virtual ~ImageComponentFlow(void);
43  void setRegionDecompression(void);
44  std::string genBlockFlowTaskName(uint8_t resFlowNo);
45  ResFlow* getResFlow(uint8_t resFlowNo);
46  void graph(void);
47  ImageComponentFlow* addTo(tf::Taskflow& composition);
48 
49  uint8_t numResFlows_;
52 };
53 
54 } // namespace grk
Definition: ImageComponentFlow.h:39
ResFlow * getResFlow(uint8_t resFlowNo)
Definition: ImageComponentFlow.cpp:95
ImageComponentFlow(uint8_t numResolutions)
Definition: ImageComponentFlow.cpp:57
void graph(void)
Definition: ImageComponentFlow.cpp:77
virtual ~ImageComponentFlow(void)
Definition: ImageComponentFlow.cpp:68
FlowComponent * waveletFinalCopy_
Definition: ImageComponentFlow.h:51
ImageComponentFlow * addTo(tf::Taskflow &composition)
Definition: ImageComponentFlow.cpp:86
std::string genBlockFlowTaskName(uint8_t resFlowNo)
Definition: ImageComponentFlow.cpp:99
ResFlow * resFlows_
Definition: ImageComponentFlow.h:50
void setRegionDecompression(void)
Definition: ImageComponentFlow.cpp:73
uint8_t numResFlows_
Definition: ImageComponentFlow.h:49
Copyright (C) 2016-2022 Grok Image Compression Inc.
Definition: ICacheable.h:20
Definition: FlowComponent.h:21
Definition: ImageComponentFlow.h:25
FlowComponent * waveletVert_
Definition: ImageComponentFlow.h:35
FlowComponent * waveletHoriz_
Definition: ImageComponentFlow.h:34
~ResFlow(void)
Definition: ImageComponentFlow.cpp:51
ResFlow * addTo(tf::Taskflow &composition)
Definition: ImageComponentFlow.cpp:30
ResFlow * precede(ResFlow *successor)
Definition: ImageComponentFlow.cpp:39
ResFlow(void)
Definition: ImageComponentFlow.cpp:21
void graph(void)
Definition: ImageComponentFlow.cpp:25
FlowComponent * blocks_
Definition: ImageComponentFlow.h:33