|
libopenraw
0.3.7
|
Canon CR3 file. More...
#include <cr3file.hpp>
Public Member Functions | |
| Cr3File (const IO::Stream::Ptr &s) | |
| Cr3File (const Cr3File &)=delete | |
| Cr3File & | operator= (const Cr3File &)=delete |
Public Member Functions inherited from OpenRaw::RawFile | |
| RawFile (const RawFile &)=delete | |
| RawFile & | operator= (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 () |
| virtual or_colour_matrix_origin | getColourMatrixOrigin () const |
| Get the origin of the colour matrix for the RAW file. More... | |
| 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 MetaValue * | getMetaValue (int32_t meta_index) |
| Get a metadata value. More... | |
| MetadataIterator * | getMetadataIterator () |
Static Public Member Functions | |
| static RawFile * | factory (const IO::Stream::Ptr &s) |
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 RawFile * | newRawFile (const char *_filename, Type typeHint=OR_RAWFILE_TYPE_UNKNOWN) |
| Factory method to create the proper RawFile instance. More... | |
| static RawFile * | newRawFileFromMemory (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 RawContainer * | getContainer () const override |
| Get the container. | |
| virtual ::or_error | _getRawData (RawData &data, uint32_t options) override |
| Get the RAW data. More... | |
| virtual MetaValue * | _getMetaValue (int32_t) override |
| Implementation for getMetaValue() | |
| virtual void | _identifyId () override |
| Identify the file and set the ID internally. | |
| virtual IfdDir::Ref | _locateCfaIfd () override |
| Locate the IFD for the raw data. More... | |
| virtual IfdDir::Ref | _locateMainIfd () override |
| Locate the main IFD. More... | |
| virtual IfdDir::Ref | _locateExifIfd () override |
| Locate the Exif IFD. More... | |
| virtual MakerNoteDir::Ref | _locateMakerNoteIfd () override |
| Locate the MakerNote IFD. More... | |
Protected Member Functions inherited from OpenRaw::RawFile | |
| 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) |
Canon CR3 file.
Definition at line 49 of file cr3file.hpp.
|
overrideprotectedvirtual |
Enumerate the thumbnail sizes.
| list | the list to enumerate into |
Implements OpenRaw::RawFile.
Definition at line 223 of file cr3file.cpp.
References OR_DATA_TYPE_JPEG, OR_ERROR_NONE, and OR_ERROR_NOT_FOUND.
|
overrideprotectedvirtual |
Get the RAW data.
| data | The RAW data |
| option | The option bits |
Implements OpenRaw::RawFile.
Definition at line 186 of file cr3file.cpp.
References OpenRaw::Internals::canon_get_sensorinfo(), OR_DATA_TYPE_COMPRESSED_RAW, OR_ERROR_NONE, OR_ERROR_NOT_FOUND, OR_OPTIONS_DONT_DECOMPRESS, OpenRaw::BitmapData::setDataType(), and OpenRaw::RawData::setDimensions().
|
inlineoverrideprotectedvirtual |
Locate the IFD for the raw data.
This is not necessarily a unique IFD and it can be the same as the main.
Implements OpenRaw::RawFile.
Definition at line 71 of file cr3file.hpp.
|
overrideprotectedvirtual |
Locate the Exif IFD.
The default implementation follow the specification by by calling getExifIFD() on the main IFD.
Reimplemented from OpenRaw::RawFile.
Definition at line 306 of file cr3file.cpp.
References OR_IFD_EXIF.
|
overrideprotectedvirtual |
Locate the main IFD.
Implements OpenRaw::RawFile.
Definition at line 297 of file cr3file.cpp.
References OR_IFD_MAIN.
|
overrideprotectedvirtual |
Locate the MakerNote IFD.
The default implementation follow the specification by by calling getMakerNoteIfd() on the main IFD.
Reimplemented from OpenRaw::RawFile.
Definition at line 315 of file cr3file.cpp.