OpenJPEG  2.1.0
Data Fields
opj_stream_private Struct Reference

Byte input-output stream. More...

#include <cio.h>

Data Fields

void * m_user_data
 User data, be it files, ... More...
 
opj_stream_free_user_data_fn m_free_user_data_fn
 Pointer to function to free m_user_data (NULL at initialization) when destroying the stream. More...
 
OPJ_UINT64 m_user_data_length
 User data length. More...
 
opj_stream_read_fn m_read_fn
 Pointer to actual read function (NULL at the initialization of the cio. More...
 
opj_stream_write_fn m_write_fn
 Pointer to actual write function (NULL at the initialization of the cio. More...
 
opj_stream_skip_fn m_skip_fn
 Pointer to actual skip function (NULL at the initialization of the cio. More...
 
opj_stream_seek_fn m_seek_fn
 Pointer to actual seek function (if available). More...
 
OPJ_BYTEm_stored_data
 Actual data stored into the stream if readed from. More...
 
OPJ_BYTEm_current_data
 Pointer to the current read data. More...
 
OPJ_OFF_T(* m_opj_skip )(struct opj_stream_private *, OPJ_OFF_T, struct opj_event_mgr *)
 FIXME DOC. More...
 
OPJ_BOOL(* m_opj_seek )(struct opj_stream_private *, OPJ_OFF_T, struct opj_event_mgr *)
 FIXME DOC. More...
 
OPJ_SIZE_T m_bytes_in_buffer
 number of bytes containing in the buffer. More...
 
OPJ_OFF_T m_byte_offset
 The number of bytes read/written from the beginning of the stream. More...
 
OPJ_SIZE_T m_buffer_size
 The size of the buffer. More...
 
opj_stream_flag m_status
 Flags to tell the status of the stream. More...
 

Detailed Description

Byte input-output stream.

Field Documentation

OPJ_SIZE_T opj_stream_private::m_buffer_size

The size of the buffer.

Referenced by opj_stream_create(), opj_stream_read_data(), and opj_stream_write_data().

OPJ_OFF_T opj_stream_private::m_byte_offset
OPJ_SIZE_T opj_stream_private::m_bytes_in_buffer
OPJ_BYTE* opj_stream_private::m_current_data
opj_stream_free_user_data_fn opj_stream_private::m_free_user_data_fn

Pointer to function to free m_user_data (NULL at initialization) when destroying the stream.

If pointer is NULL the function is not called and the m_user_data is not freed (even if non-NULL).

Referenced by opj_stream_destroy(), and opj_stream_set_user_data().

OPJ_BOOL(* opj_stream_private::m_opj_seek) (struct opj_stream_private *, OPJ_OFF_T, struct opj_event_mgr *)

FIXME DOC.

Referenced by opj_stream_create(), and opj_stream_seek().

OPJ_OFF_T(* opj_stream_private::m_opj_skip) (struct opj_stream_private *,OPJ_OFF_T, struct opj_event_mgr *)

FIXME DOC.

Referenced by opj_stream_create(), and opj_stream_skip().

opj_stream_read_fn opj_stream_private::m_read_fn

Pointer to actual read function (NULL at the initialization of the cio.

Referenced by opj_stream_create(), opj_stream_read_data(), and opj_stream_set_read_function().

opj_stream_seek_fn opj_stream_private::m_seek_fn

Pointer to actual seek function (if available).

Referenced by opj_stream_create(), opj_stream_has_seek(), opj_stream_read_seek(), opj_stream_set_seek_function(), and opj_stream_write_seek().

opj_stream_skip_fn opj_stream_private::m_skip_fn

Pointer to actual skip function (NULL at the initialization of the cio.

There is no seek function to prevent from back and forth slow procedures.

Referenced by opj_stream_create(), opj_stream_read_skip(), opj_stream_set_skip_function(), and opj_stream_write_skip().

opj_stream_flag opj_stream_private::m_status
OPJ_BYTE* opj_stream_private::m_stored_data

Actual data stored into the stream if readed from.

Data is read by chunk of fixed size. you should never access this data directly.

Referenced by opj_stream_create(), opj_stream_destroy(), opj_stream_flush(), opj_stream_read_data(), opj_stream_read_seek(), opj_stream_read_skip(), opj_stream_write_data(), and opj_stream_write_seek().

void* opj_stream_private::m_user_data
OPJ_UINT64 opj_stream_private::m_user_data_length
opj_stream_write_fn opj_stream_private::m_write_fn

Pointer to actual write function (NULL at the initialization of the cio.

Referenced by opj_stream_create(), opj_stream_flush(), and opj_stream_set_write_function().


The documentation for this struct was generated from the following file: