libopenraw  0.3.7
Classes | Public Member Functions | Static Public Member Functions | List of all members
OpenRaw::RawData Class Reference

Represent camera raw data. More...

#include <rawdata.hpp>

Inheritance diagram for OpenRaw::RawData:
OpenRaw::BitmapData

Classes

class  Private
 

Public Member Functions

 RawData (const RawData &f)=delete
 
RawDataoperator= (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 MosaicInfomosaicInfo () const
 
void setMosaicInfo (const MosaicInfo *mosaic_info)
 
uint32_t compression () const
 
void setCompression (uint32_t c)
 
void setSlices (const std::vector< uint16_t > &slices)
 
RawDataappend (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 RawDatagetAndExtractRawData (const char *filename, uint32_t options, or_error &err)
 

Additional Inherited Members

- Public Types inherited from OpenRaw::BitmapData
typedef ::or_data_type DataType
 

Detailed Description

Represent camera raw data.

Definition at line 36 of file rawdata.hpp.

Member Function Documentation

◆ activeAreaX()

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().

◆ append()

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().

◆ getColourMatrix1()

const double * OpenRaw::RawData::getColourMatrix1 ( uint32_t &  size) const

Get colour matrix 1

Parameters
indexThe matrix index.
sizethe size of the buffer.
Returns
an array of size double.

Definition at line 248 of file rawdata.cpp.

References OpenRaw::RawData::Private::colourMatrix.

Referenced by OpenRaw::RawFile::getRawData(), and or_rawdata_get_colour_matrix().

◆ getColourMatrix2()

const double * OpenRaw::RawData::getColourMatrix2 ( uint32_t &  size) const

Get colour matrix 2

Parameters
indexThe matrix index.
sizethe size of the buffer.
Returns
an array of size double.

Definition at line 265 of file rawdata.cpp.

Referenced by or_rawdata_get_colour_matrix().

◆ getRenderedImage()

or_error OpenRaw::RawData::getRenderedImage ( BitmapData bitmapdata,
uint32_t  options 
)

Get the rendered image

Parameters
bitmapdatathe BitmapData to put the image into
optionsthe option bits. Pass 0 for now.
Returns
the error code

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().

◆ mosaicInfo()

const MosaicInfo * OpenRaw::RawData::mosaicInfo ( ) const
Returns
the const CfaPattern*.

Definition at line 335 of file rawdata.cpp.

◆ swap()

void OpenRaw::RawData::swap ( RawData with)

swap the two objects data.

Definition at line 282 of file rawdata.cpp.

References OpenRaw::BitmapData::swap().


The documentation for this class was generated from the following files: