OpenJPEG 1.5.1
Macros
cio.h File Reference

Implementation of a byte input-output process (CIO) More...

Go to the source code of this file.

Macros

#define int64   long long
 

Functions

Exported functions (see also openjpeg.h)
int cio_numbytesleft (opj_cio_t *cio)
 Number of bytes left before the end of the stream.
 
unsigned char * cio_getbp (opj_cio_t *cio)
 Get pointer to the current position in the stream.
 
unsigned int cio_write (opj_cio_t *cio, unsigned int64 v, int n)
 Write some bytes.
 
unsigned int cio_read (opj_cio_t *cio, int n)
 Read some bytes.
 
void cio_skip (opj_cio_t *cio, int n)
 Skip some bytes.
 

Detailed Description

Implementation of a byte input-output process (CIO)

The functions in CIO.C have for goal to realize a byte input / output process.

Macro Definition Documentation

◆ int64

#define int64   long long

Function Documentation

◆ cio_getbp()

unsigned char * cio_getbp ( opj_cio_t cio)

Get pointer to the current position in the stream.

Parameters
cioCIO handle
Returns
Returns a pointer to the current position

References opj_cio::bp.

Referenced by j2k_read_sod(), j2k_read_sot(), j2k_write_sod(), jp2_read_colr(), jpwl_dump_marks(), and jpwl_prepare_marks().

◆ cio_numbytesleft()

int cio_numbytesleft ( opj_cio_t cio)

Number of bytes left before the end of the stream.

Parameters
cioCIO handle
Returns
Returns the number of bytes before the end of the stream

References opj_cio::bp, and opj_cio::end.

Referenced by j2k_decode(), j2k_decode_jpt_stream(), j2k_read_soc(), j2k_read_sod(), j2k_read_sot(), j2k_write_sod(), jp2_read_boxhdr(), jp2_read_ftyp(), and jpwl_epb_correct().

◆ cio_read()

unsigned int cio_read ( opj_cio_t cio,
int  n 
)

◆ cio_skip()

void cio_skip ( opj_cio_t cio,
int  n 
)

◆ cio_write()

unsigned int cio_write ( opj_cio_t cio,
unsigned int64  v,
int  n 
)