Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
vil_openjpeg_decoder Class Reference

Public Member Functions

 vil_openjpeg_decoder (OPJ_CODEC_FORMAT opj_codec_format)
 
 ~vil_openjpeg_decoder (void)
 
bool error (void) const
 
void silence (void)
 
bool init_from_stream (unsigned int reduction, void *stream)
 
bool set_decode_area (unsigned int x, unsigned int y, unsigned int w, unsigned int h)
 
opj_image_t * take_image (void)
 
opj_image_t * decode (void)
 
const opj_headerheader (void) const
 

Private Member Functions

bool init_decoder (unsigned int reduction)
 
bool init_stream (void *stream)
 
bool read_header (void)
 

Static Private Member Functions

static vxl_uint_32 opj_vil_stream_read (void *p_buffer, vxl_uint_32 p_nb_bytes, void *p_user_data)
 
static vxl_uint_32 opj_vil_stream_write (void *p_buffer, vxl_uint_32 p_nb_bytes, void *p_user_data)
 
static vxl_uint_32 opj_vil_stream_skip (vxl_uint_32 p_nb_bytes, void *p_user_data)
 
static bool opj_vil_stream_seek (vxl_uint_32 p_nb_bytes, void *p_user_data)
 
static void opj_event_info (const char *msg, void *data)
 
static void opj_event_warning (const char *msg, void *data)
 
static void opj_event_error (const char *msg, void *data)
 

Private Attributes

opj_dparameters_t params_
 
opj_codec_t * codec_
 
opj_image_t * image_
 
opj_stream_t * stream_
 
opj_header header_
 
OPJ_CODEC_FORMAT opj_codec_format_
 
bool error_
 
bool silent_
 

Detailed Description

Definition at line 94 of file vil_openjpeg.cxx.

Constructor & Destructor Documentation

◆ vil_openjpeg_decoder()

vil_openjpeg_decoder::vil_openjpeg_decoder ( OPJ_CODEC_FORMAT  opj_codec_format)

Definition at line 179 of file vil_openjpeg.cxx.

◆ ~vil_openjpeg_decoder()

vil_openjpeg_decoder::~vil_openjpeg_decoder ( void  )

Definition at line 189 of file vil_openjpeg.cxx.

Member Function Documentation

◆ decode()

opj_image_t * vil_openjpeg_decoder::decode ( void  )

Definition at line 356 of file vil_openjpeg.cxx.

◆ error()

bool vil_openjpeg_decoder::error ( void  ) const

Definition at line 212 of file vil_openjpeg.cxx.

◆ header()

const opj_header * vil_openjpeg_decoder::header ( void  ) const

Definition at line 365 of file vil_openjpeg.cxx.

◆ init_decoder()

bool vil_openjpeg_decoder::init_decoder ( unsigned int  reduction)
private

Definition at line 275 of file vil_openjpeg.cxx.

◆ init_from_stream()

bool vil_openjpeg_decoder::init_from_stream ( unsigned int  reduction,
void *  stream 
)

Definition at line 228 of file vil_openjpeg.cxx.

◆ init_stream()

bool vil_openjpeg_decoder::init_stream ( void *  stream)
private

Definition at line 245 of file vil_openjpeg.cxx.

◆ opj_event_error()

void vil_openjpeg_decoder::opj_event_error ( const char *  msg,
void *  data 
)
staticprivate

Definition at line 479 of file vil_openjpeg.cxx.

◆ opj_event_info()

void vil_openjpeg_decoder::opj_event_info ( const char *  msg,
void *  data 
)
staticprivate

Definition at line 463 of file vil_openjpeg.cxx.

◆ opj_event_warning()

void vil_openjpeg_decoder::opj_event_warning ( const char *  msg,
void *  data 
)
staticprivate

Definition at line 471 of file vil_openjpeg.cxx.

◆ opj_vil_stream_read()

vxl_uint_32 vil_openjpeg_decoder::opj_vil_stream_read ( void *  p_buffer,
vxl_uint_32  p_nb_bytes,
void *  p_user_data 
)
staticprivate

Definition at line 377 of file vil_openjpeg.cxx.

◆ opj_vil_stream_seek()

bool vil_openjpeg_decoder::opj_vil_stream_seek ( vxl_uint_32  p_nb_bytes,
void *  p_user_data 
)
staticprivate

Definition at line 439 of file vil_openjpeg.cxx.

◆ opj_vil_stream_skip()

vxl_uint_32 vil_openjpeg_decoder::opj_vil_stream_skip ( vxl_uint_32  p_nb_bytes,
void *  p_user_data 
)
staticprivate

Definition at line 417 of file vil_openjpeg.cxx.

◆ opj_vil_stream_write()

vxl_uint_32 vil_openjpeg_decoder::opj_vil_stream_write ( void *  p_buffer,
vxl_uint_32  p_nb_bytes,
void *  p_user_data 
)
staticprivate

Definition at line 397 of file vil_openjpeg.cxx.

◆ read_header()

bool vil_openjpeg_decoder::read_header ( void  )
private

Definition at line 314 of file vil_openjpeg.cxx.

◆ set_decode_area()

bool vil_openjpeg_decoder::set_decode_area ( unsigned int  x,
unsigned int  y,
unsigned int  w,
unsigned int  h 
)

Definition at line 336 of file vil_openjpeg.cxx.

◆ silence()

void vil_openjpeg_decoder::silence ( void  )

Definition at line 220 of file vil_openjpeg.cxx.

◆ take_image()

opj_image_t * vil_openjpeg_decoder::take_image ( void  )

Definition at line 346 of file vil_openjpeg.cxx.

Member Data Documentation

◆ codec_

opj_codec_t* vil_openjpeg_decoder::codec_
private

Definition at line 113 of file vil_openjpeg.cxx.

◆ error_

bool vil_openjpeg_decoder::error_
private

Definition at line 119 of file vil_openjpeg.cxx.

◆ header_

opj_header vil_openjpeg_decoder::header_
private

Definition at line 116 of file vil_openjpeg.cxx.

◆ image_

opj_image_t* vil_openjpeg_decoder::image_
private

Definition at line 114 of file vil_openjpeg.cxx.

◆ opj_codec_format_

OPJ_CODEC_FORMAT vil_openjpeg_decoder::opj_codec_format_
private

Definition at line 117 of file vil_openjpeg.cxx.

◆ params_

opj_dparameters_t vil_openjpeg_decoder::params_
private

Definition at line 112 of file vil_openjpeg.cxx.

◆ silent_

bool vil_openjpeg_decoder::silent_
private

Definition at line 120 of file vil_openjpeg.cxx.

◆ stream_

opj_stream_t* vil_openjpeg_decoder::stream_
private

Definition at line 115 of file vil_openjpeg.cxx.


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