OpenJPEG  2.2.0
Macros | Functions
codestream_manager.c File Reference
#include <stdio.h>
#include "codestream_manager.h"
#include "opj_inttypes.h"

Macros

#define FCGI_stdout   stdout
 
#define FCGI_stderr   stderr
 
#define logstream   stderr
 

Functions

codestream_param_t set_codestream (int fd, OPJ_OFF_T offset, OPJ_SIZE_T length)
 set codestream parameters from inputs More...
 
Byte_tfetch_codestreambytes (codestream_param_t *cs, OPJ_OFF_T offset, OPJ_SIZE_T size)
 fetch Codestream bytes of data in file stream More...
 
Byte_t fetch_codestream1byte (codestream_param_t *cs, OPJ_OFF_T offset)
 fetch Codestream 1-byte Byte code in file stream More...
 
Byte2_t fetch_codestream2bytebigendian (codestream_param_t *cs, OPJ_OFF_T offset)
 fetch Codestream 2-byte big endian Byte codes in file stream More...
 
Byte4_t fetch_codestream4bytebigendian (codestream_param_t *cs, OPJ_OFF_T offset)
 fetch Codestream 4-byte big endian Byte codes in file stream More...
 
void print_codestream (codestream_param_t cs)
 print codestream parameters More...
 

Macro Definition Documentation

#define FCGI_stderr   stderr
#define FCGI_stdout   stdout
#define logstream   stderr

Referenced by print_codestream().

Function Documentation

Byte_t fetch_codestream1byte ( codestream_param_t cs,
OPJ_OFF_T  offset 
)

fetch Codestream 1-byte Byte code in file stream

Parameters
[in]cscodestream pointer
[in]offsetstart Byte position in codestream
Returns
fetched code

References codestream_param::fd, fetch_1byte(), and codestream_param::offset.

Referenced by fetch_marker1byte().

Byte2_t fetch_codestream2bytebigendian ( codestream_param_t cs,
OPJ_OFF_T  offset 
)

fetch Codestream 2-byte big endian Byte codes in file stream

Parameters
[in]cscodestream pointer
[in]offsetstart Byte position in codestream
Returns
fetched code

References codestream_param::fd, fetch_2bytebigendian(), and codestream_param::offset.

Referenced by fetch_marker2bytebigendian().

Byte4_t fetch_codestream4bytebigendian ( codestream_param_t cs,
OPJ_OFF_T  offset 
)

fetch Codestream 4-byte big endian Byte codes in file stream

Parameters
[in]cscodestream pointer
[in]offsetstart Byte position in codestream
Returns
fetched code

References codestream_param::fd, fetch_4bytebigendian(), and codestream_param::offset.

Referenced by fetch_marker4bytebigendian().

Byte_t* fetch_codestreambytes ( codestream_param_t cs,
OPJ_OFF_T  offset,
OPJ_SIZE_T  size 
)

fetch Codestream bytes of data in file stream

Parameters
[in]cscodestream pointer
[in]offsetstart Byte position in codestream
[in]sizeByte length
Returns
pointer to the fetched data

References codestream_param::fd, fetch_bytes(), and codestream_param::offset.

void print_codestream ( codestream_param_t  cs)

print codestream parameters

Parameters
[in]cscodestream

References codestream_param::fd, codestream_param::length, logstream, and codestream_param::offset.

codestream_param_t set_codestream ( int  fd,
OPJ_OFF_T  offset,
OPJ_SIZE_T  length 
)

set codestream parameters from inputs

Parameters
[in]fdfile descriptor
[in]offsetoffset in the file
[in]lengthcodestream length
Returns
structure of generated codestream parameters

References codestream_param::fd, codestream_param::length, and codestream_param::offset.

Referenced by set_cidxdata().