libopenraw
|
generic IFD based raw file. More...
#include <ifdfile.h>
Protected Types | |
typedef std::map< uint32_t, IFDThumbDesc > | ThumbLocations |
Protected Member Functions | |
IFDFile (IO::Stream *s, Type _type, bool instantiateContainer=true) | |
virtual ::or_error | _enumThumbnailSizes (std::vector< uint32_t > &list) |
virtual ::or_error | _locateThumbnail (const IFDDir::Ref &dir, std::vector< uint32_t > &list) |
::or_error | _getRawDataFromDir (RawData &data, IFDDir::Ref &dir) |
virtual IFDDir::Ref | _locateCfaIfd ()=0 |
virtual IFDDir::Ref | _locateMainIfd ()=0 |
virtual IFDDir::Ref | _locateExifIfd () |
virtual void | _identifyId () |
virtual MetaValue * | _getMetaValue (int32_t meta_index) |
![]() | |
RawFile (IO::Stream *s, Type _type) | |
void | _setTypeId (TypeId _type_id) |
virtual ::or_error | _getRawData (RawData &data, uint32_t options)=0 |
TypeId | _typeIdFromModel (const std::string &model) |
void | _setIdMap (const camera_ids_t *map) |
Protected Attributes | |
ThumbLocations | m_thumbLocations |
IO::Stream * | m_io |
IFDFileContainer * | m_container |
IFDDir::Ref | m_cfaIfd |
IFDDir::Ref | m_mainIfd |
IFDDir::Ref | m_exifIfd |
Additional Inherited Members | |
![]() | |
typedef ::or_rawfile_type | Type |
typedef ::or_rawfile_typeid | TypeId |
![]() | |
virtual | ~RawFile () |
Type | type () const |
TypeId | typeId () |
const std::vector< uint32_t > & | listThumbnailSizes (void) |
::or_error | getThumbnail (uint32_t size, Thumbnail &thumbnail) |
::or_error | getRawData (RawData &rawdata, uint32_t options) |
::or_error | getRenderedImage (BitmapData &bitmapdata, uint32_t options) |
int32_t | getOrientation () |
const MetaValue * | getMetaValue (int32_t meta_index) |
![]() | |
static const char ** | fileExtensions () |
static RawFile * | newRawFile (const char *_filename, Type _typeHint=OR_RAWFILE_TYPE_UNKNOWN) |
static RawFile * | newRawFileFromMemory (const uint8_t *buffer, uint32_t len, Type _typeHint=OR_RAWFILE_TYPE_UNKNOWN) |
|
protectedvirtual |
list the thumbnails in the IFD
list | the list of thumbnails |
Implements OpenRaw::RawFile.
Reimplemented in OpenRaw::Internals::MRWFile.
Definition at line 99 of file ifdfile.cpp.
References _locateThumbnail(), OpenRaw::Internals::IFDFileContainer::directories(), and m_container.
|
protected |
load the compressed rawdata from a standard location in an IFD
data | the data storage |
dir | the IFD |
Definition at line 477 of file ifdfile.cpp.
References OpenRaw::Internals::RawContainer::fetchData(), OpenRaw::Internals::NEFFile::isCompressed(), m_container, m_exifIfd, OpenRaw::BitmapData::setDataType(), OpenRaw::RawData::setDimensions(), and OpenRaw::Internals::Unpack::unpack_be12to16().
Referenced by OpenRaw::Internals::ERFFile::_getRawData(), OpenRaw::Internals::DNGFile::_getRawData(), OpenRaw::Internals::OrfFile::_getRawData(), and OpenRaw::Internals::PEFFile::_getRawData().
|
protected |
locate the thumnail in the IFD
dir | the IFDDir where to locate the thumbnail |
Definition at line 141 of file ifdfile.cpp.
References m_cfaIfd, and m_io.
Referenced by _enumThumbnailSizes().
|
protected |
the IFD for the CFA
Definition at line 105 of file ifdfile.h.
Referenced by OpenRaw::Internals::ERFFile::_getRawData(), OpenRaw::Internals::DNGFile::_getRawData(), OpenRaw::Internals::OrfFile::_getRawData(), OpenRaw::Internals::PEFFile::_getRawData(), and _locateThumbnail().
|
protected |
the real container
Definition at line 95 of file ifdfile.h.
Referenced by _enumThumbnailSizes(), OpenRaw::Internals::MRWFile::_getRawData(), _getRawDataFromDir(), and OpenRaw::Internals::MRWFile::_getThumbnail().
|
protected |
|
protected |
|
protected |