|
libopenraw
0.3.7
|
a JPEG container More...
#include <jfifcontainer.hpp>
Public Member Functions | |
| JfifContainer (const IO::Stream::Ptr &file, off_t offset) | |
| virtual | ~JfifContainer () |
| bool | getDimensions (uint32_t &x, uint32_t &y) |
| bool | getDecompressedData (BitmapData &data) |
| IfdDir::Ref | mainIfd () |
| IfdDir::Ref | getIfdDirAt (int idx) |
| IfdDir::Ref | exifIfd () |
| std::unique_ptr< IfdFileContainer > & | ifdContainer () |
| size_t | exifOffset () const |
| jmp_buf & | jpegjmp () |
Public Member Functions inherited from OpenRaw::Internals::RawContainer | |
| RawContainer (const IO::Stream::Ptr &_file, off_t offset) | |
| virtual | ~RawContainer () |
| const IO::Stream::Ptr & | file () const |
| EndianType | endian () const |
| off_t | offset () const |
| virtual int | exifOffsetCorrection () const |
| bool | skip (off_t offset) |
| Option< int8_t > | readInt8 (const IO::Stream::Ptr &f) const |
| Option< uint8_t > | readUInt8 (const IO::Stream::Ptr &f) const |
| Option< int16_t > | readInt16 (const IO::Stream::Ptr &f, EndianType endian) const |
| Read an int16 following the m_endian set. | |
| Option< int32_t > | readInt32 (const IO::Stream::Ptr &f, EndianType endian) const |
| Read an int32 following the m_endian set. | |
| Option< uint16_t > | readUInt16 (const IO::Stream::Ptr &f, EndianType endian) const |
| Read an uint16 following the m_endian set. | |
| size_t | readUInt16Array (const IO::Stream::Ptr &f, std::vector< uint16_t > &v, size_t count) const |
| Read an array of uint16 following the m_endian set. More... | |
| Option< uint32_t > | readUInt32 (const IO::Stream::Ptr &f, EndianType endian) const |
| Read an uint32 following the m_endian set. | |
| size_t | fetchData (void *buf, off_t offset, size_t buf_size) const |
| Fetch the data chunk from the file. More... | |
| off_t | size () const |
| Return the effective size of the container. | |
Additional Inherited Members | |
Public Types inherited from OpenRaw::Internals::RawContainer | |
| enum | EndianType { ENDIAN_NULL = 0 , ENDIAN_BIG , ENDIAN_LITTLE } |
| Define the endian of the container. More... | |
Protected Member Functions inherited from OpenRaw::Internals::RawContainer | |
| RawContainer (const RawContainer &)=delete | |
| RawContainer (RawContainer &&)=default | |
| RawContainer & | operator= (const RawContainer &)=delete |
| void | setEndian (EndianType _endian) |
Protected Attributes inherited from OpenRaw::Internals::RawContainer | |
| IO::Stream::Ptr | m_file |
| The file handle. | |
| off_t | m_offset |
| The offset from the beginning of the file. | |
| EndianType | m_endian |
a JPEG container
Definition at line 49 of file jfifcontainer.hpp.
|
virtual |
destructor
Definition at line 109 of file jfifcontainer.cpp.
| IfdDir::Ref OpenRaw::Internals::JfifContainer::exifIfd | ( | ) |
Return Exif ifd
Definition at line 269 of file jfifcontainer.cpp.
|
inline |
Return the exif offset to be added to any offset from the start of the JFIF
Definition at line 69 of file jfifcontainer.hpp.
| IfdDir::Ref OpenRaw::Internals::JfifContainer::getIfdDirAt | ( | int | idx | ) |
Return ifd at index
Definition at line 260 of file jfifcontainer.cpp.
References ifdContainer().
Referenced by OpenRaw::Internals::RafFile::_enumThumbnailSizes(), and OpenRaw::Internals::RafFile::_locateMainIfd().
| std::unique_ptr< IfdFileContainer > & OpenRaw::Internals::JfifContainer::ifdContainer | ( | ) |
Return the ifd container
Definition at line 229 of file jfifcontainer.cpp.
References OpenRaw::Internals::RawContainer::m_file, and OpenRaw::Internals::RawContainer::readUInt16().
Referenced by getIfdDirAt(), and mainIfd().
| IfdDir::Ref OpenRaw::Internals::JfifContainer::mainIfd | ( | ) |
Main ifd is 0
Definition at line 252 of file jfifcontainer.cpp.
References ifdContainer().
Referenced by OpenRaw::Internals::RafFile::_getMetaValue().