#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "auxtrans_manager.h"
#include <pthread.h>
|
auxtrans_param_t | init_aux_transport (int tcp_auxport, int udp_auxport) |
| Initialize auxiliary transport server of JPIP server. More...
|
|
aux_response_param_t * | gene_auxresponse (OPJ_BOOL istcp, auxtrans_param_t auxtrans, const char cid[], void *data, OPJ_SIZE_T datalen, OPJ_SIZE_T maxlenPerFrame) |
|
void | delete_auxresponse (aux_response_param_t **auxresponse) |
|
void * | aux_streaming (void *arg) |
|
void | send_responsedata_on_aux (OPJ_BOOL istcp, auxtrans_param_t auxtrans, const char cid[], void *data, OPJ_SIZE_T datalen, OPJ_SIZE_T maxlenPerFrame) |
| Send response data on aux transport. More...
|
|
OPJ_BOOL | identify_cid (SOCKET connected_socket, char refcid[], FILE *fp) |
| Identify cid sent from client. More...
|
|
OPJ_BOOL | recv_ack (SOCKET connected_socket, void *data) |
|
◆ FCGI_stderr
#define FCGI_stderr stderr |
◆ FCGI_stdout
#define FCGI_stdout stdout |
◆ logstream
◆ aux_response_param_t
◆ aux_streaming()
void * aux_streaming |
( |
void * |
arg | ) |
|
References accept_socket(), aux_response_param::cid, close_socket(), aux_response_param::data, aux_response_param::datalen, delete_auxresponse(), FCGI_stderr, identify_cid(), aux_response_param::listensock, aux_response_param::maxlenPerFrame, opj_free(), opj_malloc(), recv_ack(), and send_stream().
Referenced by send_responsedata_on_aux().
◆ delete_auxresponse()
◆ gene_auxresponse()
◆ identify_cid()
OPJ_BOOL identify_cid |
( |
SOCKET |
connected_socket, |
|
|
char |
refcid[], |
|
|
FILE * |
fp |
|
) |
| |
Identify cid sent from client.
- Parameters
-
[in] | connected_socket | file descriptor of the connected socket |
[in] | refcid | refenrece channel ID |
[in] | fp | file pointer for log of aux stream |
- Returns
- true if identified, false otherwise
References OPJ_FALSE, opj_free(), OPJ_TRUE, and receive_string().
Referenced by aux_streaming().
◆ init_aux_transport()
◆ recv_ack()
◆ send_responsedata_on_aux()
unsigned char OPJ_BYTE
Definition: openjpeg.h:123
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
#define MAX(a, b)
Definition: tpix_manager.c:38
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
Message handler object used for.
Definition: event.h:50
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
Byte input-output stream.
Definition: cio.h:81
int opj_write_tpix(int coff, opj_codestream_info_t cstr_info, int j2klen, opj_stream_private_t *cio, opj_event_mgr_t *p_manager)
Definition: tpix_manager.c:60
int opj_write_tpixfaix(int coff, int compno, opj_codestream_info_t cstr_info, int j2klen, opj_stream_private_t *cio, opj_event_mgr_t *p_manager)
Definition: tpix_manager.c:86
int tp_start_pos
start position of tile part
Definition: openjpeg.h:797
Index structure : Information concerning tile-parts.
Definition: openjpeg.h:795
int num_tps
number of tile parts
Definition: openjpeg.h:843
#define JPIP_TPIX
Definition: indexbox_manager.h:48
opj_tile_info_t * tile
information regarding tiles inside image
Definition: openjpeg.h:897
Index structure of the codestream.
Definition: openjpeg.h:851
uint32_t OPJ_UINT32
Definition: openjpeg.h:132
opj_tp_info_t * tp
information concerning tile parts
Definition: openjpeg.h:845
#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
int th
number of tiles in Y
Definition: openjpeg.h:875
int tp_end_pos
end position of tile part
Definition: openjpeg.h:801
int get_num_max_tile_parts(opj_codestream_info_t cstr_info)
Definition: tpix_manager.c:181