libopenraw
bitmapdata.h
1 /*
2  * libopenraw - bitmapdata.h
3  *
4  * Copyright (C) 2008 Novell, Inc.
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 __LIBOPENRAW_BITMAPDATA_H_
23 #define __LIBOPENRAW_BITMAPDATA_H_
24 
25 #include <libopenraw/types.h>
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
31 typedef struct _BitmapData *ORBitmapDataRef;
32 
33 
34 ORBitmapDataRef
35 or_bitmapdata_new(void);
36 
37 or_error
38 or_bitmapdata_release(ORBitmapDataRef bitmapdata);
39 
40 or_data_type
41 or_bitmapdata_format(ORBitmapDataRef bitmapdata);
42 
43 void *
44 or_bitmapdata_data(ORBitmapDataRef bitmapdata);
45 
46 size_t
47 or_bitmapdata_data_size(ORBitmapDataRef bitmapdata);
48 
49 void
50 or_bitmapdata_dimensions(ORBitmapDataRef bitmapdata,
51  uint32_t *x, uint32_t *y);
52 
53 uint32_t
54 or_bitmapdata_bpc(ORBitmapDataRef bitmapdata);
55 
56 #ifdef __cplusplus
57 }
58 #endif
59 
60 #endif
61 /*
62  Local Variables:
63  mode:c++
64  c-file-style:"stroustrup"
65  c-file-offsets:((innamespace . 0))
66  indent-tabs-mode:nil
67  fill-column:80
68  End:
69 */