X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=doxygen%2Fcidx__manager_8h_source.html;h=aebe5a6709885a9d5bbb2e43042c310c00c392ad;hb=963779a61508023927a2f9f621e65aa67d599d35;hp=046a6142fb63f38f0e640add6447bbd8e5b313c7;hpb=46a238beb0b1c835489bdf0ffeb69f1234c2dcfb;p=openjpeg.git diff --git a/doxygen/cidx__manager_8h_source.html b/doxygen/cidx__manager_8h_source.html index 046a6142..aebe5a67 100644 --- a/doxygen/cidx__manager_8h_source.html +++ b/doxygen/cidx__manager_8h_source.html @@ -1,9 +1,10 @@ - + - + + OpenJPEG: cidx_manager.h Source File @@ -18,7 +19,7 @@
OpenJPEG -  2.4.0 +  2.5.0
@@ -26,22 +27,16 @@ - - - + + + + +
-Go to the documentation of this file.
1 /*
2  * $Id: cidx_manager.h 897 2011-08-28 21:43:57Z Kaori.Hagihara@gmail.com $
3  *
4  * Copyright (c) 2002-2014, Universite catholique de Louvain (UCL), Belgium
5  * Copyright (c) 2002-2014, Professor Benoit Macq
6  * Copyright (c) 2003-2004, Yannick Verschueren
7  * Copyright (c) 2010-2011, Kaori Hagihara
8  * All rights reserved.
9  *
10  * Redistribution and use in source and binary forms, with or without
11  * modification, are permitted provided that the following conditions
12  * are met:
13  * 1. Redistributions of source code must retain the above copyright
14  * notice, this list of conditions and the following disclaimer.
15  * 2. Redistributions in binary form must reproduce the above copyright
16  * notice, this list of conditions and the following disclaimer in the
17  * documentation and/or other materials provided with the distribution.
18  *
19  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS `AS IS'
20  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
23  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29  * POSSIBILITY OF SUCH DAMAGE.
30  */
31 
37 #ifndef CIDX_MANAGER_H_
38 # define CIDX_MANAGER_H_
39 
40 #include "openjpeg.h"
41 
42 
43 /*
44  * Write Codestream index box (superbox)
45  *
46  * @param[in] offset offset of j2k codestream
47  * @param[in] cio file output handle
48  * @param[in] image image data
49  * @param[in] cstr_info codestream information
50  * @param[in] j2klen length of j2k codestream
51  * @return length of cidx box
52  */
53 int opj_write_cidx(int offset, opj_stream_private_t *cio,
54  opj_codestream_info_t cstr_info, int j2klen,
55  opj_event_mgr_t * p_manager);
56 
57 /*
58  * Check if EPH option is used
59  *
60  * @param[in] coff offset of j2k codestream
61  * @param[in] markers marker information
62  * @param[in] marknum number of markers
63  * @param[in] cio file output handle
64  * @return true if EPH is used
65  */
66 OPJ_BOOL opj_check_EPHuse(int coff, opj_marker_info_t *markers, int marknum,
68  opj_event_mgr_t * p_manager);
69 
70 #endif /* !CIDX_MANAGER_H_ */
Message handler object used for.
Definition: event.h:50
-
int OPJ_BOOL
Definition: openjpeg.h:110
-
Byte input-output stream.
Definition: cio.h:81
-
Marker structure.
Definition: openjpeg.h:776
- -
OPJ_BOOL opj_check_EPHuse(int coff, opj_marker_info_t *markers, int marknum, opj_stream_private_t *cio, opj_event_mgr_t *p_manager)
Definition: cidx_manager.c:233
-
Index structure of the codestream.
Definition: openjpeg.h:845
-
int opj_write_cidx(int offset, opj_stream_private_t *cio, opj_codestream_info_t cstr_info, int j2klen, opj_event_mgr_t *p_manager)
Definition: cidx_manager.c:50
+Go to the documentation of this file.
1 /*
+
2  * $Id: cidx_manager.h 897 2011-08-28 21:43:57Z Kaori.Hagihara@gmail.com $
+
3  *
+
4  * Copyright (c) 2002-2014, Universite catholique de Louvain (UCL), Belgium
+
5  * Copyright (c) 2002-2014, Professor Benoit Macq
+
6  * Copyright (c) 2003-2004, Yannick Verschueren
+
7  * Copyright (c) 2010-2011, Kaori Hagihara
+
8  * All rights reserved.
+
9  *
+
10  * Redistribution and use in source and binary forms, with or without
+
11  * modification, are permitted provided that the following conditions
+
12  * are met:
+
13  * 1. Redistributions of source code must retain the above copyright
+
14  * notice, this list of conditions and the following disclaimer.
+
15  * 2. Redistributions in binary form must reproduce the above copyright
+
16  * notice, this list of conditions and the following disclaimer in the
+
17  * documentation and/or other materials provided with the distribution.
+
18  *
+
19  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS `AS IS'
+
20  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+
21  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+
22  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+
23  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+
24  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+
25  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+
26  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+
27  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+
28  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+
29  * POSSIBILITY OF SUCH DAMAGE.
+
30  */
+
31 
+
37 #ifndef CIDX_MANAGER_H_
+
38 # define CIDX_MANAGER_H_
+
39 
+
40 #include "openjpeg.h"
+
41 
+
42 
+
43 /*
+
44  * Write Codestream index box (superbox)
+
45  *
+
46  * @param[in] offset offset of j2k codestream
+
47  * @param[in] cio file output handle
+
48  * @param[in] image image data
+
49  * @param[in] cstr_info codestream information
+
50  * @param[in] j2klen length of j2k codestream
+
51  * @return length of cidx box
+
52  */
+
53 int opj_write_cidx(int offset, opj_stream_private_t *cio,
+
54  opj_codestream_info_t cstr_info, int j2klen,
+
55  opj_event_mgr_t * p_manager);
+
56 
+
57 /*
+
58  * Check if EPH option is used
+
59  *
+
60  * @param[in] coff offset of j2k codestream
+
61  * @param[in] markers marker information
+
62  * @param[in] marknum number of markers
+
63  * @param[in] cio file output handle
+
64  * @return true if EPH is used
+
65  */
+
66 OPJ_BOOL opj_check_EPHuse(int coff, opj_marker_info_t *markers, int marknum,
+ +
68  opj_event_mgr_t * p_manager);
+
69 
+
70 #endif /* !CIDX_MANAGER_H_ */
+
OPJ_BOOL opj_check_EPHuse(int coff, opj_marker_info_t *markers, int marknum, opj_stream_private_t *cio, opj_event_mgr_t *p_manager)
Definition: cidx_manager.c:233
+
unsigned char OPJ_BYTE
Definition: openjpeg.h:123
+
OPJ_SIZE_T opj_stream_write_data(opj_stream_private_t *p_stream, const OPJ_BYTE *p_buffer, OPJ_SIZE_T p_size, opj_event_mgr_t *p_event_mgr)
Writes some bytes to the stream.
Definition: cio.c:385
+
void * opj_calloc(size_t num, size_t size)
Allocate a memory block with elements initialized to 0.
Definition: opj_malloc.c:198
+
void opj_write_cptr(int coff, int clen, opj_stream_private_t *cio, opj_event_mgr_t *p_manager)
Definition: cidx_manager.c:128
+
#define JPIP_THIX
Definition: indexbox_manager.h:49
+
int opj_write_phix(int coff, opj_codestream_info_t cstr_info, OPJ_BOOL EPHused, int j2klen, opj_stream_private_t *cio, opj_event_mgr_t *p_manager)
Definition: phix_manager.c:51
+
#define JPIP_MHIX
Definition: indexbox_manager.h:47
+
#define JPIP_PHIX
Definition: indexbox_manager.h:51
+
int64_t OPJ_OFF_T
Definition: openjpeg.h:136
+
OPJ_OFF_T opj_stream_skip(opj_stream_private_t *p_stream, OPJ_OFF_T p_size, opj_event_mgr_t *p_event_mgr)
Skips a number of bytes from the stream.
Definition: cio.c:593
+
OPJ_BOOL opj_stream_seek(opj_stream_private_t *p_stream, OPJ_OFF_T p_size, struct opj_event_mgr *p_event_mgr)
Seeks a number of bytes from the stream.
Definition: cio.c:641
+
int main_head_start
main header position
Definition: openjpeg.h:891
+
Message handler object used for.
Definition: event.h:50
+
OPJ_OFF_T opj_stream_tell(const opj_stream_private_t *p_stream)
Tells the byte offset on the stream (similar to ftell).
Definition: cio.c:579
+
OPJ_UINT32 type
Definition: jp2.h:200
+
Byte input-output stream.
Definition: cio.h:81
+
void opj_write_manf(int second, int v, opj_jp2_box_t *box, opj_stream_private_t *cio, opj_event_mgr_t *p_manager)
Definition: cidx_manager.c:157
+
int OPJ_BOOL
Definition: openjpeg.h:116
+
+
opj_marker_info_t * marker
list of markers
Definition: openjpeg.h:886
+
JP2 Box.
Definition: jp2.h:198
+
int opj_write_cidx(int offset, opj_stream_private_t *cio, opj_codestream_info_t cstr_info, int j2klen, opj_event_mgr_t *p_manager)
Definition: cidx_manager.c:50
+
int len
length, marker val included
Definition: openjpeg.h:788
+
OPJ_OFF_T pos
position in codestream
Definition: openjpeg.h:786
+
int opj_write_thix(int coff, opj_codestream_info_t cstr_info, opj_stream_private_t *cio, opj_event_mgr_t *p_manager)
Definition: thix_manager.c:40
+
int opj_write_tpix(int coff, opj_codestream_info_t cstr_info, int j2klen, opj_stream_private_t *cio, opj_event_mgr_t *p_manager)
Definition: tpix_manager.c:60
+
#define JPIP_CPTR
Definition: indexbox_manager.h:44
+
#define OPJ_TRUE
Definition: openjpeg.h:117
+
+
void opj_free(void *ptr)
Deallocates or frees a memory block.
Definition: opj_malloc.c:246
+
#define JPIP_PPIX
Definition: indexbox_manager.h:50
+
#define JPIP_MANF
Definition: indexbox_manager.h:45
+
int main_head_end
main header position
Definition: openjpeg.h:893
+
unsigned short int type
marker type
Definition: openjpeg.h:784
+
#define JPIP_TPIX
Definition: indexbox_manager.h:48
+
OPJ_UINT32 length
Definition: jp2.h:199
+
OPJ_BOOL opj_check_EPHuse(int coff, opj_marker_info_t *markers, int marknum, opj_stream_private_t *cio, opj_event_mgr_t *p_manager)
Definition: cidx_manager.c:233
+
Index structure of the codestream.
Definition: openjpeg.h:851
+
#define opj_read_bytes
Definition: cio.h:65
+
uint32_t OPJ_UINT32
Definition: openjpeg.h:132
+
int opj_write_mainmhix(int coff, opj_codestream_info_t cstr_info, opj_stream_private_t *cio, opj_event_mgr_t *p_manager)
Definition: cidx_manager.c:192
+
#define JPIP_CIDX
Definition: indexbox_manager.h:43
+
int opj_write_ppix(int coff, opj_codestream_info_t cstr_info, OPJ_BOOL EPHused, int j2klen, opj_stream_private_t *cio, opj_event_mgr_t *p_manager)
Definition: ppix_manager.c:51
+
#define OPJ_FALSE
Definition: openjpeg.h:118
+
int opj_write_cidx(int offset, opj_stream_private_t *cio, opj_codestream_info_t cstr_info, int j2klen, opj_event_mgr_t *p_manager)
Definition: cidx_manager.c:50
+
#define opj_write_bytes
Definition: cio.h:64
+
#define J2K_MS_COD
COD marker value.
Definition: j2k.h:78
+
Marker structure.
Definition: openjpeg.h:782
+
OPJ_SIZE_T opj_stream_read_data(opj_stream_private_t *p_stream, OPJ_BYTE *p_buffer, OPJ_SIZE_T p_size, opj_event_mgr_t *p_event_mgr)
Reads some bytes from the stream.
Definition: cio.c:281
+
int marknum
number of markers
Definition: openjpeg.h:884
+
int codestream_size
codestream's size
Definition: openjpeg.h:895