OpenJPEG  2.5.0
Macros | Functions
cachemodel_manager.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include "cachemodel_manager.h"
#include "faixbox_manager.h"
#include "opj_inttypes.h"

Macros

#define FCGI_stdout   stdout
 
#define FCGI_stderr   stderr
 
#define logstream   stderr
 

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...
 
void delete_cachemodellist (cachemodellist_param_t **cachemodellist)
 delete cachemodel list More...
 
void delete_cachemodel (cachemodel_param_t **cachemodel)
 delete a cache model More...
 
OPJ_BOOL is_allsent (cachemodel_param_t cachemodel)
 check if all data has been sent More...
 

Macro Definition Documentation

◆ FCGI_stderr

#define FCGI_stderr   stderr

◆ FCGI_stdout

#define FCGI_stdout   stdout

◆ logstream

#define logstream   stderr

Function Documentation

◆ delete_cachemodel()

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().

◆ delete_cachemodellist()

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().

◆ gene_cachemodel()

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().

◆ gene_cachemodellist()

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().

◆ is_allsent()

OPJ_BOOL is_allsent ( cachemodel_param_t  cachemodel)

◆ print_cachemodel()

void print_cachemodel ( cachemodel_param_t  cachemodel)

◆ search_cachemodel()

cachemodel_param_t* search_cachemodel ( target_param_t target,
cachemodellist_param_t cachemodellist 
)

search a cache model of a target

Parameters
[in]targetreferring 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().