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
29namespace OpenRaw {
30
31class BitmapData
32{
33public:
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);
76private:
77 class Private;
79
81 BitmapData(const BitmapData& f);
83 BitmapData & operator=(const BitmapData&);
84};
85
86}
87
88
89
90#endif
OR_DEPRECATED uint32_t x() const
OR_DEPRECATED uint32_t y() const
void setDataType(DataType _type)
uint32_t roi_x() const
void swap(BitmapData &with)
void setBpc(uint32_t _bpc)
size_t size() const
virtual void setDimensions(uint32_t x, uint32_t y)
OR_DEPRECATED uint32_t x() const
DataType dataType() const
OR_DEPRECATED uint32_t y() const
uint32_t bpc() const
CIFF is the container for CRW files. It is an attempt from Canon to make this a standard....
Definition arwfile.cpp:30