Grok  9.5.0
Profile.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016-2021 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  * This source code incorporates work covered by the BSD 2-clause license.
18  * Please see the LICENSE file in the root directory for details.
19  *
20  */
21 
22 #include "grk_includes.h"
23 
24 namespace grk
25 {
26 class GrkImage;
27 
28 class Profile
29 {
30  public:
31  static void initialise_4K_poc(grk_progression* POC, uint8_t numres);
32  static void set_cinema_parameters(grk_cparameters* parameters, GrkImage* image);
33  static bool is_cinema_compliant(GrkImage* image, uint16_t rsiz);
34  static void set_imf_parameters(grk_cparameters* parameters, GrkImage* image);
35  static bool is_imf_compliant(grk_cparameters* parameters, GrkImage* image);
36  static void set_broadcast_parameters(grk_cparameters* parameters);
37  static bool is_broadcast_compliant(grk_cparameters* parameters, GrkImage* image);
38 
39  private:
40  static int get_imf_max_NL(grk_cparameters* parameters, GrkImage* image);
41  static int get_broadcast_max_NL(grk_cparameters* parameters, GrkImage* image);
42 };
43 
44 } // namespace grk
Definition: GrkImage.h:19
Definition: Profile.h:29
static bool is_cinema_compliant(GrkImage *image, uint16_t rsiz)
Definition: Profile.cpp:1151
static int get_imf_max_NL(grk_cparameters *parameters, GrkImage *image)
Definition: Profile.cpp:32
static void initialise_4K_poc(grk_progression *POC, uint8_t numres)
Definition: Profile.cpp:987
static void set_broadcast_parameters(grk_cparameters *parameters)
Definition: Profile.cpp:671
static bool is_broadcast_compliant(grk_cparameters *parameters, GrkImage *image)
Definition: Profile.cpp:718
static void set_cinema_parameters(grk_cparameters *parameters, GrkImage *image)
Definition: Profile.cpp:1006
static bool is_imf_compliant(grk_cparameters *parameters, GrkImage *image)
Definition: Profile.cpp:154
static int get_broadcast_max_NL(grk_cparameters *parameters, GrkImage *image)
Definition: Profile.cpp:624
static void set_imf_parameters(grk_cparameters *parameters, GrkImage *image)
Definition: Profile.cpp:79
Copyright (C) 2016-2021 Grok Image Compression Inc.
Definition: ICacheable.h:20
Compress parameters.
Definition: grok.h:489
Progression order change.
Definition: grok.h:417