|
libopenraw
|
Classes | |
| struct | camera_ids_t |
| class | Private |
Public Types | |
| typedef ::or_rawfile_type | Type |
| typedef ::or_rawfile_typeid | TypeId |
Public Member Functions | |
| RawFile (const RawFile &)=delete | |
| RawFile & | operator= (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 MetaValue * | getMetaValue (int32_t meta_index) |
Static Public Member Functions | |
| 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) |
Protected Member Functions | |
| RawFile (Type _type) | |
| void | _setTypeId (TypeId _type_id) |
| TypeId | _typeId () const |
| virtual Internals::RawContainer * | getContainer () const =0 |
| virtual ::or_error | _enumThumbnailSizes (std::vector< uint32_t > &list)=0 |
| virtual ::or_error | _getThumbnail (uint32_t size, Thumbnail &thumbnail) |
| void | _addThumbnail (uint32_t size, const Internals::ThumbDesc &desc) |
| virtual ::or_error | _getRawData (RawData &data, uint32_t options)=0 |
| virtual ::or_error | _getColourMatrix (uint32_t index, double *matrix, uint32_t &size) |
| virtual ExifLightsourceValue | _getCalibrationIlluminant (uint16_t index) |
| virtual MetaValue * | _getMetaValue (int32_t)=0 |
| 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 |
| virtual void | _identifyId ()=0 |
Static Protected Member Functions | |
| ::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) |
Definition at line 50 of file rawfile.hpp.
| typedef ::or_rawfile_type OpenRaw::RawFile::Type |
Definition at line 53 of file rawfile.hpp.
| typedef ::or_rawfile_typeid OpenRaw::RawFile::TypeId |
Definition at line 54 of file rawfile.hpp.
|
virtual |
Destructor
Definition at line 324 of file rawfile.cpp.
|
protected |
|
protected |
Definition at line 446 of file rawfile.cpp.
|
protectedpure virtual |
enumerate the thumbnail sizes.
| list | the list to enumerate into |
Implemented in OpenRaw::Internals::CRWFile, OpenRaw::Internals::IfdFile, OpenRaw::Internals::MRWFile, OpenRaw::Internals::OrfFile, and OpenRaw::Internals::RafFile.
Referenced by listThumbnailSizes().
|
staticprotected |
Definition at line 688 of file rawfile.cpp.
|
staticprotected |
Definition at line 669 of file rawfile.cpp.
|
protectedvirtual |
Definition at line 565 of file rawfile.cpp.
|
protected |
get the colour matrix.
| index | 1 or 2 |
Definition at line 517 of file rawfile.cpp.
References typeId().
Referenced by getColourMatrix1().
|
protected |
Definition at line 658 of file rawfile.cpp.
|
protectedpure virtual |
get the RAW data
| data | the RAW data |
| option | the option bits |
Implemented in OpenRaw::Internals::ArwFile, OpenRaw::Internals::CRWFile, OpenRaw::Internals::DngFile, OpenRaw::Internals::ERFFile, OpenRaw::Internals::IfdFile, OpenRaw::Internals::MRWFile, OpenRaw::Internals::OrfFile, OpenRaw::Internals::PEFFile, and OpenRaw::Internals::RafFile.
Referenced by getRawData().
|
protected |
get the thumbnail of exact size.
| size | the size in pixel of the square |
| thumbnail | the thumbnail to load |
Internal implementation of getThumbnail. The size must match.
< of the buffer
Definition at line 416 of file rawfile.cpp.
References OpenRaw::Internals::RawContainer::fetchData(), getContainer(), OpenRaw::Internals::ThumbDesc::offset, OpenRaw::BitmapData::setDataType(), OpenRaw::BitmapData::setDimensions(), OpenRaw::Internals::ThumbDesc::type, OpenRaw::Internals::ThumbDesc::x, and OpenRaw::Internals::ThumbDesc::y.
Referenced by getThumbnail().
|
protected |
Definition at line 652 of file rawfile.cpp.
|
protected |
Definition at line 663 of file rawfile.cpp.
|
protected |
Set the file type id
Definition at line 348 of file rawfile.cpp.
References OpenRaw::RawFile::Private::m_type_id.
|
protected |
Just get the type id value. No identification. You might want to use typeId() in the general case.
Definition at line 343 of file rawfile.cpp.
References OpenRaw::RawFile::Private::m_type_id.
|
protected |
Definition at line 643 of file rawfile.cpp.
|
protected |
Definition at line 619 of file rawfile.cpp.
| uint32_t OpenRaw::RawFile::colourMatrixSize | ( | ) |
Definition at line 502 of file rawfile.cpp.
Referenced by getRawData().
|
static |
return a NULL terminated list of file extensions that the library handle. This is purely informational.
Definition at line 159 of file rawfile.cpp.
References OpenRaw::Internals::RawFileFactory::fileExtensions().
| ExifLightsourceValue OpenRaw::RawFile::getCalibrationIlluminant1 | ( | ) |
Get calibration illuminant that match the colour matrix.
Definition at line 555 of file rawfile.cpp.
| ExifLightsourceValue OpenRaw::RawFile::getCalibrationIlluminant2 | ( | ) |
Definition at line 560 of file rawfile.cpp.
| or_error OpenRaw::RawFile::getColourMatrix1 | ( | double * | matrix, |
| uint32_t & | size | ||
| ) |
Get colour matrix
| index | The matrix index. | |
| [out] | matrix | an array of size double. |
| size | the size of the buffer. On out the actual size. If it is too small the size is adjusted and an error OR_ERROR_BUF_TOO_SMALL returned. |
Definition at line 507 of file rawfile.cpp.
References _getColourMatrix().
Referenced by getRawData().
| or_error OpenRaw::RawFile::getColourMatrix2 | ( | double * | matrix, |
| uint32_t & | size | ||
| ) |
Definition at line 512 of file rawfile.cpp.
|
protectedpure virtual |
Get the container.
Implemented in OpenRaw::Internals::CRWFile, OpenRaw::Internals::IfdFile, and OpenRaw::Internals::RafFile.
Referenced by _getThumbnail().
| const MetaValue * OpenRaw::RawFile::getMetaValue | ( | int32_t | meta_index | ) |
Definition at line 586 of file rawfile.cpp.
| int32_t OpenRaw::RawFile::getOrientation | ( | ) |
Get the orientation of the image, using Exif enums.
Definition at line 485 of file rawfile.cpp.
| or_error OpenRaw::RawFile::getRawData | ( | RawData & | rawdata, |
| uint32_t | options | ||
| ) |
Get the RAW data
| rawdata | the RawData to put the data into |
| options | the option bits defined by or_options |
Definition at line 451 of file rawfile.cpp.
References _getRawData(), colourMatrixSize(), getColourMatrix1(), and OpenRaw::RawData::getColourMatrix1().
Referenced by getRenderedImage().
| or_error OpenRaw::RawFile::getRenderedImage | ( | BitmapData & | bitmapdata, |
| uint32_t | options | ||
| ) |
Get the rendered image
| bitmapdata | the BitmapData to put the image into |
| options | the option bits. Pass 0 for now. |
Definition at line 473 of file rawfile.cpp.
References getRawData(), and OpenRaw::RawData::getRenderedImage().
| or_error OpenRaw::RawFile::getThumbnail | ( | uint32_t | size, |
| Thumbnail & | thumbnail | ||
| ) |
Get the thumbnail from the raw file
| size | the square size in px |
| thumbnail | the thumbnail to extract into |
Definition at line 366 of file rawfile.cpp.
References _getThumbnail(), and listThumbnailSizes().
| const std::vector< uint32_t > & OpenRaw::RawFile::listThumbnailSizes | ( | void | ) |
list the available thumbnail sizes
Definition at line 353 of file rawfile.cpp.
References _enumThumbnailSizes(), and OpenRaw::RawFile::Private::m_sizes.
Referenced by getThumbnail().
|
static |
factory method to create the proper RawFile instance.
| _filename | the name of the file to load |
| _typeHint | a hint on the type. Use UNKNOWN_TYPE if you want to let the library detect it for you. |
Definition at line 167 of file rawfile.cpp.
References OpenRaw::Internals::RawFileFactory::table(), and type().
Referenced by OpenRaw::Thumbnail::getAndExtractThumbnail().
|
static |
factory method to create the proper RawFile instance from content
| buffer | the buffer to examine. |
| len | the number of bytes in the length. |
| _typeHint | a hint on the type. Use UNKNOWN_TYPE if you want to let the library detect it for you. |
Definition at line 192 of file rawfile.cpp.
References OpenRaw::Internals::RawFileFactory::table(), and type().
| RawFile::Type OpenRaw::RawFile::type | ( | ) | const |
Accessor for the type
Definition at line 330 of file rawfile.cpp.
References OpenRaw::RawFile::Private::m_type.
Referenced by newRawFile(), and newRawFileFromMemory().
| RawFile::TypeId OpenRaw::RawFile::typeId | ( | ) |
The RAW file type ID. Identify it if needed.
Definition at line 335 of file rawfile.cpp.
References OpenRaw::RawFile::Private::m_type_id.
Referenced by _getColourMatrix(), and OpenRaw::Internals::MRWFile::_getRawData().