|
libopenraw
0.3.7
|
Access the thumbnails. More...
Functions | |
| or_error | or_get_extract_thumbnail (const char *filename, uint32_t preferred_size, ORThumbnailRef *thumb) |
| Extract thumbnail for raw file. More... | |
| ORThumbnailRef | or_thumbnail_new (void) |
| Allocate a Thumbnail object. More... | |
| or_error | or_thumbnail_release (ORThumbnailRef thumb) |
| Release a Thumbnail object. More... | |
| or_data_type | or_thumbnail_format (ORThumbnailRef thumb) |
| Get the thumbnail format. More... | |
| void * | or_thumbnail_data (ORThumbnailRef thumb) |
| Get the pointer to the data. More... | |
| size_t | or_thumbnail_data_size (ORThumbnailRef thumb) |
| Get the data size. More... | |
| void | or_thumbnail_dimensions (ORThumbnailRef thumb, uint32_t *x, uint32_t *y) |
| Get the Thumbnail dimensions in pixels. More... | |
Access the thumbnails.
| or_error or_get_extract_thumbnail | ( | const char * | filename, |
| uint32_t | preferred_size, | ||
| ORThumbnailRef * | thumb | ||
| ) |
Extract thumbnail for raw file.
See or_rawfile_get_thumbnail() for details. Will return OR_ERROR_CANT_OPEN if the file can't be open.
| filename | The path to the file to extract from. |
| preferred_size | Preferred thumbnail size. |
| [in/out] | thumb The thumbnail object ref to store it in If the ref is NULL, then a new one is allocated. It is the responsibility of the caller to release it. |
Definition at line 40 of file capi.cpp.
References OR_ERROR_NONE.
| void* or_thumbnail_data | ( | ORThumbnailRef | thumb | ) |
Get the pointer to the data.
See or_thumbnail_data_size() to know the size.
Definition at line 76 of file capi.cpp.
Referenced by OrDiag::extractThumb().
| size_t or_thumbnail_data_size | ( | ORThumbnailRef | thumb | ) |
Get the data size.
Definition at line 82 of file capi.cpp.
Referenced by OrDiag::dumpPreviews(), and OrDiag::extractThumb().
| void or_thumbnail_dimensions | ( | ORThumbnailRef | thumb, |
| uint32_t * | x, | ||
| uint32_t * | y | ||
| ) |
Get the Thumbnail dimensions in pixels.
| [out] | x | The horizontal dimension. Can be NULL. |
| [out] | y | The vertical dimension. Can be NULL. |
Definition at line 88 of file capi.cpp.
References OpenRaw::BitmapData::height(), and OpenRaw::BitmapData::width().
Referenced by OrDiag::dumpPreviews(), and OrDiag::extractThumb().
| or_data_type or_thumbnail_format | ( | ORThumbnailRef | thumb | ) |
Get the thumbnail format.
Definition at line 70 of file capi.cpp.
Referenced by OrDiag::dumpPreviews(), and OrDiag::extractThumb().
| ORThumbnailRef or_thumbnail_new | ( | void | ) |
Allocate a Thumbnail object.
Definition at line 53 of file capi.cpp.
Referenced by OrDiag::dumpPreviews().
| or_error or_thumbnail_release | ( | ORThumbnailRef | thumb | ) |
Release a Thumbnail object.
| thumb | The Thumbnail objet to release. |
Definition at line 60 of file capi.cpp.
References OR_ERROR_NONE, and OR_ERROR_NOTAREF.
Referenced by OrDiag::dumpPreviews().