24 #include "libopenraw/consts.h" 25 #include "libopenraw/io.h" 27 #include "io/stream.hpp" 35 m_methods(::get_default_io_methods()),
49 m_ioRef = ::raw_open(m_methods,
get_path().c_str(), O_RDONLY);
50 if (m_ioRef == NULL) {
51 return OR_ERROR_CANT_OPEN;
58 int result = ::raw_close(m_ioRef);
65 return ::raw_seek(m_ioRef, offset, whence);
70 return ::raw_read(m_ioRef, buf, count);
73 off_t File::filesize()
75 return ::raw_filesize(m_ioRef);
CIFF is the container for CRW files. It is an attempt from Canon to make this a standard. I guess it failed.
virtual int read(void *buf, size_t count) override
virtual int close() override
File(const char *filename)
const std::string & get_path() const
virtual int seek(off_t offset, int whence) override
virtual Error open() override
base virtual class for IO