libopenraw
OpenRaw::Internals::Rw2Container Class Reference
Inheritance diagram for OpenRaw::Internals::Rw2Container:
OpenRaw::Internals::IfdFileContainer OpenRaw::Internals::RawContainer

Public Member Functions

 Rw2Container (const IO::Stream::Ptr &file, off_t offset)
virtual ~Rw2Container ()
 Rw2Container (const Rw2Container &)=delete
Rw2Containeroperator= (const Rw2Container &)=delete
virtual IfdFileContainer::EndianType isMagicHeader (const char *p, int len) override
Public Member Functions inherited from OpenRaw::Internals::IfdFileContainer
 IfdFileContainer (const IO::Stream::Ptr &file, off_t offset)
virtual ~IfdFileContainer ()
IfdDir::Ref setDirectory (int dir)
int countDirectories (void)
std::vector< IfdDir::Ref > & directories ()
int currentDirectory ()
size_t getDirectoryDataSize ()
int lastError () const
int exifOffsetCorrection () const
void setExifOffsetCorrection (int corr)
::or_error locateImageData (const IfdDir::Ref &dir, uint32_t &x, uint32_t &y, ::or_data_type &t)
Public Member Functions inherited from OpenRaw::Internals::RawContainer
 RawContainer (const IO::Stream::Ptr &_file, off_t offset)
virtual ~RawContainer ()
const IO::Stream::Ptr & file ()
EndianType endian () const
off_t offset () const
bool skip (off_t offset)
Option< int8_t > readInt8 (const IO::Stream::Ptr &f)
Option< uint8_t > readUInt8 (const IO::Stream::Ptr &f)
Option< int16_t > readInt16 (const IO::Stream::Ptr &f)
Option< int32_t > readInt32 (const IO::Stream::Ptr &f)
Option< uint16_t > readUInt16 (const IO::Stream::Ptr &f)
size_t readUInt16Array (const IO::Stream::Ptr &f, std::vector< uint16_t > &v, size_t count)
Option< uint32_t > readUInt32 (const IO::Stream::Ptr &f)
size_t fetchData (void *buf, off_t offset, size_t buf_size)
off_t size () const

Additional Inherited Members

Public Types inherited from OpenRaw::Internals::IfdFileContainer
enum  { IFD_NONE = -1 , IFD_EXIF = -2 , IFD_GPS = -3 , IFD_INTEROP = -4 }
Public Types inherited from OpenRaw::Internals::RawContainer
enum  EndianType { ENDIAN_NULL = 0 , ENDIAN_BIG , ENDIAN_LITTLE }
Protected Member Functions inherited from OpenRaw::Internals::IfdFileContainer
virtual bool locateDirsPreHook ()
Protected Member Functions inherited from OpenRaw::Internals::RawContainer
 RawContainer (const RawContainer &)=delete
RawContaineroperator= (const RawContainer &)=delete
void setEndian (EndianType _endian)
Protected Attributes inherited from OpenRaw::Internals::RawContainer
IO::Stream::Ptr m_file
off_t m_offset
EndianType m_endian

Detailed Description

Definition at line 36 of file rw2container.hpp.

Constructor & Destructor Documentation

◆ Rw2Container()

OpenRaw::Internals::Rw2Container::Rw2Container ( const IO::Stream::Ptr & file,
off_t offset )

Definition at line 32 of file rw2container.cpp.

◆ ~Rw2Container()

OpenRaw::Internals::Rw2Container::~Rw2Container ( )
virtual

destructor

Definition at line 37 of file rw2container.cpp.

References ~Rw2Container().

Referenced by ~Rw2Container().

Member Function Documentation

◆ isMagicHeader()

IfdFileContainer::EndianType OpenRaw::Internals::Rw2Container::isMagicHeader ( const char * p,
int len )
overridevirtual

Check the ORF magic header.

Reimplemented from OpenRaw::Internals::IfdFileContainer.

Definition at line 41 of file rw2container.cpp.

References OpenRaw::Internals::RawContainer::ENDIAN_LITTLE, and isMagicHeader().

Referenced by isMagicHeader().


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