Go to the documentation of this file.
32 #ifndef JPIP_PARSER_H_
33 # define JPIP_PARSER_H_
int ox
frame size (fsiz)
Definition: imgreg_manager.h:39
void enqueue_tileheader(int tile_id, msgqueue_param_t *msgqueue)
enqueue tile headers data-bin into message queue
Definition: msgqueue_manager.c:165
int ry
Definition: query_parser.h:51
Cache model parameters.
Definition: cachemodel_manager.h:37
Session parameters.
Definition: session_manager.h:38
OPJ_BOOL delete_session(session_param_t **session, sessionlist_param_t *sessionlist)
delete a session
Definition: session_manager.c:126
target_param_t * search_target(const char targetname[], targetlist_param_t *targetlist)
search a target by target name
Definition: target_manager.c:224
auxiliary transport setting parameters
Definition: auxtrans_manager.h:38
OPJ_BOOL metadata_only
metadata-only request
Definition: query_parser.h:69
index_param_t * codeidx
index information of codestream
Definition: target_manager.h:49
Byte2_t numOflayers
number of layers
Definition: index_manager.h:79
int len
maximum response length
Definition: query_parser.h:71
Byte4_t minvalue
minimal value
Definition: index_manager.h:148
target_param_t * gene_target(targetlist_param_t *targetlist, char *targetpath)
generate a target
Definition: target_manager.c:79
Byte_t Scod
Coding style for all components.
Definition: index_manager.h:77
#define logstream
Definition: jpip_parser.c:45
Byte4_t XTnum
number of tiles in horizontal direction
Definition: index_manager.h:66
OPJ_BOOL close_channel(query_param_t query_param, sessionlist_param_t *sessionlist, session_param_t **cursession, channel_param_t **curchannel)
REQUEST: channel close (cclose)
Definition: jpip_parser.c:131
Byte4_t * XPsiz
dynamic array of precinct width at successive resolution level in order
Definition: index_manager.h:81
range_param_t get_tile_Xrange(SIZmarker_param_t SIZ, Byte4_t tile_id, int level)
get horizontal range of the tile in reference grid
Definition: index_manager.c:729
int fy
frame size (fx,fy)
Definition: query_parser.h:50
channel_param_t * gene_channel(query_param_t query_param, auxtrans_param_t auxtrans, cachemodel_param_t *cachemodel, channellist_param_t *channellist)
generate a channel under the channel list
Definition: channel_manager.c:60
Session list parameters.
Definition: session_manager.h:45
OPJ_BOOL gene_JPIPstream(query_param_t query_param, target_param_t *target, session_param_t *cursession, channel_param_t *curchannel, msgqueue_param_t **msgqueue)
REQUEST: view-window (fsiz)
Definition: jpip_parser.c:204
OPJ_BOOL search_session_and_channel(char cid[], sessionlist_param_t *sessionlist, session_param_t **foundsession, channel_param_t **foundchannel)
search a channel and its belonging session by channel ID
Definition: session_manager.c:80
Byte4_t Xsiz
width of the reference grid
Definition: index_manager.h:58
image_return_t return_type
image return type
Definition: query_parser.h:70
char * cclose
list of closing channel identifiers, separated by '\0'
Definition: query_parser.h:58
index parameters
Definition: index_manager.h:86
Byte8_t get_nmax(faixbox_param_t *faix)
get nmax parameter value from faix box
Definition: faixbox_manager.c:163
range_param_t get_tile_Yrange(SIZmarker_param_t SIZ, Byte4_t tile_id, int level)
get vertical range of the tile in reference grid
Definition: index_manager.c:735
msgqueue_param_t * gene_msgqueue(OPJ_BOOL stateless, cachemodel_param_t *cachemodel)
generate message queue
Definition: msgqueue_manager.c:59
int oy
Definition: imgreg_manager.h:39
Byte4_t Ysiz
height of the reference grid
Definition: index_manager.h:59
faixbox_param_t * tilepart
tile part information from tpix box
Definition: index_manager.h:93
Byte4_t XOsiz
horizontal offset from the origin of the reference grid to the left side of the image area
Definition: index_manager.h:60
int lastcomp
last component number
Definition: query_parser.h:53
OPJ_BOOL jppstream
return type, true: JPP-stream, false: JPT-stream
Definition: cachemodel_manager.h:39
OPJ_BOOL open_channel(query_param_t query_param, sessionlist_param_t *sessionlist, auxtrans_param_t auxtrans, target_param_t *target, session_param_t **cursession, channel_param_t **curchannel)
REQUEST: new channel (cnew) assignment.
Definition: jpip_parser.c:100
session_param_t * gene_session(sessionlist_param_t *sessionlist)
generate a session under the sesion list
Definition: session_manager.c:59
image region parameters
Definition: imgreg_manager.h:35
channel_param_t * search_channel(const char cid[], channellist_param_t *channellist)
search a channel by channel ID
Definition: channel_manager.c:173
int sx
offset (roff)
Definition: imgreg_manager.h:40
int rw
Definition: query_parser.h:51
OPJ_BOOL * comps
components (dynamic array) for jpp-stream, null means all components
Definition: query_parser.h:54
int rh
roi region
Definition: query_parser.h:51
char * target
target name
Definition: query_parser.h:48
Byte4_t YTnum
number of tiles in vertical direction
Definition: index_manager.h:67
int OPJ_BOOL
Definition: openjpeg.h:116
void enqueue_tile(Byte4_t tile_id, int level, msgqueue_param_t *msgqueue)
enqueue tile data-bin into message queue
Definition: msgqueue_manager.c:198
Byte4_t YOsiz
vertical offset from the origin of the reference grid to the top side of the image area
Definition: index_manager.h:61
CODmarker_param_t COD
COD marker information.
Definition: index_manager.h:92
void set_channel_variable_param(query_param_t query_param, channel_param_t *channel)
set channel variable parameters
Definition: channel_manager.c:112
#define MAX_NUMOFBOX
maximum number of meta request box
Definition: query_parser.h:38
void enqueue_precinct(int seq_id, int tile_id, int comp_id, int layers, msgqueue_param_t *msgqueue)
enqueue precinct data-bin into message queue
Definition: msgqueue_manager.c:256
char box_type[MAX_NUMOFBOX][4]
interested box-types
Definition: query_parser.h:60
void enqueue_imagedata(query_param_t query_param, msgqueue_param_t *msgqueue)
enqueue tiles or precincts into the message queue
Definition: jpip_parser.c:300
Byte_t numOfdecomp
number of decompositions levels
Definition: index_manager.h:80
int sy
Definition: imgreg_manager.h:40
int layers
quality layers
Definition: query_parser.h:52
char * cid
channel identifier
Definition: query_parser.h:55
Byte4_t * YPsiz
dynamic array of precinct height at successive resolution level in order
Definition: index_manager.h:82
#define OPJ_TRUE
Definition: openjpeg.h:117
cnew_transport_t cnew
transport name if there is new channel request, else non
Definition: query_parser.h:57
cachemodel_param_t * cachemodel
reference cachemodel pointer
Definition: msgqueue_manager.h:67
void enqueue_metadata(Byte8_t meta_id, msgqueue_param_t *msgqueue)
enqueue Metadata-bin into message queue
Definition: msgqueue_manager.c:323
target_param_t * target
reference pointer to the target
Definition: cachemodel_manager.h:38
uint32_t Byte4_t
Definition: byte_manager.h:39
int level
region size (rsiz)
Definition: imgreg_manager.h:41
OPJ_BOOL enqueue_metabins(query_param_t query_param, metadatalist_param_t *metadatalist, msgqueue_param_t *msgqueue)
enqueue metadata bins into the message queue
Definition: jpip_parser.c:488
imgreg_param_t map_viewin2imgreg(const int fx, const int fy, const int rx, const int ry, const int rw, const int rh, const int XOsiz, const int YOsiz, const int Xsiz, const int Ysiz, const int numOfreslev)
map view-window requests to codestream image resolutions and regions
Definition: imgreg_manager.c:46
Byte4_t get_tile_XSiz(SIZmarker_param_t SIZ, Byte4_t tile_id, int level)
get tile wdith at the decomposition level
Definition: index_manager.c:757
Byte4_t maxvalue
maximal value
Definition: index_manager.h:149
#define FCGI_stderr
Definition: jpip_parser.c:44
SIZmarker_param_t SIZ
SIZ marker information.
Definition: index_manager.h:91
cachemodel_param_t * cachemodel
reference pointer to the cache model
Definition: channel_manager.h:44
void delete_channel(channel_param_t **channel, channellist_param_t *channellist)
delete a channel
Definition: channel_manager.c:121
Byte2_t Csiz
number of the components in the image
Definition: index_manager.h:68
OPJ_BOOL open_channel(query_param_t query_param, sessionlist_param_t *sessionlist, auxtrans_param_t auxtrans, target_param_t *target, session_param_t **cursession, channel_param_t **curchannel)
REQUEST: new channel (cnew) assignment.
Definition: jpip_parser.c:100
cachemodel_param_t * gene_cachemodel(cachemodellist_param_t *cachemodellist, target_param_t *target, OPJ_BOOL reqJPP)
generate a cache model under a list
Definition: cachemodel_manager.c:60
OPJ_BOOL close_channel(query_param_t query_param, sessionlist_param_t *sessionlist, session_param_t **cursession, channel_param_t **curchannel)
REQUEST: channel close (cclose)
Definition: jpip_parser.c:131
Target list parameters.
Definition: target_manager.h:59
char * tid
target identifier
Definition: query_parser.h:49
metadatalist_param_t * metadatalist
metadata-bin list
Definition: index_manager.h:87
OPJ_BOOL associate_channel(query_param_t query_param, sessionlist_param_t *sessionlist, session_param_t **cursession, channel_param_t **curchannel)
REQUEST: channel association this must be processed before any process.
Definition: jpip_parser.c:82
1-dimensional range parameters
Definition: index_manager.h:147
void enqueue_mainheader(msgqueue_param_t *msgqueue)
enqueue main header data-bin into message queue
Definition: msgqueue_manager.c:135
int numOfcclose
number of closing channels
Definition: query_parser.h:59
int xosiz
Definition: imgreg_manager.h:36
target parameters
Definition: target_manager.h:40
Query parameters.
Definition: query_parser.h:47
OPJ_BOOL associate_channel(query_param_t query_param, sessionlist_param_t *sessionlist, session_param_t **cursession, channel_param_t **curchannel)
REQUEST: channel association this must be processed before any process.
Definition: jpip_parser.c:82
message queue parameters
Definition: msgqueue_manager.h:63
void enqueue_precincts(int xmin, int xmax, int ymin, int ymax, int tile_id, int level, int lastcomp, OPJ_BOOL *comps, int layers, msgqueue_param_t *msgqueue)
enqueue precinct data-bins into the queue
Definition: jpip_parser.c:386
#define OPJ_FALSE
Definition: openjpeg.h:118
Byte4_t get_tile_YSiz(SIZmarker_param_t SIZ, Byte4_t tile_id, int level)
Definition: index_manager.c:765
#define FCGI_stdout
Definition: jpip_parser.c:43
@ JPPstream
Definition: query_parser.h:44
void enqueue_allprecincts(int tile_id, int level, int lastcomp, OPJ_BOOL *comps, int layers, msgqueue_param_t *msgqueue)
enqueue all precincts inside a tile into the queue
Definition: jpip_parser.c:452
int yosiz
Definition: imgreg_manager.h:36
OPJ_BOOL mhead_model
main header model, if sent, 1, else 0
Definition: cachemodel_manager.h:40
OPJ_BOOL identify_target(query_param_t query_param, targetlist_param_t *targetlist, target_param_t **target)
REQUEST: target identification by target or tid request.
Definition: jpip_parser.c:49
Channel parameters.
Definition: channel_manager.h:43
uint64_t Byte8_t
Definition: byte_manager.h:40
int rx
Definition: query_parser.h:51
OPJ_BOOL identify_target(query_param_t query_param, targetlist_param_t *targetlist, target_param_t **target)
REQUEST: target identification by target or tid request.
Definition: jpip_parser.c:49
int fx
Definition: query_parser.h:50
target_param_t * search_targetBytid(const char tid[], targetlist_param_t *targetlist)
search a target by tid
Definition: target_manager.c:242
OPJ_BOOL gene_JPIPstream(query_param_t query_param, target_param_t *target, session_param_t *cursession, channel_param_t *curchannel, msgqueue_param_t **msgqueue)
REQUEST: view-window (fsiz)
Definition: jpip_parser.c:204
cachemodel_param_t * search_cachemodel(target_param_t *target, cachemodellist_param_t *cachemodellist)
search a cache model of a target
Definition: cachemodel_manager.c:160