libopenraw
|
Public Member Functions | |
CRWFile (IO::Stream *) | |
![]() | |
virtual | ~RawFile () |
Type | type () const |
TypeId | typeId () |
const std::vector< uint32_t > & | listThumbnailSizes (void) |
::or_error | getThumbnail (uint32_t size, Thumbnail &thumbnail) |
::or_error | getRawData (RawData &rawdata, uint32_t options) |
::or_error | getRenderedImage (BitmapData &bitmapdata, uint32_t options) |
int32_t | getOrientation () |
const MetaValue * | getMetaValue (int32_t meta_index) |
Static Public Member Functions | |
static RawFile * | factory (IO::Stream *) |
![]() | |
static const char ** | fileExtensions () |
static RawFile * | newRawFile (const char *_filename, Type _typeHint=OR_RAWFILE_TYPE_UNKNOWN) |
static RawFile * | newRawFileFromMemory (const uint8_t *buffer, uint32_t len, Type _typeHint=OR_RAWFILE_TYPE_UNKNOWN) |
Protected Member Functions | |
virtual ::or_error | _enumThumbnailSizes (std::vector< uint32_t > &list) |
virtual ::or_error | _getThumbnail (uint32_t size, Thumbnail &thumbnail) |
virtual ::or_error | _getRawData (RawData &data, uint32_t options) |
virtual MetaValue * | _getMetaValue (int32_t meta_index) |
virtual void | _identifyId () |
![]() | |
RawFile (IO::Stream *s, Type _type) | |
void | _setTypeId (TypeId _type_id) |
TypeId | _typeIdFromModel (const std::string &model) |
void | _setIdMap (const camera_ids_t *map) |
Additional Inherited Members | |
![]() | |
typedef ::or_rawfile_type | Type |
typedef ::or_rawfile_typeid | TypeId |
|
protectedvirtual |
enumerate the thumbnail sizes.
list | the list to enumerate into |
Implements OpenRaw::RawFile.
Definition at line 98 of file crwfile.cpp.
References OpenRaw::Internals::CIFF::RecordEntry::isA().
|
protectedvirtual |
get the RAW data
data | the RAW data |
option | the option bits |
Implements OpenRaw::RawFile.
Definition at line 160 of file crwfile.cpp.
References OpenRaw::Internals::CIFF::RecordEntry::fetchData(), OpenRaw::Internals::CIFF::RecordEntry::isA(), OpenRaw::Internals::RawContainer::readUInt16(), OpenRaw::Internals::RawContainer::readUInt32(), OpenRaw::IO::Stream::seek(), OpenRaw::BitmapData::setDataType(), OpenRaw::RawData::setDimensions(), OpenRaw::BitmapData::size(), and OpenRaw::RawData::swap().
|
protectedvirtual |
get the thumbnail of exact size.
size | the size in pixel of the square |
thumbnail | the thumbnail to load |
Implements OpenRaw::RawFile.
Definition at line 130 of file crwfile.cpp.
References OpenRaw::Internals::CIFF::RecordEntry::isA(), OpenRaw::BitmapData::setDataType(), and OpenRaw::BitmapData::setDimensions().