|
libopenraw
0.3.7
|
Decode the raw file. More...
Functions | |
| const char ** | or_get_file_extensions () |
| Return a NULL terminated list of extensions that the library supposedly handle. More... | |
| ORRawFileRef | or_rawfile_new (const char *filename, or_rawfile_type type) |
| Create a new RawFile object from a file. More... | |
| ORRawFileRef | or_rawfile_new_from_memory (const uint8_t *buffer, uint32_t len, or_rawfile_type type) |
| Create a new RawFile object from a memory buffer. More... | |
| or_error | or_rawfile_release (ORRawFileRef rawfile) |
| Release the RawFile. More... | |
| or_rawfile_type | or_rawfile_get_type (ORRawFileRef rawfile) |
| Get the RawFile type. More... | |
| or_rawfile_typeid | or_rawfile_get_typeid (ORRawFileRef rawfile) |
| Return the type id to identify the exact file type. More... | |
| or_rawfile_typeid | or_rawfile_get_vendorid (ORRawFileRef rawfile) |
| Return the type id to identify the vendor. More... | |
| const uint32_t * | or_rawfile_get_thumbnail_sizes (ORRawFileRef rawfile, size_t *size) |
| Get the the array of thumbnail sizes. More... | |
| or_error | or_rawfile_get_thumbnail (ORRawFileRef rawfile, uint32_t preferred_size, ORThumbnailRef thumb) |
| Get a thumbnail from a RawFile.. More... | |
| or_error | or_rawfile_get_rawdata (ORRawFileRef rawfile, ORRawDataRef rawdata, uint32_t options) |
| Get the RawData out of the RawFile. More... | |
| or_error | or_rawfile_get_rendered_image (ORRawFileRef rawfile, ORBitmapDataRef rawdata, uint32_t options) |
| Get the rendered image from the raw file. More... | |
| int32_t | or_rawfile_get_orientation (ORRawFileRef rawfile) |
| Get the orientation. More... | |
| or_error | or_rawfile_get_colourmatrix1 (ORRawFileRef rawfile, double *matrix, uint32_t *size) |
| Get the first colour matrix. More... | |
| or_error | or_rawfile_get_colourmatrix2 (ORRawFileRef rawfile, double *matrix, uint32_t *size) |
| Get the second colour matrix. More... | |
| ExifLightsourceValue | or_rawfile_get_calibration_illuminant1 (ORRawFileRef rawfile) |
| Get calibration illuminant for the first colour matrix. More... | |
| ExifLightsourceValue | or_rawfile_get_calibration_illuminant2 (ORRawFileRef rawfile) |
| Get calibration illuminant for the second colour matrix. More... | |
| or_colour_matrix_origin | or_rawfile_get_colour_matrix_origin (ORRawFileRef rawfile) |
| Get the colour matrix origin for file. More... | |
| ORConstMetaValueRef | or_rawfile_get_metavalue (ORRawFileRef rawfile, int32_t meta_index) |
| Get the metadata value. More... | |
| ORIfdDirRef | or_rawfile_get_ifd (ORRawFileRef rawfile, or_ifd_dir_type ifd) |
| Get an IFD directory. More... | |
| ORMetadataIteratorRef | or_rawfile_get_metadata_iterator (ORRawFileRef rawfile) |
| Get a metadata iterator. More... | |
Decode the raw file.
| const char** or_get_file_extensions | ( | ) |
Return a NULL terminated list of extensions that the library supposedly handle.
Definition at line 58 of file rawfile.cpp.
| ExifLightsourceValue or_rawfile_get_calibration_illuminant1 | ( | ORRawFileRef | rawfile | ) |
Get calibration illuminant for the first colour matrix.
Definition at line 190 of file rawfile.cpp.
References OpenRaw::RawFile::getCalibrationIlluminant1().
| ExifLightsourceValue or_rawfile_get_calibration_illuminant2 | ( | ORRawFileRef | rawfile | ) |
Get calibration illuminant for the second colour matrix.
Definition at line 198 of file rawfile.cpp.
| or_colour_matrix_origin or_rawfile_get_colour_matrix_origin | ( | ORRawFileRef | rawfile | ) |
Get the colour matrix origin for file.
This allow to determine if it is provided by the file or as a hardcoded value in the library.
| rawfile | The RawFile object |
Definition at line 206 of file rawfile.cpp.
References OpenRaw::RawFile::getColourMatrixOrigin(), and OR_COLOUR_MATRIX_UNKNOWN.
| or_error or_rawfile_get_colourmatrix1 | ( | ORRawFileRef | rawfile, |
| double * | matrix, | ||
| uint32_t * | size | ||
| ) |
Get the first colour matrix.
The error code will be one of the following: OR_ERROR_BUF_TOO_SMALL if matrix is too small. Check the value of size to know how much you need. OR_ERROR_NOT_IMPLEMENTED if there is no matrix in the file nor built-in matrices.
Call or_rawfile_get_colour_matrix_origin() if you want to know if it is a built-in matrix.
| rawfile | The RAW file object |
| [int] | matrix The storage array for the matrix |
| [in/out] | size The size of the matrix array. On output the actual size of the matrix. |
Definition at line 170 of file rawfile.cpp.
References OpenRaw::RawFile::getColourMatrix1(), OR_ERROR_INVALID_PARAM, and OR_ERROR_NOTAREF.
| or_error or_rawfile_get_colourmatrix2 | ( | ORRawFileRef | rawfile, |
| double * | matrix, | ||
| uint32_t * | size | ||
| ) |
Get the second colour matrix.
See or_rawfile_get_colourmatrix1 for details. Will return OR_ERROR_INVALID_PARAM if the matrix doesn't exist in the file. There won't be a built-in matrix.
Definition at line 180 of file rawfile.cpp.
References OR_ERROR_INVALID_PARAM, and OR_ERROR_NOTAREF.
| ORIfdDirRef or_rawfile_get_ifd | ( | ORRawFileRef | rawfile, |
| or_ifd_dir_type | ifd | ||
| ) |
Get an IFD directory.
| rawfile | The RawFile object. |
| ifd | The IFD you want, from or_ifd_dir_type. |
Definition at line 222 of file rawfile.cpp.
References OpenRaw::RawFile::cfaIfd(), OpenRaw::RawFile::exifIfd(), OpenRaw::RawFile::mainIfd(), OpenRaw::RawFile::makerNoteIfd(), OR_IFD_EXIF, OR_IFD_MAIN, OR_IFD_MNOTE, and OR_IFD_RAW.
| ORMetadataIteratorRef or_rawfile_get_metadata_iterator | ( | ORRawFileRef | rawfile | ) |
Get a metadata iterator.
| rawfile | The RawFile object. |
Definition at line 251 of file rawfile.cpp.
| ORConstMetaValueRef or_rawfile_get_metavalue | ( | ORRawFileRef | rawfile, |
| int32_t | meta_index | ||
| ) |
Get the metadata value.
| rawfile | the RawFile object. |
| meta_index | the index value which a bit OR between a namespace and an index |
Definition at line 214 of file rawfile.cpp.
References OpenRaw::RawFile::getMetaValue().
Referenced by dump_file_info().
| int32_t or_rawfile_get_orientation | ( | ORRawFileRef | rawfile | ) |
Get the orientation.
This is a convenince method, equivalent to getting the value of EXIF_TAG_ORIENTATION.
| rawfile | The RawFile object. |
Definition at line 162 of file rawfile.cpp.
References OpenRaw::RawFile::getOrientation().
| or_error or_rawfile_get_rawdata | ( | ORRawFileRef | rawfile, |
| ORRawDataRef | rawdata, | ||
| uint32_t | options | ||
| ) |
Get the RawData out of the RawFile.
Will return an error code: OR_ERROR_NOT_FOUND if the RAW data can't be located. This likely indicate a file that isn't properly supported.
The RawData object will contain the uncompress RAW data if possible (unless otherwise requested).
| rawfile | The RawFile. |
| [in/out] | rawdata An allocated RawData object. Pass OR_OPTIONS_DONT_DECOMPRESS if you don't want the RAW data stream to be decompressed, OR_OPTIONS_NONE otherwise. |
| options | Some options. |
Definition at line 142 of file rawfile.cpp.
References OpenRaw::RawFile::getRawData(), and OR_ERROR_NOTAREF.
| or_error or_rawfile_get_rendered_image | ( | ORRawFileRef | rawfile, |
| ORBitmapDataRef | rawdata, | ||
| uint32_t | options | ||
| ) |
Get the rendered image from the raw file.
| rawfile | The raw file. |
| rawdata | The preallocated bitmap data. |
| options | Option for rendering. Pass OR_OPTIONS_NONE for now. |
Definition at line 151 of file rawfile.cpp.
References OpenRaw::RawFile::getRenderedImage(), and OR_ERROR_NOTAREF.
| or_error or_rawfile_get_thumbnail | ( | ORRawFileRef | rawfile, |
| uint32_t | preferred_size, | ||
| ORThumbnailRef | thumb | ||
| ) |
Get a thumbnail from a RawFile..
Get a thumbnail close to the preferred size. If there is no exact match, it will prefer a bigger thumbnail so that you can downsize it.
Return an error in case or error. OR_ERROR_NOT_FOUND if no thumbnail can be found.
| rawfile | The RawFile object. |
| preferred_size | The requested preferred size. |
| [in/out] | thumb The Thumbnail object to store the data. |
Definition at line 131 of file rawfile.cpp.
References OpenRaw::RawFile::getThumbnail(), and OR_ERROR_NOTAREF.
Referenced by OrDiag::dumpPreviews().
| const uint32_t* or_rawfile_get_thumbnail_sizes | ( | ORRawFileRef | rawfile, |
| size_t * | size | ||
| ) |
Get the the array of thumbnail sizes.
| rawfile | The RawFile. | |
| [out] | size | The size of the array is returned |
Definition at line 113 of file rawfile.cpp.
References OpenRaw::RawFile::listThumbnailSizes().
Referenced by OrDiag::dumpPreviews().
| or_rawfile_type or_rawfile_get_type | ( | ORRawFileRef | rawfile | ) |
Get the RawFile type.
Definition at line 89 of file rawfile.cpp.
References OR_RAWFILE_TYPE_UNKNOWN, and OpenRaw::RawFile::type().
Referenced by dump_file_info().
| or_rawfile_typeid or_rawfile_get_typeid | ( | ORRawFileRef | rawfile | ) |
Return the type id to identify the exact file type.
Definition at line 97 of file rawfile.cpp.
References OR_RAWFILE_TYPE_UNKNOWN, and OpenRaw::RawFile::typeId().
Referenced by dump_file_info().
| or_rawfile_typeid or_rawfile_get_vendorid | ( | ORRawFileRef | rawfile | ) |
Return the type id to identify the vendor.
Definition at line 105 of file rawfile.cpp.
References OR_RAWFILE_TYPE_UNKNOWN.
Referenced by dump_file_info().
| ORRawFileRef or_rawfile_new | ( | const char * | filename, |
| or_rawfile_type | type | ||
| ) |
Create a new RawFile object from a file.
| filename | The path to the file to open. |
| type | The hint for the file type. Pass OR_RAWFILE_TYPE_UNKNOWN to let the library guess. |
Definition at line 64 of file rawfile.cpp.
| ORRawFileRef or_rawfile_new_from_memory | ( | const uint8_t * | buffer, |
| uint32_t | len, | ||
| or_rawfile_type | type | ||
| ) |
Create a new RawFile object from a memory buffer.
| buffer | The memory buffer: bytes from the RAW file. |
| len | The length of the memory buffer in bytes. |
| type | The hint for the file type. Pass OR_RAWFILE_TYPE_UNKNOWN to let the library guess. |
Definition at line 72 of file rawfile.cpp.
| or_error or_rawfile_release | ( | ORRawFileRef | rawfile | ) |
Release the RawFile.
| [in] | rawfile | The RawFile object to release. |
Definition at line 81 of file rawfile.cpp.
References OR_ERROR_NONE, and OR_ERROR_NOTAREF.