libopenraw
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
OpenRaw::Internals::MRWContainer Class Reference

#include <mrwcontainer.hpp>

Inheritance diagram for OpenRaw::Internals::MRWContainer:
OpenRaw::Internals::IfdFileContainer OpenRaw::Internals::RawContainer

Public Member Functions

 MRWContainer (const IO::Stream::Ptr &file, off_t offset=0)
 
virtual ~MRWContainer ()
 
 MRWContainer (const MRWContainer &)=delete
 
MRWContaineroperator= (const MRWContainer &)=delete
 
virtual IfdFileContainer::EndianType isMagicHeader (const char *p, int len) override
 
off_t pixelDataOffset ()
 
- 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 readInt8 (const IO::Stream::Ptr &f, int8_t &v)
 
bool readUInt8 (const IO::Stream::Ptr &f, uint8_t &v)
 
bool readInt16 (const IO::Stream::Ptr &f, int16_t &v)
 
bool readInt32 (const IO::Stream::Ptr &f, int32_t &v)
 
bool readUInt16 (const IO::Stream::Ptr &f, uint16_t &v)
 
bool readUInt32 (const IO::Stream::Ptr &f, uint32_t &v)
 
size_t fetchData (void *buf, off_t offset, size_t buf_size)
 

Public Attributes

MRW::DataBlock::Ref mrm
 
MRW::DataBlock::Ref prd
 
MRW::DataBlock::Ref ttw
 
MRW::DataBlock::Ref wbg
 
MRW::DataBlock::Ref rif
 

Protected Member Functions

virtual bool locateDirsPreHook () override
 
- Protected Member Functions inherited from OpenRaw::Internals::RawContainer
 RawContainer (const RawContainer &)
 
RawContaineroperator= (const RawContainer &)
 
void setEndian (EndianType _endian)
 

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 Attributes inherited from OpenRaw::Internals::RawContainer
IO::Stream::Ptr m_file
 
off_t m_offset
 
EndianType m_endian
 

Detailed Description

A container for a Minolta Raw object.

Definition at line 216 of file mrwcontainer.hpp.

Constructor & Destructor Documentation

§ ~MRWContainer()

OpenRaw::Internals::MRWContainer::~MRWContainer ( )
virtual

destructor

Definition at line 104 of file mrwcontainer.cpp.

Member Function Documentation

§ isMagicHeader()

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

Check the MRW magic header.

Reimplemented from OpenRaw::Internals::IfdFileContainer.

Definition at line 108 of file mrwcontainer.cpp.

§ locateDirsPreHook()

bool OpenRaw::Internals::MRWContainer::locateDirsPreHook ( )
overrideprotectedvirtual

hook to be called at the start of _locateDirs()

Reimplemented from OpenRaw::Internals::IfdFileContainer.

Definition at line 127 of file mrwcontainer.cpp.

§ pixelDataOffset()

off_t OpenRaw::Internals::MRWContainer::pixelDataOffset ( )
inline

Return offset of pixel array data from start of file.

Definition at line 240 of file mrwcontainer.hpp.

Referenced by OpenRaw::Internals::MRWFile::_getRawData().


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