OpenJPEG  2.1.0
Data Structures | Typedefs | Functions
cachemodel_manager.h File Reference
#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_tgene_cachemodellist (void)
 generate a cache model list More...
 
cachemodel_param_tgene_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_tsearch_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 Documentation

Cache model parameters.

Cache model list parameters.

Function Documentation

void delete_cachemodel ( cachemodel_param_t **  cachemodel)

delete a cache model

Parameters
[in]cachemodeladdress 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

Parameters
[in,out]cachemodellistaddress 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

Parameters
[in]cachemodellistcachemodel list to insert the generated cache model, NULL for stateless
[in]targetpointer the reference target
[in]reqJPPif JPP-stream is desired true, JPT-stream false
Returns
pointer to the generated cache model

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

Returns
pointer to the generated 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)
void print_cachemodel ( cachemodel_param_t  cachemodel)
cachemodel_param_t* search_cachemodel ( target_param_t target,
cachemodellist_param_t cachemodellist 
)

search a cache model of a target

Parameters
[in]targetrefering target
[in]cachemodellistcache model list
Returns
found cache model pointer

References cachemodellist_param::first, cachemodel_param::next, and cachemodel_param::target.

Referenced by open_channel().