consts.h

00001 /*
00002  * libopenraw - consts.h
00003  *
00004  * Copyright (C) 2005-2006 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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019  */
00025 #ifndef __LIBOPENRAW_CONSTS_H__
00026 #define __LIBOPENRAW_CONSTS_H__
00027 
00028 
00029 #ifdef __cplusplus
00030 extern "C" {
00031 #endif
00032 
00033     
00037     typedef enum {
00038         OR_ERROR_NONE = 0,     
00039         OR_ERROR_BUF_TOO_SMALL = 1,
00040         OR_ERROR_NOTAREF = 2,
00041         OR_ERROR_CANT_OPEN = 3, 
00042         OR_ERROR_CLOSED_STREAM = 4, 
00043         OR_ERROR_NOT_FOUND = 5,   
00044         OR_ERROR_UNKNOWN = 42,
00045         OR_ERROR_LAST_ 
00046     } or_error;
00047 
00048     
00051     typedef enum {
00052         OR_RAWFILE_TYPE_UNKNOWN = 0, 
00053         OR_RAWFILE_TYPE_CR2, 
00054         OR_RAWFILE_TYPE_CRW, 
00055         OR_RAWFILE_TYPE_NEF, 
00056         OR_RAWFILE_TYPE_MRW, 
00057         OR_RAWFILE_TYPE_ARW, 
00058         OR_RAWFILE_TYPE_DNG, 
00059         OR_RAWFILE_TYPE_ORF, 
00060         OR_RAWFILE_TYPE_PEF  
00061     } or_rawfile_type;
00062 
00063 #if 0
00064 
00070     typedef enum {
00071         OR_THUMB_SIZE_NONE = 0, 
00072         OR_THUMB_SIZE_SMALL,    
00073         OR_THUMB_SIZE_LARGE,    
00074         OR_THUMB_SIZE_PREVIEW   
00075     } or_thumb_size;
00076 #endif
00077 
00078 
00079     typedef enum {
00080         OR_DATA_TYPE_NONE = 0,
00081         OR_DATA_TYPE_PIXMAP_8RGB, 
00082         OR_DATA_TYPE_JPEG,        
00083         OR_DATA_TYPE_TIFF,        
00084         OR_DATA_TYPE_PNG,         
00086         OR_DATA_TYPE_UNKNOWN
00087     } or_data_type;
00088 
00089 #ifdef __cplusplus
00090 }
00091 #endif
00092 
00093 #endif

Generated on Sat Jan 27 11:36:13 2007 for libopenraw by  doxygen 1.4.7