libopenraw
bitmapdata.h
1/*
2 * libopenraw - bitmapdata.h
3 *
4 * Copyright (C) 2008 Novell, Inc.
5 * Copyright (C) 2012 Hubert Figuière
6 *
7 * This library is free software: you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public License
9 * as published by the Free Software Foundation, either version 3 of
10 * the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library. If not, see
19 * <http://www.gnu.org/licenses/>.
20 */
21
22
23#ifndef LIBOPENRAW_BITMAPDATA_H_
24#define LIBOPENRAW_BITMAPDATA_H_
25
26#include <stdlib.h>
27
28#include <libopenraw/types.h>
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
34
35ORBitmapDataRef
36or_bitmapdata_new(void);
37
38or_error
39or_bitmapdata_release(ORBitmapDataRef bitmapdata);
40
41or_data_type
42or_bitmapdata_format(ORBitmapDataRef bitmapdata);
43
44void *
45or_bitmapdata_data(ORBitmapDataRef bitmapdata);
46
47size_t
48or_bitmapdata_data_size(ORBitmapDataRef bitmapdata);
49
50void
51or_bitmapdata_dimensions(ORBitmapDataRef bitmapdata,
52 uint32_t *x, uint32_t *y);
53
54uint32_t
55or_bitmapdata_bpc(ORBitmapDataRef bitmapdata);
56
57#ifdef __cplusplus
58}
59#endif
60
61#endif
62/*
63 Local Variables:
64 mode:c++
65 c-file-style:"stroustrup"
66 c-file-offsets:((innamespace . 0))
67 indent-tabs-mode:nil
68 fill-column:80
69 End:
70*/