libopenraw
lib
bitmapdata.hpp
1
/*
2
* libopenraw - bitmapdata.h
3
*
4
* Copyright (C) 2007 Hubert Figuiere
5
*
6
* This library is free software: you can redistribute it and/or
7
* modify it under the terms of the GNU Lesser General Public License
8
* as published by the Free Software Foundation, either version 3 of
9
* the License, or (at your option) any later version.
10
*
11
* This library is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Lesser General Public License for more details.
15
*
16
* You should have received a copy of the GNU Lesser General Public
17
* License along with this library. If not, see
18
* <http://www.gnu.org/licenses/>.
19
*/
20
21
22
#ifndef LIBOPENRAWPP_BITMAPDATA_H_
23
#define LIBOPENRAWPP_BITMAPDATA_H_
24
25
#include <libopenraw/prefix.h>
26
#include <libopenraw/rawdata.h>
27
28
29
namespace
OpenRaw
{
30
31
class
BitmapData
32
{
33
public
:
34
typedef ::or_data_type DataType;
35
36
BitmapData
();
37
virtual
~
BitmapData
();
38
40
void
swap
(
BitmapData
& with);
41
43
DataType
dataType
()
const
;
45
void
setDataType
(DataType _type);
46
47
virtual
void
*allocData(
const
size_t
s);
49
size_t
size
()
const
;
50
void
*data()
const
;
51
53
OR_DEPRECATED uint32_t
x
()
const
;
54
uint32_t width()
const
;
56
OR_DEPRECATED uint32_t
y
()
const
;
57
uint32_t height()
const
;
59
uint32_t
bpc
()
const
;
61
void
setBpc
(uint32_t _bpc);
62
64
virtual
void
setDimensions
(uint32_t
x
, uint32_t
y
);
65
71
uint32_t
roi_x
()
const
;
72
uint32_t roi_y()
const
;
73
uint32_t roi_width()
const
;
74
uint32_t roi_height()
const
;
75
void
setRoi(uint32_t
x
, uint32_t
y
, uint32_t w, uint32_t h);
76
private
:
77
class
Private
;
78
BitmapData::Private
*d;
79
81
BitmapData
(
const
BitmapData
& f);
83
BitmapData
& operator=(
const
BitmapData
&);
84
};
85
86
}
87
88
89
90
#endif
OpenRaw::BitmapData::swap
void swap(BitmapData &with)
Definition:
bitmapdata.cpp:90
OpenRaw::BitmapData::size
size_t size() const
Definition:
bitmapdata.cpp:129
OpenRaw::BitmapData::y
OR_DEPRECATED uint32_t y() const
Definition:
bitmapdata.cpp:149
OpenRaw
CIFF is the container for CRW files. It is an attempt from Canon to make this a standard....
Definition:
arwfile.cpp:30
OpenRaw::BitmapData::setBpc
void setBpc(uint32_t _bpc)
Definition:
bitmapdata.cpp:164
OpenRaw::BitmapData::setDataType
void setDataType(DataType _type)
Definition:
bitmapdata.cpp:100
OpenRaw::BitmapData
Definition:
bitmapdata.hpp:31
OpenRaw::BitmapData::roi_x
uint32_t roi_x() const
Definition:
bitmapdata.cpp:181
OpenRaw::BitmapData::dataType
DataType dataType() const
Definition:
bitmapdata.cpp:95
OpenRaw::BitmapData::Private
Definition:
bitmapdata.cpp:36
OpenRaw::BitmapData::bpc
uint32_t bpc() const
Definition:
bitmapdata.cpp:159
OpenRaw::BitmapData::setDimensions
virtual void setDimensions(uint32_t x, uint32_t y)
Definition:
bitmapdata.cpp:169
OpenRaw::BitmapData::x
OR_DEPRECATED uint32_t x() const
Definition:
bitmapdata.cpp:139
Generated by
1.8.17