|
libopenraw
0.3.7
|
Represent camera raw data. More...
#include <rawdata.hpp>
Classes | |
| class | Private |
Public Member Functions | |
| RawData (const RawData &f)=delete | |
| RawData & | operator= (const RawData &)=delete |
| ::or_error | getRenderedImage (BitmapData &bitmapdata, uint32_t options) |
| uint16_t | blackLevel () const |
| uint16_t | whiteLevel () const |
| void | setBlackLevel (uint16_t _m) |
| void | setWhiteLevel (uint16_t _m) |
| uint32_t | activeAreaX () const |
| uint32_t | activeAreaY () const |
| uint32_t | activeAreaWidth () const |
| uint32_t | activeAreaHeight () const |
| void | setActiveArea (uint32_t x, uint32_t y, uint32_t w, uint32_t h) |
| void | setPhotometricInterpretation (ExifPhotometricInterpretation pi) |
| ExifPhotometricInterpretation | getPhotometricInterpretation () const |
| const double * | getColourMatrix1 (uint32_t &size) const |
| void | setColourMatrix1 (const double *matrix, uint32_t size) |
| const double * | getColourMatrix2 (uint32_t &size) const |
| void | setColourMatrix2 (const double *matrix, uint32_t size) |
| void | swap (RawData &with) |
| virtual void * | allocData (const size_t s) override |
| virtual void | setDimensions (uint32_t x, uint32_t y) override |
| Set the pixel dimensions of the bitmap. | |
| void | setCfaPatternType (::or_cfa_pattern t) |
| const MosaicInfo * | mosaicInfo () const |
| void | setMosaicInfo (const MosaicInfo *mosaic_info) |
| uint32_t | compression () const |
| void | setCompression (uint32_t c) |
| void | setSlices (const std::vector< uint16_t > &slices) |
| RawData & | append (uint16_t c) |
Public Member Functions inherited from OpenRaw::BitmapData | |
| void | swap (BitmapData &with) |
| Swap the two objects data. | |
| DataType | dataType () const |
| Get the data type. | |
| void | setDataType (DataType _type) |
| Set the data type. | |
| size_t | size () const |
| Get the size of the data. | |
| void * | data () const |
| uint32_t | width () const |
| Width of the image data. | |
| uint32_t | height () const |
| Height of the image data. | |
| uint32_t | bpc () const |
| Bit per channel. | |
| void | setBpc (uint32_t _bpc) |
| Set bit per channel. | |
| void | adjustSize (size_t size) |
Static Public Member Functions | |
| static RawData * | getAndExtractRawData (const char *filename, uint32_t options, or_error &err) |
Additional Inherited Members | |
Public Types inherited from OpenRaw::BitmapData | |
| typedef ::or_data_type | DataType |
Represent camera raw data.
Definition at line 36 of file rawdata.hpp.
| uint32_t OpenRaw::RawData::activeAreaX | ( | ) | const |
retrieve the active area within the data the only guarantee is that if the width or height is 0 when setting the dimensions the first time they'll be set to width() and height()
Definition at line 209 of file rawdata.cpp.
References OpenRaw::RawData::Private::activeAreaX.
Referenced by or_rawdata_get_active_area().
| RawData & OpenRaw::RawData::append | ( | uint16_t | c | ) |
append a uint8_t at the current position append a uint18_t at the current position
Definition at line 355 of file rawdata.cpp.
References OpenRaw::BitmapData::size().
| const double * OpenRaw::RawData::getColourMatrix1 | ( | uint32_t & | size | ) | const |
Get colour matrix 1
| index | The matrix index. |
| size | the size of the buffer. |
Definition at line 248 of file rawdata.cpp.
References OpenRaw::RawData::Private::colourMatrix.
Referenced by OpenRaw::RawFile::getRawData(), and or_rawdata_get_colour_matrix().
| const double * OpenRaw::RawData::getColourMatrix2 | ( | uint32_t & | size | ) | const |
Get colour matrix 2
| index | The matrix index. |
| size | the size of the buffer. |
Definition at line 265 of file rawdata.cpp.
Referenced by or_rawdata_get_colour_matrix().
| or_error OpenRaw::RawData::getRenderedImage | ( | BitmapData & | bitmapdata, |
| uint32_t | options | ||
| ) |
Get the rendered image
| bitmapdata | the BitmapData to put the image into |
| options | the option bits. Pass 0 for now. |
Definition at line 131 of file rawdata.cpp.
References OpenRaw::BitmapData::dataType(), OR_DATA_TYPE_RAW, and OR_ERROR_INVALID_FORMAT.
Referenced by OpenRaw::RawFile::getRenderedImage(), and or_rawdata_get_rendered_image().
| const MosaicInfo * OpenRaw::RawData::mosaicInfo | ( | ) | const |
Definition at line 335 of file rawdata.cpp.
| void OpenRaw::RawData::swap | ( | RawData & | with | ) |
swap the two objects data.
Definition at line 282 of file rawdata.cpp.
References OpenRaw::BitmapData::swap().