OpenJPEG  1.5.1
CIO - byte input-output stream

Exported functions (see also openjpeg.h)

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

Detailed Description

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 
)