libopenraw
OpenRaw::Internals::NefFile Class Reference
Inheritance diagram for OpenRaw::Internals::NefFile:
OpenRaw::Internals::TiffEpFile OpenRaw::Internals::IfdFile OpenRaw::RawFile

Classes

class  NEFCompressionInfo

Public Member Functions

 NefFile (const IO::Stream::Ptr &_f)
 NefFile (const NefFile &)=delete
NefFileoperator= (const NefFile &)=delete
bool isNrw ()
Public Member Functions inherited from OpenRaw::Internals::TiffEpFile
 TiffEpFile (const IO::Stream::Ptr &s, Type _type)
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 &_f)
static bool isCompressed (RawContainer &container, uint32_t offset)
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 uint32_t _translateCompressionType (IFD::TiffCompress tiffCompression) 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) override
Protected Member Functions inherited from OpenRaw::Internals::TiffEpFile
virtual IfdDir::Ref _locateCfaIfd () override
virtual IfdDir::Ref _locateMainIfd () override
Protected Member Functions inherited from OpenRaw::Internals::IfdFile
 IfdFile (const IO::Stream::Ptr &s, Type _type, bool instantiateContainer=true)
virtual::or_error _enumThumbnailSizes (std::vector< uint32_t > &list) override
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 _getRawData (RawData &data, uint32_t options) override
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

Public Types inherited from OpenRaw::RawFile
typedef ::or_rawfile_type Type
typedef ::or_rawfile_typeid TypeId
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 47 of file neffile.hpp.

Constructor & Destructor Documentation

◆ NefFile()

OpenRaw::Internals::NefFile::NefFile ( const IO::Stream::Ptr & _f)

Definition at line 425 of file neffile.cpp.

◆ ~NefFile()

OpenRaw::Internals::NefFile::~NefFile ( )
virtual

Definition at line 433 of file neffile.cpp.

Member Function Documentation

◆ _translateCompressionType()

uint32_t OpenRaw::Internals::NefFile::_translateCompressionType ( IFD::TiffCompress tiff_compression)
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 482 of file neffile.cpp.

References OpenRaw::Internals::IfdFile::_translateCompressionType(), _translateCompressionType(), and OpenRaw::RawFile::typeId().

Referenced by _translateCompressionType().

◆ _unpackData()

or_error OpenRaw::Internals::NefFile::_unpackData ( uint16_t bpc,
uint32_t compression,
RawData & data,
uint32_t x,
uint32_t y,
uint32_t offset,
uint32_t byte_length )
overrideprotected

Definition at line 472 of file neffile.cpp.

◆ factory()

RawFile * OpenRaw::Internals::NefFile::factory ( const IO::Stream::Ptr & _f)
static

Definition at line 420 of file neffile.cpp.

◆ isCompressed()

bool OpenRaw::Internals::NefFile::isCompressed ( RawContainer & container,
uint32_t offset )
static

hack because some (lot?) D100 do set as compressed even though it is not

Definition at line 437 of file neffile.cpp.

References OpenRaw::Internals::RawContainer::fetchData(), and isCompressed().

Referenced by isCompressed().

◆ isNrw()

bool OpenRaw::Internals::NefFile::isNrw ( )

Definition at line 456 of file neffile.cpp.


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