Grok  7.6.0
T1Part1.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 "stdint.h"
20 #include "testing.h"
21 #include "Tier1.h"
22 #include "TileProcessor.h"
23 #include "T1Interface.h"
24 #include "t1_common.h"
25 #include "t1.h"
26 
27 
28 
29 namespace grk {
30 
31 namespace t1_part1 {
32 
33 class T1Part1: public T1Interface {
34 public:
35  T1Part1(bool isEncoder, TileCodingParams *tcp, uint32_t maxCblkW, uint32_t maxCblkH);
36  virtual ~T1Part1();
37 
38  void preEncode(encodeBlockInfo *block, grk_tile *tile, uint32_t &max);
39  double compress(encodeBlockInfo *block, grk_tile *tile, uint32_t max,
40  bool doRateControl);
41 
44 
45 private:
47 
49 };
50 }
51 }
grk::t1_part1::T1Part1::post_decode
void post_decode(t1_info *t1, cblk_dec *cblk, decodeBlockInfo *block)
t1_common.h
grk::TileCodingParams
Tile coding parameters : this structure is used to store coding/decoding parameters common to all til...
Definition: CodingParams.h:117
grk::t1_info
Definition: t1.h:133
grk::t1_part1::T1Part1::compress
double compress(encodeBlockInfo *block, grk_tile *tile, uint32_t max, bool doRateControl)
grk::t1_part1::T1Part1::decompress
bool decompress(decodeBlockInfo *block)
grk::t1_part1::T1Part1::t1
t1_info * t1
Definition: T1Part1.h:46
testing.h
grk::t1_part1::T1Part1::postDecode
void postDecode(decodeBlockInfo *block)
grk::t1_part1::T1Part1::~T1Part1
virtual ~T1Part1()
grk::decodeBlockInfo
Definition: T1Interface.h:25
grk
Copyright (C) 2016-2020 Grok Image Compression Inc.
Definition: BitIO.h:27
Tier1.h
grk::t1_part1::T1Part1::T1Part1
T1Part1(bool isEncoder, TileCodingParams *tcp, uint32_t maxCblkW, uint32_t maxCblkH)
grk::grk_tile
Definition: TileProcessor.h:180
grk::cblk_dec
Definition: t1_common.h:86
grk::t1_part1::T1Part1
Definition: T1Part1.h:33
t1.h
grk::t1_part1::T1Part1::preEncode
void preEncode(encodeBlockInfo *block, grk_tile *tile, uint32_t &max)
T1Interface.h
TileProcessor.h
grk::T1Interface
Definition: T1Interface.h:103
grk::encodeBlockInfo
Definition: T1Interface.h:58