22 #ifndef OR_INTERNALS_RAWCONTAINER_H_ 23 #define OR_INTERNALS_RAWCONTAINER_H_ 27 #include <sys/types.h> 31 #include "io/stream.hpp" 55 RawContainer(
const IO::Stream::Ptr &_file, off_t offset);
59 const IO::Stream::Ptr &file() {
return m_file; }
60 EndianType endian()
const {
return m_endian; }
61 off_t offset()
const {
return m_offset; }
63 bool skip(off_t offset);
77 size_t readUInt16Array(
const IO::Stream::Ptr &f, std::vector<uint16_t> &v,
size_t count);
87 size_t fetchData(
void *buf, off_t offset,
size_t buf_size);
97 void setEndian(EndianType _endian) { m_endian = _endian; }
size_t fetchData(void *buf, off_t offset, size_t buf_size)
CIFF is the container for CRW files. It is an attempt from Canon to make this a standard. I guess it failed.
RawContainer(const IO::Stream::Ptr &_file, off_t offset)
Option< int16_t > readInt16(const IO::Stream::Ptr &f)
Option< uint32_t > readUInt32(const IO::Stream::Ptr &f)
size_t readUInt16Array(const IO::Stream::Ptr &f, std::vector< uint16_t > &v, size_t count)
Option< uint16_t > readUInt16(const IO::Stream::Ptr &f)
Option< int32_t > readInt32(const IO::Stream::Ptr &f)