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
00009  * License as published by the Free Software Foundation; either
00010  * version 2.1 of 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, write to the Free Software
00019  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
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 
00070 #ifdef __cplusplus
00071 }
00072 #endif
00073 
00074 #endif

Generated on Tue Jun 17 11:47:19 2008 for libopenraw by  doxygen 1.5.6