Grok  7.6.6
Dump.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 #pragma once
23 
24 #include <vector>
25 #include <map>
26 
27 namespace grk {
28 
29 class FileFormat;
30 
31 
40 void j2k_dump(CodeStream *codeStream, uint32_t flag, FILE *out_stream);
41 
49 void j2k_dump_image_header(GrkImage *image, bool dev_dump_flag,
50  FILE *out_stream);
51 
59 void j2k_dump_image_comp_header( grk_image_comp *comp, bool dev_dump_flag,
60  FILE *out_stream);
61 
69  grk_codestream_info_v2 * j2k_get_cstr_info(CodeStream *codeStream);
70 
78  grk_codestream_index * j2k_get_cstr_index(CodeStream *codeStream);
79 
81 
82  bool j2k_allocate_tile_element_cstr_index(CodeStream *codeStream);
83 
90 
99  void jp2_dump(FileFormat *fileFormat, uint32_t flag, FILE *out_stream);
100 
108  grk_codestream_info_v2 * jp2_get_cstr_info(FileFormat *fileFormat);
109 
117  grk_codestream_index * jp2_get_cstr_index(FileFormat *fileFormat);
118 
119 
120 }
Copyright (C) 2016-2021 Grok Image Compression Inc.
Definition: BitIO.cpp:23
grk_codestream_info_v2 * jp2_get_cstr_info(FileFormat *fileFormat)
Get the code stream info from a JPEG2000 codec.
Definition: Dump.cpp:520
bool j2k_allocate_tile_element_cstr_index(CodeStream *codeStream)
Definition: Dump.cpp:461
void j2k_dump_image_comp_header(grk_image_comp *comp_header, bool dev_dump_flag, FILE *out_stream)
Dump a component image header structure.
Definition: Dump.cpp:260
grk_codestream_info_v2 * j2k_get_cstr_info(CodeStream *codeStream)
Get the code stream info from a JPEG2000 codec.
Definition: Dump.cpp:282
void j2k_dump(CodeStream *codeStream, uint32_t flag, FILE *out_stream)
Dump some elements from the J2K decompression structure .
Definition: Dump.cpp:87
grk_codestream_index * jp2_get_cstr_index(FileFormat *fileFormat)
Get the code stream index from a JPEG2000 codec.
Definition: Dump.cpp:516
grk_codestream_index * j2k_get_cstr_index(CodeStream *codeStream)
Get the code stream index from a JPEG2000 codec.
Definition: Dump.cpp:352
grk_codestream_index * j2k_create_cstr_index(void)
Definition: Dump.cpp:479
void j2k_dump_image_header(GrkImage *img_header, bool dev_dump_flag, FILE *out_stream)
Dump an image header structure.
Definition: Dump.cpp:228
void j2k_destroy_cstr_index(grk_codestream_index *p_cstr_ind)
Destroys a code stream index structure.
Definition: Dump.cpp:497
void jp2_dump(FileFormat *fileFormat, uint32_t flag, FILE *out_stream)
Dump some elements from the JP2 decompression structure .
Definition: Dump.cpp:511
Code stream index info.
Definition: grok.h:1161
Code stream info v2.
Definition: grok.h:1104
Image component.
Definition: grok.h:861