libopenraw
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 Typedef Documentation

◆ DataType

typedef ::or_data_type OpenRaw::BitmapData::DataType

Definition at line 34 of file bitmapdata.hpp.

Constructor & Destructor Documentation

◆ BitmapData()

OpenRaw::BitmapData::BitmapData ( )

Definition at line 81 of file bitmapdata.cpp.

◆ ~BitmapData()

OpenRaw::BitmapData::~BitmapData ( )
virtual

Definition at line 85 of file bitmapdata.cpp.

Member Function Documentation

◆ allocData()

void * OpenRaw::BitmapData::allocData ( const size_t s)
virtual

Definition at line 120 of file bitmapdata.cpp.

◆ bpc()

uint32_t OpenRaw::BitmapData::bpc ( ) const

bit per channel

Definition at line 159 of file bitmapdata.cpp.

◆ data()

void * OpenRaw::BitmapData::data ( ) const

Definition at line 134 of file bitmapdata.cpp.

◆ dataType()

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

return the data type

Definition at line 95 of file bitmapdata.cpp.

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

◆ height()

uint32_t OpenRaw::BitmapData::height ( ) const

Definition at line 154 of file bitmapdata.cpp.

◆ roi_height()

uint32_t OpenRaw::BitmapData::roi_height ( ) const

Definition at line 196 of file bitmapdata.cpp.

◆ roi_width()

uint32_t OpenRaw::BitmapData::roi_width ( ) const

Definition at line 191 of file bitmapdata.cpp.

◆ 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.

◆ roi_y()

uint32_t OpenRaw::BitmapData::roi_y ( ) const

Definition at line 186 of file bitmapdata.cpp.

◆ setBpc()

◆ setDataType()

◆ setDimensions()

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

set the pixel dimensions of the bitmap

Reimplemented in OpenRaw::RawData, and RawData.

Definition at line 169 of file bitmapdata.cpp.

Referenced by OpenRaw::RawFile::_getThumbnail(), OpenRaw::RawData::getRenderedImage(), and OpenRaw::RawData::setDimensions().

◆ setRoi()

void OpenRaw::BitmapData::setRoi ( uint32_t x,
uint32_t y,
uint32_t w,
uint32_t h )

Definition at line 201 of file bitmapdata.cpp.

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

◆ width()

uint32_t OpenRaw::BitmapData::width ( ) const

Definition at line 144 of file bitmapdata.cpp.

◆ 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: