26#include <libopenraw/consts.h>
27#include <libopenraw/debug.h>
30#include "bitmapdata.hpp"
77 Private(
const Private &) =
delete;
78 Private &operator=(
const Private &) =
delete;
81BitmapData::BitmapData() : d(new BitmapData::Private())
85BitmapData::~BitmapData()
92 std::swap(this->d, with.d);
105 case OR_DATA_TYPE_NONE:
108 case OR_DATA_TYPE_COMPRESSED_RAW:
109 case OR_DATA_TYPE_RAW:
112 case OR_DATA_TYPE_PIXMAP_8RGB:
113 case OR_DATA_TYPE_JPEG:
120void *BitmapData::allocData(
const size_t s)
122 LOGDBG1(
"allocate s=%lu data =%p\n", s, d->
data);
123 d->
data = calloc(s, 1);
124 LOGDBG1(
" data =%p\n", d->
data);
134void *BitmapData::data()
const
144uint32_t BitmapData::width()
const
154uint32_t BitmapData::height()
const
186uint32_t BitmapData::roi_y()
const
191uint32_t BitmapData::roi_width()
const
196uint32_t BitmapData::roi_height()
const
201void BitmapData::setRoi(uint32_t _x, uint32_t _y, uint32_t w, uint32_t h)
void setDataType(DataType _type)
void swap(BitmapData &with)
void setBpc(uint32_t _bpc)
virtual void setDimensions(uint32_t x, uint32_t y)
OR_DEPRECATED uint32_t x() const
DataType dataType() const
OR_DEPRECATED uint32_t y() const
CIFF is the container for CRW files. It is an attempt from Canon to make this a standard....