rawfile.h

00001 /*
00002  * libopenraw - rawfile.h
00003  *
00004  * Copyright (C) 2007 Hubert Figuiere
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
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of 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, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
00019  */
00020 
00021 
00022 #ifndef __LIBOPENRAW_RAWFILE_H_
00023 #define __LIBOPENRAW_RAWFILE_H_
00024 
00025 #include <libopenraw/types.h>
00026 #include <libopenraw/rawdata.h>
00027 #include <libopenraw/thumbnails.h>
00028 #include <libopenraw/metadata.h>
00029 
00030 #ifdef __cplusplus
00031 extern "C" {
00032 #endif
00033 
00034 typedef struct _RawFile *ORRawFileRef;
00035 
00036 ORRawFileRef
00037 or_rawfile_new(const char* filename, or_rawfile_type type);
00038 
00039 or_error
00040 or_rawfile_release(ORRawFileRef rawfile);
00041 
00042 or_rawfile_type
00043 or_rawfile_get_type(ORRawFileRef rawfile);
00044 
00045 or_error
00046 or_rawfile_get_thumbnail(ORRawFileRef rawfile, uint32_t preferred_size,
00047                          ORThumbnailRef thumb);
00048 
00049 or_error
00050 or_rawfile_get_rawdata(ORRawFileRef rawfile, ORRawDataRef rawdata, 
00051                            uint32_t options);
00052 
00058 int32_t
00059 or_rawfile_get_orientation(ORRawFileRef rawfile);
00060 
00061 #if 0
00062 
00066 ORConstMetaValueRef
00067 or_rawfile_get_metavalue(ORRawFileRef rawfile, int32_t meta_index);
00068 
00074 XmpPtr
00075 or_rawfile_get_xmp(ORRawFileRef rawfile);
00076 
00077 #endif
00078 
00079 #ifdef __cplusplus
00080 }
00081 #endif
00082 
00083 #endif

Generated on Sun Mar 23 09:28:21 2008 for libopenraw by  doxygen 1.5.5