26 #include <libopenraw/consts.h> 27 #include <libopenraw/debug.h> 30 #include "bitmapdata.hpp" 32 using namespace Debug;
59 , data_type(OR_DATA_TYPE_NONE)
85 BitmapData::~BitmapData()
92 std::swap(this->d, with.d);
95 BitmapData::DataType BitmapData::dataType()
const 100 void BitmapData::setDataType(BitmapData::DataType _type)
102 d->data_type = _type;
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:
120 void *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);
129 size_t BitmapData::size()
const 134 void *BitmapData::data()
const 139 uint32_t BitmapData::x()
const 144 uint32_t BitmapData::width()
const 149 uint32_t BitmapData::y()
const 154 uint32_t BitmapData::height()
const 159 uint32_t BitmapData::bpc()
const 164 void BitmapData::setBpc(uint32_t _bpc)
169 void BitmapData::setDimensions(uint32_t _width, uint32_t _height)
181 uint32_t BitmapData::roi_x()
const 186 uint32_t BitmapData::roi_y()
const 191 uint32_t BitmapData::roi_width()
const 196 uint32_t BitmapData::roi_height()
const 201 void BitmapData::setRoi(uint32_t _x, uint32_t _y, uint32_t w, uint32_t h)
CIFF is the container for CRW files. It is an attempt from Canon to make this a standard. I guess it failed.