OpenJPEG
2.5.0
|
#include "metadata_manager.h"
#include "opj_inttypes.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <assert.h>
Macros | |
#define | FCGI_stdout stdout |
#define | FCGI_stderr stderr |
#define | logstream stderr |
#define FCGI_stderr stderr |
#define FCGI_stdout stdout |
#define logstream stderr |
metadatalist_param_t* const_metadatalist | ( | int | fd | ) |
construct metadata-bin list of JP2 file
[in] | fd | file descriptor |
References delete_box_in_list(), FCGI_stderr, box_param::fd, boxlist_param::first, gene_boxcontents(), gene_metadata(), gene_metadatalist(), gene_placeholder(), gene_placeholderlist(), get_boxstructure(), get_DBoxlen(), get_DBoxoff(), get_filesize(), insert_metadata_into_list(), insert_placeholder_into_list(), box_param::next, and box_param::type.
Referenced by parse_jp2file().
void delete_metadata | ( | metadata_param_t ** | metadata | ) |
delete a metadata bin
[in,out] | metadata | address of the deleting metadata bin pointer |
References delete_boxlist(), and delete_placeholderlist().
Referenced by delete_metadatalist().
void delete_metadatalist | ( | metadatalist_param_t ** | list | ) |
delete metadata list
[in,out] | list | address of the metadata list pointer |
References delete_metadata(), and metadata_param::next.
Referenced by delete_cache(), delete_index(), destroy_jpipdecoder(), and handle_JPIPstreamMSG().
boxcontents_param_t* gene_boxcontents | ( | OPJ_OFF_T | offset, |
OPJ_SIZE_T | length | ||
) |
generate box contents
References boxcontents_param::length, and boxcontents_param::offset.
Referenced by const_metadatalist(), and parse_metadata().
metadata_param_t* gene_metadata | ( | Byte8_t | idx, |
boxlist_param_t * | boxlist, | ||
placeholderlist_param_t * | phldlist, | ||
boxcontents_param_t * | boxcontents | ||
) |
generate a metadata bin
[in] | idx | metadata-bin index |
[in] | boxlist | box list pointer |
[in] | phldlist | placeholder list pointer |
[in] | boxcontents | boxcontents pointer |
References metadata_param::boxcontents, metadata_param::boxlist, metadata_param::idx, metadata_param::next, and metadata_param::placeholderlist.
Referenced by const_metadatalist(), and parse_metamsg().
metadatalist_param_t* gene_metadatalist | ( | void | ) |
generate a metadata list
References metadatalist_param::first, and metadatalist_param::last.
Referenced by const_metadatalist(), gene_cache(), handle_JPIPstreamMSG(), and init_jpipdecoder().
void insert_metadata_into_list | ( | metadata_param_t * | metabin, |
metadatalist_param_t * | metadatalist | ||
) |
insert a metadata-bin into list
[in] | metabin | metadata-bin pointer |
[in] | metadatalist | metadata list pointer |
References metadatalist_param::first, metadatalist_param::last, and metadata_param::next.
Referenced by const_metadatalist(), and parse_metamsg().
void print_allmetadata | ( | metadatalist_param_t * | list | ) |
print all metadata parameters
[in] | list | metadata list pointer |
References metadatalist_param::first, logstream, metadata_param::next, and print_metadata().
Referenced by output_log(), and print_index().
void print_metadata | ( | metadata_param_t * | metadata | ) |
print metadata-bin parameters
[in] | metadata | metadata-bin pointer |
References metadata_param::boxcontents, metadata_param::boxlist, metadata_param::idx, boxcontents_param::length, logstream, boxcontents_param::offset, metadata_param::placeholderlist, print_allbox(), and print_allplaceholder().
Referenced by print_allmetadata().
metadata_param_t* search_metadata | ( | Byte8_t | idx, |
metadatalist_param_t * | list | ||
) |
search a metadata bin by index
[in] | idx | index |
[in] | list | metadata-bin list pointer |
References metadatalist_param::first, metadata_param::idx, and metadata_param::next.
Referenced by enqueue_metadata().
Byte8_t search_metadataidx | ( | char | boxtype[4], |
metadatalist_param_t * | list | ||
) |
search a metadata index by box-type
[in] | boxtype | box-type |
[in] | list | metadata-bin list pointer |
References metadata_param::boxlist, boxlist_param::first, metadatalist_param::first, placeholderlist_param::first, metadata_param::idx, box_param::next, metadata_param::next, placeholder_param::next, placeholder_param::OrigBH, placeholder_param::OrigID, metadata_param::placeholderlist, and box_param::type.
Referenced by enqueue_metabins().