Go to the documentation of this file.
32 #ifndef JP2K_ENCODER_H_
33 # define JP2K_ENCODER_H_
50 int fw,
int fh,
Byte8_t *j2klen);
#define METADATA_MSG
Definition: msgqueue_manager.h:45
int comp_numOfprcts(Byte8_t tileID, SIZmarker_param_t SIZ, CODmarker_param_t COD, int r)
Definition: jp2k_encoder.c:576
#define TILE_MSG
Definition: msgqueue_manager.h:42
Byte_t * add_padding(Byte8_t padding, Byte_t *j2kstream, Byte8_t *j2klen)
Definition: jp2k_encoder.c:826
Byte_t * gene_emptytilestream(const Byte8_t tileID, Byte8_t *length)
Definition: jp2k_encoder.c:880
Byte2_t numOflayers
number of layers
Definition: index_manager.h:79
Byte_t * recons_codestream_from_JPTstream(msgqueue_param_t *msgqueue, Byte_t *jpipstream, Byte8_t csn, int fw, int fh, Byte8_t *j2klen)
Definition: jp2k_encoder.c:189
Byte_t OrigBHlen
length of OrigBH
Definition: placeholder_manager.h:45
Byte_t Scod
Coding style for all components.
Definition: index_manager.h:77
Byte_t * recons_j2kmainhead(msgqueue_param_t *msgqueue, Byte_t *jpipstream, Byte8_t csn, Byte8_t *j2klen)
reconstruct j2k codestream of mainheader from message queue
Definition: jp2k_encoder.c:906
Byte4_t XTnum
number of tiles in horizontal direction
Definition: index_manager.h:66
void delete_COD(CODmarker_param_t COD)
delete dynamic arrays in COD marker
Definition: index_manager.c:215
Byte4_t big4(Byte_t *buf)
convert 4-byte big endian Byte codes to number
Definition: byte_manager.c:147
Byte4_t * XPsiz
dynamic array of precinct width at successive resolution level in order
Definition: index_manager.h:81
#define EXT_TILE_MSG
Definition: msgqueue_manager.h:43
A.3.6.3 Placeholder box format.
Definition: placeholder_manager.h:39
uint8_t Byte_t
Definition: byte_manager.h:37
Byte_t * recons_jp2(msgqueue_param_t *msgqueue, Byte_t *jpipstream, Byte8_t csn, Byte8_t *jp2len)
reconstruct jp2 file codestream from message queue
Definition: jp2k_encoder.c:98
#define PRECINCT_MSG
Definition: msgqueue_manager.h:39
Byte_t * recons_CPRLbitstream(msgqueue_param_t *msgqueue, Byte_t *jpipstream, Byte_t *j2kstream, Byte8_t csn, Byte8_t tileID, SIZmarker_param_t SIZ, CODmarker_param_t COD, int mindeclev, int *max_reslev, Byte8_t *j2klen)
Definition: jp2k_encoder.c:542
Byte4_t Xsiz
width of the reference grid
Definition: index_manager.h:58
@ OPJ_RLCP
resolution-layer-component-precinct order
Definition: openjpeg.h:306
OPJ_PROG_ORDER prog_order
progression order
Definition: index_manager.h:78
Byte8_t comp_precinct_id(int t, int c, int s, int num_components, int num_tiles)
compute precinct ID A.3.2.1
Definition: msgqueue_manager.c:311
Byte_t * recons_j2k(msgqueue_param_t *msgqueue, Byte_t *jpipstream, Byte8_t csn, int fw, int fh, Byte8_t *j2klen)
reconstruct j2k codestream from message queue
Definition: jp2k_encoder.c:79
Byte4_t Ysiz
height of the reference grid
Definition: index_manager.h:59
Byte_t * add_EOC(Byte_t *j2kstream, Byte8_t *j2klen)
Definition: jp2k_encoder.c:844
@ OPJ_CPRL
component-precinct-resolution-layer order
Definition: openjpeg.h:309
#define FCGI_stderr
Definition: jp2k_encoder.c:48
OPJ_BOOL last_byte
if message contains the last byte of the data-bin
Definition: msgqueue_manager.h:50
Byte8_t length
message byte length
Definition: msgqueue_manager.h:55
Byte4_t YTnum
number of tiles in vertical direction
Definition: index_manager.h:67
int OPJ_BOOL
Definition: openjpeg.h:116
size_t OPJ_SIZE_T
Definition: openjpeg.h:139
Byte8_t bin_offset
offset of the data in this message from the start of the data-bin
Definition: msgqueue_manager.h:54
A.6.1 Coding style default (COD)
Definition: index_manager.h:75
@ OPJ_PCRL
precinct-component-resolution-layer order
Definition: openjpeg.h:308
message parameters
Definition: msgqueue_manager.h:48
Byte_t * add_SOTmkr(Byte_t *j2kstream, Byte8_t *j2klen)
Definition: jp2k_encoder.c:345
Byte_t numOfdecomp
number of decompositions levels
Definition: index_manager.h:80
Byte8_t comp_seqID(Byte8_t tileID, SIZmarker_param_t SIZ, CODmarker_param_t COD, int r, int p)
Definition: jp2k_encoder.c:675
int comp_decomplev(int fw, int fh, int Xsiz, int Ysiz)
compute decomposition level (only to get the level use find_level for all parameters
Definition: imgreg_manager.c:134
Byte4_t * YPsiz
dynamic array of precinct height at successive resolution level in order
Definition: index_manager.h:82
struct message_param * next
pointer to the next message
Definition: msgqueue_manager.h:59
Byte_t * recons_precinct(msgqueue_param_t *msgqueue, Byte_t *jpipstream, Byte_t *j2kstream, Byte8_t csn, Byte8_t tileID, SIZmarker_param_t SIZ, CODmarker_param_t COD, int *max_reslev, int comp_idx, int res_idx, Byte8_t seqID, Byte8_t *j2klen)
Definition: jp2k_encoder.c:636
#define OPJ_TRUE
Definition: openjpeg.h:117
Byte_t * recons_packet(msgqueue_param_t *msgqueue, Byte_t *jpipstream, Byte_t *j2kstream, Byte8_t csn, Byte8_t tileID, SIZmarker_param_t SIZ, CODmarker_param_t COD, int *max_reslev, int comp_idx, int res_idx, int prct_idx, int lay_idx, Byte8_t *j2klen)
Definition: jp2k_encoder.c:593
void * opj_malloc(size_t size)
Allocate an uninitialized memory block.
Definition: opj_malloc.c:191
uint32_t Byte4_t
Definition: byte_manager.h:39
void opj_free(void *ptr)
Deallocates or frees a memory block.
Definition: opj_malloc.c:246
OPJ_OFF_T res_offset
offset in the resource
Definition: msgqueue_manager.h:57
Byte_t * recons_codestream(msgqueue_param_t *msgqueue, Byte_t *jpipstream, Byte8_t csn, int fw, int fh, Byte8_t *codelen)
reconstruct j2k codestream from JPT- (in future, JPP-) stream
Definition: jp2k_encoder.c:149
Byte_t * recons_jp2(msgqueue_param_t *msgqueue, Byte_t *jpipstream, Byte8_t csn, Byte8_t *jp2len)
reconstruct jp2 file codestream from message queue
Definition: jp2k_encoder.c:98
@ OPJ_RPCL
resolution-precinct-component-layer order
Definition: openjpeg.h:307
Byte_t * gene_msgstream(message_param_t *message, Byte_t *stream, Byte8_t *length)
Definition: jp2k_encoder.c:864
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
Byte8_t in_class_id
in-class identifier A.2.3
Definition: msgqueue_manager.h:51
Byte8_t aux
Definition: msgqueue_manager.h:56
Byte_t * recons_LRCPbitstream(msgqueue_param_t *msgqueue, Byte_t *jpipstream, Byte_t *j2kstream, Byte8_t csn, Byte8_t tileID, SIZmarker_param_t SIZ, CODmarker_param_t COD, int mindeclev, int *max_reslev, Byte8_t *j2klen)
Definition: jp2k_encoder.c:426
Byte8_t csn
index of the codestream
Definition: msgqueue_manager.h:53
progression order
Definition: index_manager.h:55
Byte8_t big8(Byte_t *buf)
convert 8-byte big endian Byte codes to number
Definition: byte_manager.c:153
Byte_t * add_msgstream(message_param_t *message, Byte_t *origstream, Byte_t *j2kstream, Byte8_t *j2klen)
Definition: jp2k_encoder.c:741
Byte_t * recons_RPCLbitstream(msgqueue_param_t *msgqueue, Byte_t *jpipstream, Byte_t *j2kstream, Byte8_t csn, Byte8_t tileID, SIZmarker_param_t SIZ, CODmarker_param_t COD, int mindeclev, int *max_reslev, Byte8_t *j2klen)
Definition: jp2k_encoder.c:481
Byte2_t Csiz
number of the components in the image
Definition: index_manager.h:68
#define MAINHEADER_MSG
Definition: msgqueue_manager.h:44
Byte8_t class_id
class identifiers
Definition: msgqueue_manager.h:52
message queue parameters
Definition: msgqueue_manager.h:63
Byte8_t get_last_tileID(msgqueue_param_t *msgqueue, Byte8_t csn, OPJ_BOOL isJPPstream)
Definition: jp2k_encoder.c:692
uint16_t Byte2_t
Definition: byte_manager.h:38
Byte_t * recons_bitstream(msgqueue_param_t *msgqueue, Byte_t *jpipstream, Byte_t *j2kstream, Byte8_t csn, Byte8_t tileID, SIZmarker_param_t SIZ, CODmarker_param_t COD, int mindeclev, int *max_reslev, Byte8_t *j2klen)
Definition: jp2k_encoder.c:389
placeholder_param_t * phld
placeholder pointer in index
Definition: msgqueue_manager.h:58
Byte_t * recons_RLCPbitstream(msgqueue_param_t *msgqueue, Byte_t *jpipstream, Byte_t *j2kstream, Byte8_t csn, Byte8_t tileID, SIZmarker_param_t SIZ, CODmarker_param_t COD, int mindeclev, int *max_reslev, Byte8_t *j2klen)
Definition: jp2k_encoder.c:451
#define OPJ_FALSE
Definition: openjpeg.h:118
Byte_t * recons_j2k(msgqueue_param_t *msgqueue, Byte_t *jpipstream, Byte8_t csn, int fw, int fh, Byte8_t *j2klen)
reconstruct j2k codestream from message queue
Definition: jp2k_encoder.c:79
Byte_t * add_mainhead_msgstream(msgqueue_param_t *msgqueue, Byte_t *origstream, Byte_t *j2kstream, Byte8_t csn, Byte8_t *j2klen)
Definition: jp2k_encoder.c:325
Byte_t * recons_codestream_from_JPPstream(msgqueue_param_t *msgqueue, Byte_t *jpipstream, Byte8_t csn, int fw, int fh, Byte8_t *j2klen)
Definition: jp2k_encoder.c:257
Byte4_t get_tile_YSiz(SIZmarker_param_t SIZ, Byte4_t tile_id, int level)
Definition: index_manager.c:765
Byte_t * add_emptytilestream(const Byte8_t tileID, Byte_t *j2kstream, Byte8_t *j2klen)
Definition: jp2k_encoder.c:802
@ OPJ_LRCP
layer-resolution-component-precinct order
Definition: openjpeg.h:305
OPJ_BOOL isJPPstream(Byte8_t csn, msgqueue_param_t *msgqueue)
Definition: jp2k_encoder.c:161
Byte_t * recons_PCRLbitstream(msgqueue_param_t *msgqueue, Byte_t *jpipstream, Byte_t *j2kstream, Byte8_t csn, Byte8_t tileID, SIZmarker_param_t SIZ, CODmarker_param_t COD, int mindeclev, int *max_reslev, Byte8_t *j2klen)
Definition: jp2k_encoder.c:507
Byte_t * recons_j2kmainhead(msgqueue_param_t *msgqueue, Byte_t *jpipstream, Byte8_t csn, Byte8_t *j2klen)
reconstruct j2k codestream of mainheader from message queue
Definition: jp2k_encoder.c:906
uint64_t Byte8_t
Definition: byte_manager.h:40
#define TILE_HEADER_MSG
Definition: msgqueue_manager.h:41
message_param_t * search_message(Byte8_t class_id, Byte8_t in_class_id, Byte8_t csn, message_param_t *msg)
search a message by class_id
Definition: jp2k_encoder.c:717
Byte_t * OrigBH
dynamic memory pointer
Definition: placeholder_manager.h:44
message_param_t * first
first message pointer of the list
Definition: msgqueue_manager.h:64
Byte_t * add_emptyboxstream(placeholder_param_t *phld, Byte_t *jp2stream, Byte8_t *jp2len)
Definition: jp2k_encoder.c:770