libopenraw
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 
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;
79 
81  BitmapData(const BitmapData& f);
83  BitmapData & operator=(const BitmapData&);
84 };
85 
86 }
87 
88 
89 
90 #endif
CIFF is the container for CRW files. It is an attempt from Canon to make this a standard. I guess it failed.
Definition: arwfile.cpp:30
uint32_t bpc() const
Definition: bitmapdata.cpp:159
OR_DEPRECATED uint32_t x() const
Definition: bitmapdata.cpp:139
uint32_t roi_x() const
Definition: bitmapdata.cpp:181
size_t size() const
Definition: bitmapdata.cpp:129
virtual void setDimensions(uint32_t x, uint32_t y)
Definition: bitmapdata.cpp:169
void setBpc(uint32_t _bpc)
Definition: bitmapdata.cpp:164
void swap(BitmapData &with)
Definition: bitmapdata.cpp:90
OR_DEPRECATED uint32_t y() const
Definition: bitmapdata.cpp:149
void setDataType(DataType _type)
Definition: bitmapdata.cpp:100
DataType dataType() const
Definition: bitmapdata.cpp:95