#include <thumbnail.h>
Public Types | |
| typedef ::or_data_type | DataType |
Public Member Functions | |
| Thumbnail () | |
| ~Thumbnail () | |
| DataType | dataType () const |
| void | setDataType (Thumbnail::DataType _type) |
| void * | allocData (const size_t s) |
| size_t | size () const |
| void * | data () const |
| uint32_t | x () |
| uint32_t | y () |
| void | setDimensions (uint32_t x, uint32_t y) |
Static Public Member Functions | |
| static Thumbnail * | getAndExtractThumbnail (const char *_filename, uint32_t preferred_size,::or_error &err) |
Classes | |
| class | Private |
Definition at line 32 of file thumbnail.h.
| static Thumbnail* OpenRaw::Thumbnail::getAndExtractThumbnail | ( | const char * | _filename, | |
| uint32_t | preferred_size, | |||
| ::or_error & | err | |||
| ) | [static] |
quick and dirty "get this thumbnail"
| _filename | the filename | |
| preferred_size | the size of the thumbnail |
| err | the error code |
| Thumbnail::DataType OpenRaw::Thumbnail::dataType | ( | ) | const |
return the data type
Definition at line 98 of file thumbnail.cpp.
References OpenRaw::Thumbnail::Private::data_type.
| void OpenRaw::Thumbnail::setDataType | ( | Thumbnail::DataType | _type | ) |
set the data type
Definition at line 103 of file thumbnail.cpp.
References OpenRaw::Thumbnail::Private::data_type.
Referenced by OpenRaw::Internals::CRWFile::_getThumbnail().
| size_t OpenRaw::Thumbnail::size | ( | ) | const |
return the size of the data
Definition at line 118 of file thumbnail.cpp.
References OpenRaw::Thumbnail::Private::data_size.
| void OpenRaw::Thumbnail::setDimensions | ( | uint32_t | x, | |
| uint32_t | y | |||
| ) |
set the pixel dimensions of the thumbnail
Definition at line 138 of file thumbnail.cpp.
References OpenRaw::Thumbnail::Private::x, and OpenRaw::Thumbnail::Private::y.
Referenced by OpenRaw::Internals::CRWFile::_getThumbnail().
1.5.1