Grok 20.3.2
mqc_backup.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2016-2026 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 "buffer.h"
21#include "mqc_base.h"
22
23namespace grk::t1
24{
25
26const uint8_t BACKUP_DISABLED = 0xFF;
27
33{
39 mqcoder_backup(void);
40
45
46 // Copy constructor
47 mqcoder_backup(const mqcoder_backup& other);
48
49 // Assignment operator for mqcoder_backup
51
52 bool operator==(const mqcoder_backup& other) const;
53
57 void print(const std::string& msg);
58
63
68
72 uint16_t position;
73
77 uint16_t i, j, k;
78
82 bool partial;
83
87 uint8_t runlen;
88
92 int32_t* dataPtr_;
93
98
103
108
112 uint8_t passno_;
113
117 uint8_t passtype_;
118
119 uint16_t layer_;
120};
121
122} // namespace grk::t1
Definition SchedulerFreebyrd.h:36
const uint8_t BACKUP_DISABLED
Definition mqc_backup.h:26
uint32_t grk_flag
Definition mqc_base.h:27
Buffer2d< int32_t, AllocatorAligned > Buffer2dAligned32
Definition buffer.h:553
void print(const std::string &msg)
Prints internal state.
Definition mqc_backup.cpp:39
int32_t * dataPtr_
local data pointer
Definition mqc_backup.h:92
grk_flag * flagsBackup_
BlockCoder flags backup
Definition mqc_backup.h:62
uint16_t layer_
Definition mqc_backup.h:119
uint8_t numBpsToDecompress_
code block number of bit planes to decompress
Definition mqc_backup.h:107
uint16_t i
local loop variables
Definition mqc_backup.h:77
uint8_t passno_
code block pass number
Definition mqc_backup.h:112
uint16_t k
Definition mqc_backup.h:77
grk_flag * flagsPtr_
local flags pointer
Definition mqc_backup.h:97
grk_flag _flags
current flags
Definition mqc_backup.h:102
mqcoder_backup(void)
Creates an mqcoder_backup This struct uses mqcoder_base to store cacheable mqcoder variables,...
Definition mqc_backup.cpp:23
bool partial
local partial
Definition mqc_backup.h:82
uint16_t j
Definition mqc_backup.h:77
Buffer2dAligned32 uncompressedBufBackup_
BlockCoder frame buffer backup
Definition mqc_backup.h:67
uint8_t runlen
local runlen
Definition mqc_backup.h:87
uint16_t position
local position of backup in loop
Definition mqc_backup.h:72
~mqcoder_backup()
Destroys a mqcoder_backup.
Definition mqc_backup.cpp:33
mqcoder_backup & operator=(const mqcoder_backup &other)
Definition mqc_backup.cpp:55
uint8_t passtype_
code block pass type
Definition mqc_backup.h:117
bool operator==(const mqcoder_backup &other) const
Definition mqc_backup.cpp:81
mqcoder_base(bool cached)
Creates an mqcoder_base.
Definition mqc_base.cpp:26