libopenraw
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
OpenRaw::Internals::OrfFile Class Reference
Inheritance diagram for OpenRaw::Internals::OrfFile:
OpenRaw::Internals::IfdFile OpenRaw::RawFile

Public Types

enum  { ORF_COMPRESSION = 0x10000 }
 
- Public Types inherited from OpenRaw::RawFile
typedef ::or_rawfile_type Type
 
typedef ::or_rawfile_typeid TypeId
 

Public Member Functions

 OrfFile (const IO::Stream::Ptr &)
 
 OrfFile (const OrfFile &)=delete
 
OrfFileoperator= (const OrfFile &)=delete
 
- Public Member Functions inherited from OpenRaw::RawFile
 RawFile (const RawFile &)=delete
 
RawFileoperator= (const RawFile &)=delete
 
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 ()
 
uint32_t colourMatrixSize ()
 
::or_error getColourMatrix1 (double *matrix, uint32_t &size)
 
::or_error getColourMatrix2 (double *matrix, uint32_t &size)
 
ExifLightsourceValue getCalibrationIlluminant1 ()
 
ExifLightsourceValue getCalibrationIlluminant2 ()
 
const MetaValuegetMetaValue (int32_t meta_index)
 

Static Public Member Functions

static RawFilefactory (const IO::Stream::Ptr &)
 
- Static Public Member Functions inherited from OpenRaw::RawFile
static const char ** fileExtensions ()
 
static RawFilenewRawFile (const char *_filename, Type _typeHint=OR_RAWFILE_TYPE_UNKNOWN)
 
static RawFilenewRawFileFromMemory (const uint8_t *buffer, uint32_t len, Type _typeHint=OR_RAWFILE_TYPE_UNKNOWN)
 

Protected Member Functions

virtual IfdDir::Ref _locateCfaIfd () override
 
virtual IfdDir::Ref _locateMainIfd () override
 
::or_error _enumThumbnailSizes (std::vector< uint32_t > &list) override
 
virtual ::or_error _getRawData (RawData &data, uint32_t options) override
 
virtual uint32_t _translateCompressionType (IFD::TiffCompress tiffCompression) override
 
- Protected Member Functions inherited from OpenRaw::Internals::IfdFile
 IfdFile (const IO::Stream::Ptr &s, Type _type, bool instantiateContainer=true)
 
virtual ::or_error _locateThumbnail (const IfdDir::Ref &dir, std::vector< uint32_t > &list)
 
::or_error _getRawDataFromDir (RawData &data, const IfdDir::Ref &dir)
 
virtual uint32_t _getJpegThumbnailOffset (const IfdDir::Ref &dir, uint32_t &len)
 
virtual RawContainergetContainer () const override
 
virtual IfdDir::Ref _locateExifIfd ()
 
virtual MakerNoteDir::Ref _locateMakerNoteIfd ()
 
virtual void _identifyId () override
 
virtual MetaValue_getMetaValue (int32_t meta_index) override
 
virtual ::or_error _unpackData (uint16_t bpc, uint32_t compression, RawData &data, uint32_t x, uint32_t y, uint32_t offset, uint32_t byte_length)
 
const IfdDir::Ref & cfaIfd ()
 
const IfdDir::Ref & mainIfd ()
 
const IfdDir::Ref & exifIfd ()
 
const MakerNoteDir::Ref & makerNoteIfd ()
 
virtual ::or_error _decompressIfNeeded (RawData &, uint32_t)
 
- Protected Member Functions inherited from OpenRaw::RawFile
 RawFile (Type _type)
 
void _setTypeId (TypeId _type_id)
 
TypeId _typeId () const
 
virtual ::or_error _getThumbnail (uint32_t size, Thumbnail &thumbnail)
 
void _addThumbnail (uint32_t size, const Internals::ThumbDesc &desc)
 
virtual ::or_error _getColourMatrix (uint32_t index, double *matrix, uint32_t &size)
 
virtual ExifLightsourceValue _getCalibrationIlluminant (uint16_t index)
 
TypeId _typeIdFromModel (const std::string &make, const std::string &model)
 
TypeId _typeIdFromMake (const std::string &make)
 
void _setIdMap (const camera_ids_t *map)
 
void _setMatrices (const Internals::BuiltinColourMatrix *matrices)
 
const Internals::BuiltinColourMatrix_getMatrices () const
 

Additional Inherited Members

- Static Protected Member Functions inherited from OpenRaw::RawFile
::or_error _getBuiltinLevels (const Internals::BuiltinColourMatrix *m, TypeId type_id, uint16_t &black, uint16_t &white)
 
::or_error _getBuiltinColourMatrix (const Internals::BuiltinColourMatrix *m, TypeId type_id, double *matrix, uint32_t &size)
 
- Protected Attributes inherited from OpenRaw::Internals::IfdFile
IO::Stream::Ptr m_io
 
IfdFileContainerm_container
 

Detailed Description

Definition at line 124 of file orffile.cpp.

Member Function Documentation

§ _enumThumbnailSizes()

or_error OpenRaw::Internals::OrfFile::_enumThumbnailSizes ( std::vector< uint32_t > &  list)
overrideprotectedvirtual

list the thumbnails in the IFD

Return values
listthe list of thumbnails
Returns
the error code. OR_ERROR_NOT_FOUND if no thumbnail are found.

Reimplemented from OpenRaw::Internals::IfdFile.

Definition at line 189 of file orffile.cpp.

§ _getRawData()

or_error OpenRaw::Internals::OrfFile::_getRawData ( RawData data,
uint32_t  options 
)
overrideprotectedvirtual

get the RAW data

Parameters
datathe RAW data
optionthe option bits
Returns
OR_ERROR_NONE if success Return the data compressed or uncompressed.

Reimplemented from OpenRaw::Internals::IfdFile.

Definition at line 238 of file orffile.cpp.

References OpenRaw::RawData::cfaPattern(), OpenRaw::CfaPattern::patternType(), OpenRaw::BitmapData::setDataType(), OpenRaw::RawData::setDimensions(), OpenRaw::BitmapData::size(), and OpenRaw::RawData::swap().

§ _translateCompressionType()

uint32_t OpenRaw::Internals::OrfFile::_translateCompressionType ( IFD::TiffCompress  tiffCompression)
overrideprotectedvirtual

Translate the compression type from the tiff type (16MSB) to the RAW specific type if needed (16MSB)

Parameters
tiffCompressionthe 16 bits value from TIFF
Returns
the actually value. Anything >= 2^16 is specific the RAW type

by default we don't translate the compression

Reimplemented from OpenRaw::Internals::IfdFile.

Definition at line 278 of file orffile.cpp.


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