|
typedef ::or_rawfile_type | Type |
typedef ::or_rawfile_typeid | TypeId |
|
::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.
◆ Type
typedef ::or_rawfile_type OpenRaw::RawFile::Type |
◆ TypeId
typedef ::or_rawfile_typeid OpenRaw::RawFile::TypeId |
◆ RawFile()
OpenRaw::RawFile::RawFile |
( |
RawFile::Type | _type | ) |
|
|
protected |
Construct a raw file
- Parameters
-
Definition at line 318 of file rawfile.cpp.
◆ ~RawFile()
OpenRaw::RawFile::~RawFile |
( |
| ) |
|
|
virtual |
◆ _addThumbnail()
void OpenRaw::RawFile::_addThumbnail |
( |
uint32_t | size, |
|
|
const Internals::ThumbDesc & | desc ) |
|
protected |
◆ _enumThumbnailSizes()
virtual::or_error OpenRaw::RawFile::_enumThumbnailSizes |
( |
std::vector< uint32_t > & | list | ) |
|
|
protectedpure virtual |
enumerate the thumbnail sizes.
- Parameters
-
list | the list to enumerate into |
- Returns
- OR_ERROR_NONE if success
◆ _getBuiltinColourMatrix()
or_error OpenRaw::RawFile::_getBuiltinColourMatrix |
( |
const Internals::BuiltinColourMatrix * | m, |
|
|
TypeId | type_id, |
|
|
double * | matrix, |
|
|
uint32_t & | size ) |
|
staticprotected |
◆ _getBuiltinLevels()
or_error OpenRaw::RawFile::_getBuiltinLevels |
( |
const Internals::BuiltinColourMatrix * | m, |
|
|
TypeId | type_id, |
|
|
uint16_t & | black, |
|
|
uint16_t & | white ) |
|
staticprotected |
◆ _getCalibrationIlluminant()
ExifLightsourceValue OpenRaw::RawFile::_getCalibrationIlluminant |
( |
uint16_t | index | ) |
|
|
protectedvirtual |
◆ _getColourMatrix()
or_error OpenRaw::RawFile::_getColourMatrix |
( |
uint32_t | index, |
|
|
double * | matrix, |
|
|
uint32_t & | size ) |
|
protected |
get the colour matrix.
- Parameters
-
Definition at line 517 of file rawfile.cpp.
◆ _getMatrices()
const Internals::BuiltinColourMatrix * OpenRaw::RawFile::_getMatrices |
( |
| ) |
const |
|
protected |
◆ _getRawData()
virtual::or_error OpenRaw::RawFile::_getRawData |
( |
RawData & | data, |
|
|
uint32_t | options ) |
|
protectedpure virtual |
get the RAW data
- Parameters
-
data | the RAW data |
option | the option bits |
- Returns
- OR_ERROR_NONE if success Return the data compressed or uncompressed.
◆ _getThumbnail()
or_error OpenRaw::RawFile::_getThumbnail |
( |
uint32_t | size, |
|
|
Thumbnail & | thumbnail ) |
|
protected |
get the thumbnail of exact size.
- Parameters
-
size | the size in pixel of the square |
- Return values
-
thumbnail | the thumbnail to load |
- Returns
- OR_ERROR_NONE if success @seealso listThumbnailSizes() to understand how to fetch the sizes available
Internal implementation of getThumbnail. The size must match.
< of the buffer
Definition at line 416 of file rawfile.cpp.
◆ _setIdMap()
void OpenRaw::RawFile::_setIdMap |
( |
const camera_ids_t * | map | ) |
|
|
protected |
◆ _setMatrices()
void OpenRaw::RawFile::_setMatrices |
( |
const Internals::BuiltinColourMatrix * | matrices | ) |
|
|
protected |
◆ _setTypeId()
void OpenRaw::RawFile::_setTypeId |
( |
RawFile::TypeId | _type_id | ) |
|
|
protected |
◆ _typeId()
RawFile::TypeId OpenRaw::RawFile::_typeId |
( |
| ) |
const |
|
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.
◆ _typeIdFromMake()
RawFile::TypeId OpenRaw::RawFile::_typeIdFromMake |
( |
const std::string & | make | ) |
|
|
protected |
◆ _typeIdFromModel()
RawFile::TypeId OpenRaw::RawFile::_typeIdFromModel |
( |
const std::string & | make, |
|
|
const std::string & | model ) |
|
protected |
◆ colourMatrixSize()
uint32_t OpenRaw::RawFile::colourMatrixSize |
( |
| ) |
|
- Returns
- the number of items in the colour matrix.
Definition at line 502 of file rawfile.cpp.
◆ fileExtensions()
const char ** OpenRaw::RawFile::fileExtensions |
( |
| ) |
|
|
static |
return a NULL terminated list of file extensions that the library handle. This is purely informational.
- Returns
- a pointer the list, NULL terminated. The pointer is owned by the library.
Definition at line 159 of file rawfile.cpp.
◆ getCalibrationIlluminant1()
ExifLightsourceValue OpenRaw::RawFile::getCalibrationIlluminant1 |
( |
| ) |
|
Get calibration illuminant that match the colour matrix.
- Returns
- the Exif value. 0 = unknown. Likely not found.
Definition at line 555 of file rawfile.cpp.
◆ getCalibrationIlluminant2()
ExifLightsourceValue OpenRaw::RawFile::getCalibrationIlluminant2 |
( |
| ) |
|
◆ getColourMatrix1()
or_error OpenRaw::RawFile::getColourMatrix1 |
( |
double * | matrix, |
|
|
uint32_t & | size ) |
Get colour matrix
- Parameters
-
| 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. |
- Returns
- an error code.
Definition at line 507 of file rawfile.cpp.
◆ getColourMatrix2()
or_error OpenRaw::RawFile::getColourMatrix2 |
( |
double * | matrix, |
|
|
uint32_t & | size ) |
◆ getContainer()
virtual Internals::RawContainer * OpenRaw::RawFile::getContainer |
( |
| ) |
const |
|
protectedpure virtual |
◆ getMetaValue()
const MetaValue * OpenRaw::RawFile::getMetaValue |
( |
int32_t | meta_index | ) |
|
◆ getOrientation()
int32_t OpenRaw::RawFile::getOrientation |
( |
| ) |
|
Get the orientation of the image, using Exif enums.
Definition at line 485 of file rawfile.cpp.
◆ getRawData()
or_error OpenRaw::RawFile::getRawData |
( |
RawData & | rawdata, |
|
|
uint32_t | options ) |
Get the RAW data
- Parameters
-
rawdata | the RawData to put the data into |
options | the option bits defined by or_options |
- Returns
- the error code
Definition at line 451 of file rawfile.cpp.
◆ getRenderedImage()
or_error OpenRaw::RawFile::getRenderedImage |
( |
BitmapData & | bitmapdata, |
|
|
uint32_t | options ) |
Get the rendered image
- Parameters
-
bitmapdata | the BitmapData to put the image into |
options | the option bits. Pass 0 for now. |
- Returns
- the error code
Definition at line 473 of file rawfile.cpp.
◆ getThumbnail()
or_error OpenRaw::RawFile::getThumbnail |
( |
uint32_t | size, |
|
|
Thumbnail & | thumbnail ) |
Get the thumbnail from the raw file
- Parameters
-
size | the square size in px |
thumbnail | the thumbnail to extract into |
- Returns
- the error code
Definition at line 366 of file rawfile.cpp.
◆ listThumbnailSizes()
const std::vector< uint32_t > & OpenRaw::RawFile::listThumbnailSizes |
( |
void | | ) |
|
list the available thumbnail sizes
Definition at line 353 of file rawfile.cpp.
◆ newRawFile()
RawFile * OpenRaw::RawFile::newRawFile |
( |
const char * | _filename, |
|
|
RawFile::Type | _typeHint = OR_RAWFILE_TYPE_UNKNOWN ) |
|
static |
factory method to create the proper RawFile instance.
- Parameters
-
_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.
◆ newRawFileFromMemory()
RawFile * OpenRaw::RawFile::newRawFileFromMemory |
( |
const uint8_t * | buffer, |
|
|
uint32_t | len, |
|
|
RawFile::Type | _typeHint = OR_RAWFILE_TYPE_UNKNOWN ) |
|
static |
factory method to create the proper RawFile instance from content
- Parameters
-
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.
◆ type()
RawFile::Type OpenRaw::RawFile::type |
( |
| ) |
const |
◆ typeId()
RawFile::TypeId OpenRaw::RawFile::typeId |
( |
| ) |
|
The RAW file type ID. Identify it if needed.
- Todo
- figure how to make this const.
Definition at line 335 of file rawfile.cpp.
The documentation for this class was generated from the following files: