Go to the documentation of this file.
32 #ifndef QUERY_PARSER_H_
33 # define QUERY_PARSER_H_
38 #define MAX_NUMOFBOX 10
struct opj_jp2_box opj_jp2_box_t
JP2 Box.
unsigned char OPJ_BYTE
Definition: openjpeg.h:123
int limit[MAX_NUMOFBOX]
limit value, -1: skeleton request "r", 0: entire contents
Definition: query_parser.h:61
opj_packet_info_t * packet
information concerning packets inside tile
Definition: openjpeg.h:831
int ry
Definition: query_parser.h:51
int numcomps
component numbers
Definition: openjpeg.h:877
int tw
number of tiles in X
Definition: openjpeg.h:873
OPJ_SIZE_T opj_stream_write_data(opj_stream_private_t *p_stream, const OPJ_BYTE *p_buffer, OPJ_SIZE_T p_size, opj_event_mgr_t *p_event_mgr)
Writes some bytes to the stream.
Definition: cio.c:385
void * opj_calloc(size_t num, size_t size)
Allocate a memory block with elements initialized to 0.
Definition: opj_malloc.c:198
void delete_query(query_param_t **query)
delete query
Definition: query_parser.c:449
OPJ_BOOL metadata_only
metadata-only request
Definition: query_parser.h:69
int root_bin
root-bin
Definition: query_parser.h:67
#define MAX_LENOFFIELDVAL
maximum length of field value
Definition: query_parser.c:86
enum image_return image_return_t
image return type
int opj_write_ppix(int coff, opj_codestream_info_t cstr_info, OPJ_BOOL EPHused, int j2klen, opj_stream_private_t *cio, opj_event_mgr_t *p_manager)
Definition: ppix_manager.c:51
int ph[33]
precinct number for each resolution level (height)
Definition: openjpeg.h:825
int max_depth
max-depth
Definition: query_parser.h:68
int len
maximum response length
Definition: query_parser.h:71
void parse_cclose(char *src, query_param_t *query_param)
Definition: query_parser.c:301
int fy
frame size (fx,fy)
Definition: query_parser.h:50
#define MAX_LENOFFIELDNAME
maximum length of field name
Definition: query_parser.c:83
int numlayers
number of layer
Definition: openjpeg.h:879
@ tcp
Definition: query_parser.h:41
int64_t OPJ_OFF_T
Definition: openjpeg.h:136
OPJ_OFF_T opj_stream_skip(opj_stream_private_t *p_stream, OPJ_OFF_T p_size, opj_event_mgr_t *p_event_mgr)
Skips a number of bytes from the stream.
Definition: cio.c:593
OPJ_BOOL opj_stream_seek(opj_stream_private_t *p_stream, OPJ_OFF_T p_size, struct opj_event_mgr *p_event_mgr)
Seeks a number of bytes from the stream.
Definition: cio.c:641
@ OPJ_RLCP
resolution-layer-component-precinct order
Definition: openjpeg.h:306
Message handler object used for.
Definition: event.h:50
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
OPJ_OFF_T opj_stream_tell(const opj_stream_private_t *p_stream)
Tells the byte offset on the stream (similar to ftell).
Definition: cio.c:579
OPJ_UINT32 type
Definition: jp2.h:200
#define logstream
Definition: query_parser.c:54
int lastcomp
last component number
Definition: query_parser.h:53
struct query_param query_param_t
Query parameters.
Byte input-output stream.
Definition: cio.h:81
@ OPJ_CPRL
component-precinct-resolution-layer order
Definition: openjpeg.h:309
query_param_t * parse_query(const char *query_string)
parse query
Definition: query_parser.c:88
@ http
Definition: query_parser.h:41
int rw
Definition: query_parser.h:51
OPJ_OFF_T start_pos
packet start position (including SOP marker if it exists)
Definition: openjpeg.h:768
int opj_write_ppixfaix(int coff, int compno, opj_codestream_info_t cstr_info, OPJ_BOOL EPHused, int j2klen, opj_stream_private_t *cio, opj_event_mgr_t *p_manager)
Definition: ppix_manager.c:104
query_param_t * get_initquery(void)
Get initialized query parameters.
Definition: query_parser.c:170
OPJ_BOOL * comps
components (dynamic array) for jpp-stream, null means all components
Definition: query_parser.h:54
void print_queryparam(query_param_t query_param)
print query parameters
Definition: query_parser.c:238
int rh
roi region
Definition: query_parser.h:51
char * target
target name
Definition: query_parser.h:48
void opj_write_manf(int second, int v, opj_jp2_box_t *box, opj_stream_private_t *cio, opj_event_mgr_t *p_manager)
Definition: cidx_manager.c:157
int OPJ_BOOL
Definition: openjpeg.h:116
size_t OPJ_SIZE_T
Definition: openjpeg.h:139
OPJ_OFF_T end_ph_pos
end of packet header position (including EPH marker if it exists)
Definition: openjpeg.h:770
void print_queryparam(query_param_t query_param)
print query parameters
Definition: query_parser.c:238
@ OPJ_PCRL
precinct-component-resolution-layer order
Definition: openjpeg.h:308
#define MAX_NUMOFBOX
maximum number of meta request box
Definition: query_parser.h:38
char box_type[MAX_NUMOFBOX][4]
interested box-types
Definition: query_parser.h:60
query_param_t * parse_query(const char *query_string)
parse query
Definition: query_parser.c:88
JP2 Box.
Definition: jp2.h:198
@ non
Definition: query_parser.h:41
int layers
quality layers
Definition: query_parser.h:52
@ UNKNOWN
Definition: query_parser.h:44
char * cid
channel identifier
Definition: query_parser.h:55
#define OPJ_TRUE
Definition: openjpeg.h:117
void * opj_malloc(size_t size)
Allocate an uninitialized memory block.
Definition: opj_malloc.c:191
@ udp
Definition: query_parser.h:41
cnew_transport_t cnew
transport name if there is new channel request, else non
Definition: query_parser.h:57
void opj_free(void *ptr)
Deallocates or frees a memory block.
Definition: opj_malloc.c:246
void parse_comps(char *field, query_param_t *query_param)
Definition: query_parser.c:412
image_return
image return type
Definition: query_parser.h:44
@ OPJ_RPCL
resolution-precinct-component-layer order
Definition: openjpeg.h:307
cnew_transport
cnew aux transport name
Definition: query_parser.h:41
void delete_query(query_param_t **query)
delete query
Definition: query_parser.c:449
#define JPIP_PPIX
Definition: indexbox_manager.h:50
Index structure : Information concerning a packet inside tile.
Definition: openjpeg.h:766
void parse_metareq(char *field, query_param_t *query_param)
Definition: query_parser.c:321
OPJ_BOOL a[MAX_NUMOFBOX]
Definition: query_parser.h:65
OPJ_BOOL w[MAX_NUMOFBOX]
Metadata request qualifier flags.
Definition: query_parser.h:62
char * tid
target identifier
Definition: query_parser.h:49
OPJ_UINT32 length
Definition: jp2.h:199
OPJ_PROG_ORDER prog
progression order
Definition: openjpeg.h:863
opj_tile_info_t * tile
information regarding tiles inside image
Definition: openjpeg.h:897
OPJ_OFF_T end_pos
packet end position
Definition: openjpeg.h:772
Index structure of the codestream.
Definition: openjpeg.h:851
void parse_req_box_prop(char *req_box_prop, int idx, query_param_t *query_param)
Definition: query_parser.c:362
uint32_t OPJ_UINT32
Definition: openjpeg.h:132
int numOfcclose
number of closing channels
Definition: query_parser.h:59
Query parameters.
Definition: query_parser.h:47
Index structure : information regarding tiles.
Definition: openjpeg.h:811
#define OPJ_FALSE
Definition: openjpeg.h:118
OPJ_BOOL s[MAX_NUMOFBOX]
Definition: query_parser.h:63
@ OPJ_LRCP
layer-resolution-component-precinct order
Definition: openjpeg.h:305
OPJ_BOOL g[MAX_NUMOFBOX]
Definition: query_parser.h:64
@ JPPstream
Definition: query_parser.h:44
#define JPIP_FAIX
Definition: indexbox_manager.h:46
int * numdecompos
number of decomposition for each component
Definition: openjpeg.h:881
#define opj_write_bytes
Definition: cio.h:64
@ JPTstream
Definition: query_parser.h:44
int th
number of tiles in Y
Definition: openjpeg.h:875
int rx
Definition: query_parser.h:51
OPJ_BOOL priority[MAX_NUMOFBOX]
priority flag
Definition: query_parser.h:66
int fx
Definition: query_parser.h:50
char * get_fieldparam(const char *stringptr, char *fieldname, char *fieldval)
Definition: query_parser.c:211
enum cnew_transport cnew_transport_t
cnew aux transport name
int pw[33]
precinct number for each resolution level (width)
Definition: openjpeg.h:823