OpenJPEG
2.2.0
|
#include "target_manager.h"
Go to the source code of this file.
Data Structures | |
struct | cachemodel_param |
Cache model parameters. More... | |
struct | cachemodellist_param |
Cache model list parameters. More... | |
Typedefs | |
typedef struct cachemodel_param | cachemodel_param_t |
Cache model parameters. More... | |
typedef struct cachemodellist_param | cachemodellist_param_t |
Cache model list parameters. More... | |
Functions | |
cachemodellist_param_t * | gene_cachemodellist (void) |
generate a cache model list More... | |
cachemodel_param_t * | gene_cachemodel (cachemodellist_param_t *cachemodellist, target_param_t *target, OPJ_BOOL reqJPP) |
generate a cache model under a list More... | |
void | print_cachemodel (cachemodel_param_t cachemodel) |
print cache model More... | |
cachemodel_param_t * | search_cachemodel (target_param_t *target, cachemodellist_param_t *cachemodellist) |
search a cache model of a target More... | |
OPJ_BOOL | is_allsent (cachemodel_param_t cachemodel) |
check if all data has been sent More... | |
void | delete_cachemodel (cachemodel_param_t **cachemodel) |
delete a cache model More... | |
void | delete_cachemodellist (cachemodellist_param_t **cachemodellist) |
delete cachemodel list More... | |
typedef struct cachemodel_param cachemodel_param_t |
Cache model parameters.
typedef struct cachemodellist_param cachemodellist_param_t |
Cache model list parameters.
void delete_cachemodel | ( | cachemodel_param_t ** | cachemodel | ) |
delete a cache model
[in] | cachemodel | address of the cachemodel pointer |
References logstream, opj_free(), and unrefer_target().
Referenced by delete_cachemodellist(), and delete_msgqueue().
void delete_cachemodellist | ( | cachemodellist_param_t ** | cachemodellist | ) |
delete cachemodel list
[in,out] | cachemodellist | address of the cachemodel list pointer |
References delete_cachemodel(), cachemodel_param::next, and opj_free().
Referenced by delete_session(), and delete_sessionlist().
cachemodel_param_t* gene_cachemodel | ( | cachemodellist_param_t * | cachemodellist, |
target_param_t * | target, | ||
OPJ_BOOL | reqJPP | ||
) |
generate a cache model under a list
[in] | cachemodellist | cachemodel list to insert the generated cache model, NULL for stateless |
[in] | target | pointer the reference target |
[in] | reqJPP | if JPP-stream is desired true, JPT-stream false |
References target_param::codeidx, SIZmarker_param::Csiz, cachemodellist_param::first, get_m(), get_nmax(), cachemodel_param::jppstream, target_param::jppstream, target_param::jptstream, cachemodellist_param::last, logstream, cachemodel_param::mhead_model, cachemodel_param::next, opj_calloc(), OPJ_FALSE, opj_malloc(), OPJ_TRUE, cachemodel_param::pp_model, index_param::precpacket, refer_target(), index_param::SIZ, cachemodel_param::target, cachemodel_param::th_model, index_param::tilepart, and cachemodel_param::tp_model.
Referenced by gene_JPIPstream(), and open_channel().
cachemodellist_param_t* gene_cachemodellist | ( | void | ) |
generate a cache model list
References cachemodellist_param::first, cachemodellist_param::last, and opj_malloc().
Referenced by gene_session().
OPJ_BOOL is_allsent | ( | cachemodel_param_t | cachemodel | ) |
check if all data has been sent
[in] | cachemodel | cache model |
References target_param::codeidx, SIZmarker_param::Csiz, get_nmax(), cachemodel_param::jppstream, cachemodel_param::mhead_model, OPJ_FALSE, OPJ_TRUE, cachemodel_param::pp_model, index_param::precpacket, index_param::SIZ, cachemodel_param::target, cachemodel_param::th_model, index_param::tilepart, cachemodel_param::tp_model, SIZmarker_param::XTnum, and SIZmarker_param::YTnum.
void print_cachemodel | ( | cachemodel_param_t | cachemodel | ) |
print cache model
[in] | cachemodel | cache model |
References target_param::codeidx, SIZmarker_param::Csiz, get_nmax(), logstream, cachemodel_param::mhead_model, cachemodel_param::pp_model, index_param::precpacket, index_param::SIZ, cachemodel_param::target, target_param::targetname, cachemodel_param::th_model, index_param::tilepart, cachemodel_param::tp_model, SIZmarker_param::XTnum, and SIZmarker_param::YTnum.
cachemodel_param_t* search_cachemodel | ( | target_param_t * | target, |
cachemodellist_param_t * | cachemodellist | ||
) |
search a cache model of a target
[in] | target | referring target |
[in] | cachemodellist | cache model list |
References cachemodellist_param::first, cachemodel_param::next, and cachemodel_param::target.
Referenced by open_channel().