29 #include <libopenraw/consts.h> 
   30 #include <libopenraw/thumbnails.h> 
   33 #include "thumbnail.hpp" 
   41                                   uint32_t _preferred_size,
 
   47     *pThumbnail = Thumbnail::getAndExtractThumbnail(_filename,
 
   48                                                     _preferred_size, ret);
 
   62     if (thumb == 
nullptr) {
 
   65     delete reinterpret_cast<Thumbnail *
>(thumb);
 
   72     return reinterpret_cast<Thumbnail *
>(thumb)->dataType();
 
   78     return reinterpret_cast<Thumbnail *
>(thumb)->data();
 
   84     return reinterpret_cast<Thumbnail *
>(thumb)->size();
 
   91     if (width != 
nullptr) {
 
   94     if (height != 
nullptr) {
 
uint32_t width() const
Width of the image data.
 
uint32_t height() const
Height of the image data.
 
struct _Thumbnail * ORThumbnailRef
Thumbnail reference.
 
or_error
Error codes returned by libopenraw.
 
API_EXPORT ORThumbnailRef or_thumbnail_new(void)
Allocate a Thumbnail object.
 
API_EXPORT size_t or_thumbnail_data_size(ORThumbnailRef thumb)
Get the data size.
 
API_EXPORT void or_thumbnail_dimensions(ORThumbnailRef thumb, uint32_t *width, uint32_t *height)
Get the Thumbnail dimensions in pixels.
 
API_EXPORT or_data_type or_thumbnail_format(ORThumbnailRef thumb)
Get the thumbnail format.
 
API_EXPORT void * or_thumbnail_data(ORThumbnailRef thumb)
Get the pointer to the data.
 
API_EXPORT or_error or_thumbnail_release(ORThumbnailRef thumb)
Release a Thumbnail object.
 
API_EXPORT or_error or_get_extract_thumbnail(const char *_filename, uint32_t _preferred_size, ORThumbnailRef *_thumb)
Extract thumbnail for raw file.