Grok 20.3.2
Profile.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
20namespace grk
21{
22class GrkImage;
23
25{
26public:
27 static void init4kPoc(grk_progression* prog, uint8_t numres);
28 static void setCinemaParams(grk_cparameters* parameters, GrkImage* image);
29 static bool isCinemaCompliant(GrkImage* image, uint16_t rsiz);
30 static void setImfParams(grk_cparameters* parameters, GrkImage* image);
31 static bool isImfCompliant(grk_cparameters* parameters, GrkImage* image);
32 static void setBroadcastParams(grk_cparameters* parameters);
33 static bool isBroadcastCompliant(grk_cparameters* parameters, GrkImage* image);
34
35private:
36 static int getImfMaxNumDecompLevels(grk_cparameters* parameters, GrkImage* image);
37 static int getBroadcastMaxDecompLevels(grk_cparameters* parameters, GrkImage* image);
38};
39
40} // namespace grk
Stores header and data for an image.
Definition GrkImage.h:54
Definition Profile.h:25
static void setCinemaParams(grk_cparameters *parameters, GrkImage *image)
Definition Profile.cpp:1021
static void init4kPoc(grk_progression *prog, uint8_t numres)
Definition Profile.cpp:1002
static int getBroadcastMaxDecompLevels(grk_cparameters *parameters, GrkImage *image)
Definition Profile.cpp:640
static bool isBroadcastCompliant(grk_cparameters *parameters, GrkImage *image)
Definition Profile.cpp:734
static int getImfMaxNumDecompLevels(grk_cparameters *parameters, GrkImage *image)
Definition Profile.cpp:50
static bool isCinemaCompliant(GrkImage *image, uint16_t rsiz)
Definition Profile.cpp:1152
static void setImfParams(grk_cparameters *parameters, GrkImage *image)
Definition Profile.cpp:97
static bool isImfCompliant(grk_cparameters *parameters, GrkImage *image)
Definition Profile.cpp:171
static void setBroadcastParams(grk_cparameters *parameters)
Definition Profile.cpp:687
ResWindow.
Definition CompressedChunkCache.h:36
Compression parameters.
Progression order change (POC).