OpenJPH
Open-source implementation of JPEG2000 Part-15
ojph::j2c_infile Class Reference

#include <ojph_file.h>

Inheritance diagram for ojph::j2c_infile:
ojph::infile_base

Public Member Functions

OJPH_EXPORT j2c_infile ()
 
OJPH_EXPORT ~j2c_infile ()
 
OJPH_EXPORT void open (const char *filename)
 
virtual OJPH_EXPORT size_t read (void *ptr, size_t size)
 
virtual OJPH_EXPORT int seek (si64 offset, enum infile_base::seek origin)
 
virtual OJPH_EXPORT si64 tell ()
 
virtual OJPH_EXPORT bool eof ()
 
virtual OJPH_EXPORT void close ()
 
- Public Member Functions inherited from ojph::infile_base
virtual ~infile_base ()
 

Private Attributes

FILE * fh
 

Additional Inherited Members

- Public Types inherited from ojph::infile_base
enum  seek : int { OJPH_SEEK_SET = SEEK_SET , OJPH_SEEK_CUR = SEEK_CUR , OJPH_SEEK_END = SEEK_END }
 

Detailed Description

Definition at line 219 of file ojph_file.h.

Constructor & Destructor Documentation

◆ j2c_infile()

OJPH_EXPORT ojph::j2c_infile::j2c_infile ( )
inline

Definition at line 223 of file ojph_file.h.

References fh.

◆ ~j2c_infile()

OJPH_EXPORT ojph::j2c_infile::~j2c_infile ( )
inline

Definition at line 225 of file ojph_file.h.

References fh.

Member Function Documentation

◆ close()

void ojph::j2c_infile::close ( )
virtual

Reimplemented from ojph::infile_base.

Definition at line 211 of file ojph_file.cpp.

References fh.

◆ eof()

virtual OJPH_EXPORT bool ojph::j2c_infile::eof ( )
inlinevirtual

Implements ojph::infile_base.

Definition at line 239 of file ojph_file.h.

References fh.

◆ open()

void ojph::j2c_infile::open ( const char *  filename)

Definition at line 181 of file ojph_file.cpp.

References fh, and OJPH_ERROR.

Referenced by main().

◆ read()

size_t ojph::j2c_infile::read ( void *  ptr,
size_t  size 
)
virtual

Implements ojph::infile_base.

Definition at line 190 of file ojph_file.cpp.

References fh.

◆ seek()

int ojph::j2c_infile::seek ( si64  offset,
enum infile_base::seek  origin 
)
virtual

Implements ojph::infile_base.

Definition at line 197 of file ojph_file.cpp.

References fh, and ojph::ojph_fseek().

◆ tell()

si64 ojph::j2c_infile::tell ( )
virtual

Implements ojph::infile_base.

Definition at line 204 of file ojph_file.cpp.

References fh, and ojph::ojph_ftell().

Member Data Documentation

◆ fh

FILE* ojph::j2c_infile::fh
private

Definition at line 244 of file ojph_file.h.

Referenced by close(), eof(), j2c_infile(), open(), read(), seek(), tell(), and ~j2c_infile().


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