libopenraw
Classes | Public Types | Public Member Functions | List of all members
OpenRaw::BitmapData Class Reference
Inheritance diagram for OpenRaw::BitmapData:
OpenRaw::RawData OpenRaw::Thumbnail

Classes

class  Private
 

Public Types

typedef ::or_data_type DataType
 

Public Member Functions

void swap (BitmapData &with)
 
DataType dataType () const
 
void setDataType (DataType _type)
 
virtual void * allocData (const size_t s)
 
size_t size () const
 
void * data () const
 
OR_DEPRECATED uint32_t x () const
 
uint32_t width () const
 
OR_DEPRECATED uint32_t y () const
 
uint32_t height () const
 
uint32_t bpc () const
 
void setBpc (uint32_t _bpc)
 
virtual void setDimensions (uint32_t x, uint32_t y)
 
uint32_t roi_x () const
 
uint32_t roi_y () const
 
uint32_t roi_width () const
 
uint32_t roi_height () const
 
void setRoi (uint32_t x, uint32_t y, uint32_t w, uint32_t h)
 

Detailed Description

Definition at line 31 of file bitmapdata.hpp.

Member Function Documentation

◆ bpc()

uint32_t OpenRaw::BitmapData::bpc ( ) const

bit per channel

Definition at line 159 of file bitmapdata.cpp.

Referenced by OpenRaw::Internals::NefFile::isCompressed().

◆ dataType()

BitmapData::DataType OpenRaw::BitmapData::dataType ( ) const

return the data type

Definition at line 95 of file bitmapdata.cpp.

Referenced by OpenRaw::RawData::getRenderedImage().

◆ roi_x()

uint32_t OpenRaw::BitmapData::roi_x ( ) const

retrieve the region of interest 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 181 of file bitmapdata.cpp.

◆ setBpc()

void OpenRaw::BitmapData::setBpc ( uint32_t  _bpc)

◆ setDataType()

void OpenRaw::BitmapData::setDataType ( BitmapData::DataType  _type)

◆ setDimensions()

void OpenRaw::BitmapData::setDimensions ( uint32_t  x,
uint32_t  y 
)
virtual

◆ size()

size_t OpenRaw::BitmapData::size ( ) const

◆ swap()

void OpenRaw::BitmapData::swap ( BitmapData with)

swap the two objects data.

Definition at line 90 of file bitmapdata.cpp.

Referenced by OpenRaw::RawData::swap().

◆ x()

uint32_t OpenRaw::BitmapData::x ( ) const

width of the image data

Definition at line 139 of file bitmapdata.cpp.

◆ y()

uint32_t OpenRaw::BitmapData::y ( ) const

height of the image data

Definition at line 149 of file bitmapdata.cpp.


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