rawdata.h

00001 /*
00002  * libopenraw - rawdata.h
00003  *
00004  * Copyright (C) 2007 Hubert Figuiere
00005  * Copyright (C) 2008 Novell, Inc.
00006  *
00007  * This library is free software: you can redistribute it and/or
00008  * modify it under the terms of the GNU Lesser General Public License
00009  * as published by the Free Software Foundation, either version 3 of
00010  * the License, or (at your option) any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with this library.  If not, see
00019  * <http://www.gnu.org/licenses/>.
00020  */
00021 
00022 
00023 #ifndef __LIBOPENRAW_RAWDATA_H_
00024 #define __LIBOPENRAW_RAWDATA_H_
00025 
00026 #include <libopenraw/types.h>
00027 
00028 #ifdef __cplusplus
00029 extern "C" {
00030 #endif
00031 
00032     typedef struct _RawData *ORRawDataRef;
00033 
00039     or_error or_get_extract_rawdata(const char* filename, uint32_t options,
00040                                                                     ORRawDataRef *rawdata);
00041     
00042     ORRawDataRef
00043     or_rawdata_new(void);
00044 
00045     or_error
00046     or_rawdata_release(ORRawDataRef rawdata);
00047 
00048     or_data_type 
00049     or_rawdata_format(ORRawDataRef rawdata);
00050 
00051     void *
00052     or_rawdata_data(ORRawDataRef rawdata);
00053 
00054     size_t
00055     or_rawdata_data_size(ORRawDataRef rawdata);
00056 
00057     void
00058     or_rawdata_dimensions(ORRawDataRef rawdata, 
00059                           uint32_t *x, uint32_t *y);
00060 
00061     uint32_t
00062     or_rawdata_bpc(ORRawDataRef rawdata);
00063 
00067     or_cfa_pattern
00068     or_rawdata_get_cfa_pattern(ORRawDataRef rawdata);
00069 
00077     or_error
00078     or_rawdata_get_minmax(ORRawDataRef rawdata, uint16_t *min, uint16_t *max);
00079 
00080 
00081 #ifdef __cplusplus
00082 }
00083 #endif
00084 
00085 #endif

Generated on Sat Aug 15 17:27:04 2009 for libopenraw by  doxygen 1.5.9