libopenraw
|
00001 /* 00002 * libopenraw - bitmapdata.h 00003 * 00004 * Copyright (C) 2008 Novell, Inc. 00005 * 00006 * This library is free software: you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public License 00008 * as published by the Free Software Foundation, either version 3 of 00009 * the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this library. If not, see 00018 * <http://www.gnu.org/licenses/>. 00019 */ 00020 00021 00022 #ifndef __LIBOPENRAW_BITMAPDATA_H_ 00023 #define __LIBOPENRAW_BITMAPDATA_H_ 00024 00025 #include <libopenraw/types.h> 00026 00027 #ifdef __cplusplus 00028 extern "C" { 00029 #endif 00030 00031 typedef struct _BitmapData *ORBitmapDataRef; 00032 00033 00034 ORBitmapDataRef 00035 or_bitmapdata_new(void); 00036 00037 or_error 00038 or_bitmapdata_release(ORBitmapDataRef bitmapdata); 00039 00040 or_data_type 00041 or_bitmapdata_format(ORBitmapDataRef bitmapdata); 00042 00043 void * 00044 or_bitmapdata_data(ORBitmapDataRef bitmapdata); 00045 00046 size_t 00047 or_bitmapdata_data_size(ORBitmapDataRef bitmapdata); 00048 00049 void 00050 or_bitmapdata_dimensions(ORBitmapDataRef bitmapdata, 00051 uint32_t *x, uint32_t *y); 00052 00053 uint32_t 00054 or_bitmapdata_bpc(ORBitmapDataRef bitmapdata); 00055 00056 #ifdef __cplusplus 00057 } 00058 #endif 00059 00060 #endif 00061 /* 00062 Local Variables: 00063 mode:c++ 00064 c-file-style:"stroustrup" 00065 c-file-offsets:((innamespace . 0)) 00066 indent-tabs-mode:nil 00067 fill-column:80 00068 End: 00069 */