libopenraw  0.3.7
Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends | List of all members
OpenRaw::Internals::DngFile Class Reference

DNG file. More...

#include <dngfile.hpp>

Inheritance diagram for OpenRaw::Internals::DngFile:
OpenRaw::Internals::TiffEpFile OpenRaw::Internals::IfdFile OpenRaw::RawFile

Public Member Functions

 DngFile (const IO::Stream::Ptr &)
 
 DngFile (const DngFile &)=delete
 
DngFileoperator= (const DngFile &)=delete
 
virtual or_colour_matrix_origin getColourMatrixOrigin () const override
 Get the origin of the colour matrix for the RAW file. More...
 
bool isCinema () const
 Tell if a file is Cinema DNG. More...
 
- 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 ()
 Destructor.
 
Type type () const
 Accessor for the type.
 
TypeId typeId ()
 The RAW file type ID. Identify it if needed. More...
 
TypeId vendorId ()
 
const std::vector< uint32_t > & listThumbnailSizes (void)
 List the available thumbnail sizes.
 
::or_error getThumbnail (uint32_t size, Thumbnail &thumbnail)
 Get the thumbnail from the raw file. More...
 
::or_error getRawData (RawData &rawdata, uint32_t options)
 Get the RAW data. More...
 
::or_error getRenderedImage (BitmapData &bitmapdata, uint32_t options)
 Get the rendered image. More...
 
uint32_t getOrientation ()
 Get the orientation of the image, using Exif enums.
 
uint32_t colourMatrixSize ()
 
::or_error getColourMatrix1 (double *matrix, uint32_t &size)
 Get colour matrix. More...
 
::or_error getColourMatrix2 (double *matrix, uint32_t &size)
 
ExifLightsourceValue getCalibrationIlluminant1 ()
 Get the calibration illuminant that match the colour matrix. More...
 
ExifLightsourceValue getCalibrationIlluminant2 ()
 
Internals::IfdDir::Ref cfaIfd ()
 Get the IFD containing the CFA.
 
Internals::IfdDir::Ref mainIfd ()
 Get the main IFD.
 
Internals::IfdDir::Ref exifIfd ()
 Get the Exif IFD.
 
Internals::MakerNoteDir::Ref makerNoteIfd ()
 Get the MakerNote IFD.
 
const MetaValuegetMetaValue (int32_t meta_index)
 Get a metadata value. More...
 
MetadataIteratorgetMetadataIterator ()
 

Static Public Member Functions

static RawFilefactory (const IO::Stream::Ptr &)
 
- Static Public Member Functions inherited from OpenRaw::RawFile
static const char ** fileExtensions ()
 Return a NULL terminated list of file extensions that the library handle. More...
 
static RawFilenewRawFile (const char *_filename, Type typeHint=OR_RAWFILE_TYPE_UNKNOWN)
 Factory method to create the proper RawFile instance. More...
 
static RawFilenewRawFileFromMemory (const uint8_t *buffer, uint32_t len, Type typeHint=OR_RAWFILE_TYPE_UNKNOWN)
 Factory method to create the proper RawFile instance from content. More...
 

Protected Member Functions

virtual ::or_error _enumThumbnailSizes (std::vector< uint32_t > &list) override
 Enumerate the thumbnail sizes. More...
 
virtual ::or_error _getRawData (RawData &data, uint32_t options) override
 Get the RAW data. More...
 
virtual void _identifyId () override
 Identify the file and set the ID internally.
 
- Protected Member Functions inherited from OpenRaw::Internals::TiffEpFile
virtual IfdDir::Ref _locateCfaIfd () override
 Locate the IFD for the raw data. More...
 
- 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
 List the thumbnails in the IFD. More...
 
::or_error _addThumbnailFromStream (uint32_t offset, uint32_t len, std::vector< uint32_t > &list)
 Add a thumbnail from a stream. More...
 
::or_error _addThumbnailFromEntry (const IfdEntry::Ref &e, off_t offset, std::vector< uint32_t > &list)
 Add the thumbnail found in the IfdEntry. More...
 
virtual ::or_error _locateThumbnail (const IfdDir::Ref &dir, std::vector< uint32_t > &list)
 Locate the thumnail in the IFD. More...
 
::or_error _getRawDataFromDir (RawData &data, const IfdDir::Ref &dir)
 Load the compressed raw data from a standard location in an IFD. More...
 
virtual uint32_t _getJpegThumbnailOffset (const IfdDir::Ref &dir, uint32_t &len)
 Get the JPEG thumbnail offset from dir. More...
 
virtual RawContainergetContainer () const override
 Get the container.
 
virtual IfdDir::Ref _locateMainIfd () override
 Locate the main IFD. More...
 
virtual MetaValue_getMetaValue (int32_t meta_index) override
 Implementation for getMetaValue()
 
virtual uint32_t _translateCompressionType (IFD::TiffCompress tiffCompression)
 Translate the compression type from the tiff type (16MSB) to the RAW specific type if needed (16MSB) More...
 
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)
 Unpack the data. More...
 
virtual ::or_error _getRawData (RawData &data, uint32_t options) override
 Get the RAW data. More...
 
virtual ::or_error _decompressIfNeeded (RawData &, uint32_t)
 Call to decompress if needed from _getRawData()
 
- Protected Member Functions inherited from OpenRaw::RawFile
virtual Internals::IfdDir::Ref _locateExifIfd ()
 Locate the Exif IFD. More...
 
virtual Internals::MakerNoteDir::Ref _locateMakerNoteIfd ()
 Locate the MakerNote IFD. More...
 
 RawFile (Type _type)
 Construct a raw file. More...
 
virtual bool vendorCameraIdLocation (Internals::IfdDir::Ref &ifd, uint16_t &index, const Internals::ModelIdMap *&model_map)
 Get the vendor camera ID location. More...
 
void _setTypeId (TypeId _type_id)
 Set the file type id.
 
TypeId _typeId () const
 Just get the type id value. No identification. You might want to use typeId() in the general case.
 
virtual ::or_error _getThumbnail (uint32_t size, Thumbnail &thumbnail)
 Get the thumbnail of exact size. More...
 
void _addThumbnail (uint32_t size, Internals::ThumbDesc &&desc)
 
virtual ::or_error _getColourMatrix (uint32_t index, double *matrix, uint32_t &size)
 Get the colour matrix. More...
 
virtual ExifLightsourceValue _getCalibrationIlluminant (uint16_t index)
 
TypeId _typeIdFromModel (const std::string &make, const std::string &model)
 
TypeId _typeIdFromMake (const std::string &make, const std::string &model)
 
void _setIdMap (const camera_ids_t *map)
 
void _setMatrices (const Internals::BuiltinColourMatrix *matrices)
 
const Internals::BuiltinColourMatrix_getMatrices () const
 

Friends

template<typename T >
void audit_coefficients ()
 

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
static RawFile::TypeId modelid_to_typeid (const std::map< uint32_t, RawFile::TypeId > &model_map, uint32_t model_id)
 Helper to get the TypeId from the map. More...
 
::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

DNG file.

Definition at line 48 of file dngfile.hpp.


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