43 #include "fcgi_stdio.h"
44 #define logstream FCGI_stdout
48 #define FCGI_stdout stdout
49 #define FCGI_stderr stderr
50 #define logstream stderr
71 typedef struct server_record {
91 server_record_t * init_JPIPserver(
int tcp_auxport,
int udp_auxport);
98 void terminate_JPIPserver(server_record_t **rec);
106 QR_t * parse_querystring(
const char *query_string);
115 OPJ_BOOL process_JPIPrequest(server_record_t *rec, QR_t *qr);
123 void send_responsedata(server_record_t *rec, QR_t *qr);
131 void end_QRprocess(server_record_t *rec, QR_t **qr);
144 OPJ_BOOL targets, QR_t *qr, server_record_t *rec);
metadatalist_param_t * metadatalist
metadata list going into JP2 file
Definition: openjpip.h:221
index_param_t index_t
Redefinition of index parameters.
Definition: openjpip.h:285
uint8_t Byte_t
Definition: byte_manager.h:37
message queue parameters
Definition: msgqueue_manager.h:63
Byte8_t jpiplen
length of jpipstream
Definition: openjpip.h:219
OPJ_SIZE_T jpipstreamlen
length of jpipstream
Definition: openjpip.h:160
Decoding server static records.
Definition: openjpip.h:157
OPJ_API client_t OPJ_CALLCONV accept_connection(dec_server_record_t *rec)
Accept client connection.
Definition: openjpip.c:260
int OPJ_BOOL
Definition: openjpeg.h:110
OPJ_API OPJ_BOOL OPJ_CALLCONV handle_clientreq(client_t client, dec_server_record_t *rec)
Handle client request.
Definition: openjpip.c:272
OPJ_API void OPJ_CALLCONV destroy_jpipdecoder(jpip_dec_param_t **dec)
Destroy jpip decoding parameters.
Definition: openjpip.c:433
OPJ_API void OPJ_CALLCONV output_log(OPJ_BOOL messages, OPJ_BOOL metadata, OPJ_BOOL ihdrbox, jpip_dec_param_t *dec)
Option; print out parameter values to stderr.
Definition: openjpip.c:416
Byte8_t jp2klen
length of j2kstream or JP2 file
Definition: openjpip.h:224
OPJ_API void OPJ_CALLCONV output_index(index_t *index)
print index parameters
Definition: openjpip.c:479
ihdrbox_param_t * ihdrbox
ihdr box going into JP2 file
Definition: openjpip.h:222
Definition: cache_manager.h:50
cachelist_param_t * cachelist
cache list
Definition: openjpip.h:158
OPJ_API index_t *OPJ_CALLCONV get_index_from_JP2file(int fd)
Parse JP2 file and get index information from cidx box inside.
Definition: openjpip.c:446
size_t OPJ_SIZE_T
Definition: openjpeg.h:133
msgqueue_param_t * msgqueue
parsed message queue of jpipstream
Definition: openjpip.h:161
Byte_t * jp2kstream
J2K codestream or JP2 file codestream.
Definition: openjpip.h:223
Target list parameters.
Definition: target_manager.h:59
OPJ_API void OPJ_CALLCONV destroy_index(index_t **idx)
Destroy index parameters.
Definition: openjpip.c:474
Byte_t * jpipstream
JPT/JPP stream.
Definition: openjpip.h:159
int SOCKET
Definition: sock_manager.h:40
auxiliary transport setting parameters
Definition: auxtrans_manager.h:38
OPJ_API void OPJ_CALLCONV decode_jpip(jpip_dec_param_t *dec)
Decode jpip codestream.
Definition: openjpip.c:376
index parameters
Definition: index_manager.h:86
OPJ_API void OPJ_CALLCONV terminate_dec_server(dec_server_record_t **rec)
Terminate the image decoding server.
Definition: openjpip.c:244
msgqueue_param_t * msgqueue
message queue
Definition: openjpip.h:220
Query parameters.
Definition: query_parser.h:47
SOCKET listening_socket
listenning socket
Definition: openjpip.h:162
OPJ_API dec_server_record_t *OPJ_CALLCONV init_dec_server(int port)
Initialize the image decoding server.
Definition: openjpip.c:230
Byte_t * jpipstream
JPT/JPP-stream.
Definition: openjpip.h:218
JPIP decoding parameters.
Definition: openjpip.h:217
Session list parameters.
Definition: session_manager.h:45
struct jpip_dec_param jpip_dec_param_t
JPIP decoding parameters.
#define OPJ_CALLCONV
Definition: openjpeg.h:92
OPJ_API OPJ_BOOL OPJ_CALLCONV fread_jpip(const char fname[], jpip_dec_param_t *dec)
Read jpip codestream from a file.
Definition: openjpip.c:350
I.5.3.1 Image Header box.
Definition: ihdrbox_manager.h:39
#define OPJ_API
Definition: openjpeg.h:89
OPJ_API jpip_dec_param_t *OPJ_CALLCONV init_jpipdecoder(OPJ_BOOL jp2)
Initialize jpip decoder.
Definition: openjpip.c:334
OPJ_API OPJ_BOOL OPJ_CALLCONV fwrite_jp2k(const char fname[], jpip_dec_param_t *dec)
Write J2K/JP2 codestream to a file.
Definition: openjpip.c:394
SOCKET client_t
Client socket identifier.
Definition: openjpip.h:167
struct dec_server_record dec_server_record_t
Decoding server static records.
uint64_t Byte8_t
Definition: byte_manager.h:40
Channel parameters.
Definition: channel_manager.h:43