mhixbox_manager.h
Go to the documentation of this file.
/*
* $Id$
*
* Copyright (c) 2002-2014, Universite catholique de Louvain (UCL), Belgium
* Copyright (c) 2002-2014, Professor Benoit Macq
* Copyright (c) 2010-2011, Kaori Hagihara
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS `AS IS'
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef MHIXBOX_MANAGER_H_
# define MHIXBOX_MANAGER_H_
#include "byte_manager.h"
#include "box_manager.h"
typedef struct markeridx_param {
Byte2_t code;
Byte2_t num_remain;
OPJ_OFF_T offset;
Byte2_t length;
struct markeridx_param *next;
} markeridx_param_t;
typedef struct mhixbox_param {
Byte8_t tlen;
markeridx_param_t *first;
} mhixbox_param_t;
mhixbox_param_t * gene_mhixbox(box_param_t *box);
markeridx_param_t * search_markeridx(Byte2_t code, mhixbox_param_t *mhix);
void print_mhixbox(mhixbox_param_t *mhix);
void print_markeridx(markeridx_param_t *markeridx);
void delete_mhixbox(mhixbox_param_t **mhix);
#endif /* !MHIXBOX_MANAGER_H_ */
box_manager.h
byte_manager.h
Byte2_t
uint16_t Byte2_t
Definition byte_manager.h:38
Byte8_t
uint64_t Byte8_t
Definition byte_manager.h:40
print_mhixbox
void print_mhixbox(mhixbox_param_t *mhix)
print mhix box parameters
Definition mhixbox_manager.c:98
search_markeridx
markeridx_param_t * search_markeridx(Byte2_t code, mhixbox_param_t *mhix)
search a marker index by marker code from mhix box
Definition mhixbox_manager.c:78
print_markeridx
void print_markeridx(markeridx_param_t *markeridx)
print marker index parameters
Definition mhixbox_manager.c:117
delete_mhixbox
void delete_mhixbox(mhixbox_param_t **mhix)
delete mhix box
Definition mhixbox_manager.c:128
markeridx_param_t
struct markeridx_param markeridx_param_t
Marker index parameters.
gene_mhixbox
mhixbox_param_t * gene_mhixbox(box_param_t *box)
generate mhix box
Definition mhixbox_manager.c:47
mhixbox_param_t
struct mhixbox_param mhixbox_param_t
header index table box parameters
OPJ_OFF_T
int64_t OPJ_OFF_T
Definition openjpeg.h:136
box_param
box parameters
Definition box_manager.h:37
markeridx_param
Marker index parameters.
Definition mhixbox_manager.h:38
markeridx_param::code
Byte2_t code
marker code
Definition mhixbox_manager.h:39
markeridx_param::next
struct markeridx_param * next
pointer to the next markeridx
Definition mhixbox_manager.h:45
markeridx_param::length
Byte2_t length
codestream ( including the length
Definition mhixbox_manager.h:44
markeridx_param::num_remain
Byte2_t num_remain
remaining number of the same marker index segments listed immediately
Definition mhixbox_manager.h:40
markeridx_param::offset
OPJ_OFF_T offset
offset relative to the start of the
Definition mhixbox_manager.h:41
mhixbox_param
header index table box parameters
Definition mhixbox_manager.h:52
mhixbox_param::first
markeridx_param_t * first
header or of the first tile-part header)
Definition mhixbox_manager.h:55
mhixbox_param::tlen
Byte8_t tlen
length ( total length of the main
Definition mhixbox_manager.h:53