consts.h

00001 /*
00002  * libopenraw - consts.h
00003  *
00004  * Copyright (C) 2005-2008 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  */
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_INVALID_PARAM = 6,
00045         OR_ERROR_UNKNOWN = 42,
00046         OR_ERROR_LAST_ 
00047     } or_error;
00048 
00049     
00052     typedef enum {
00053         OR_RAWFILE_TYPE_UNKNOWN = 0, 
00054         OR_RAWFILE_TYPE_CR2, 
00055         OR_RAWFILE_TYPE_CRW, 
00056         OR_RAWFILE_TYPE_NEF, 
00057         OR_RAWFILE_TYPE_MRW, 
00058         OR_RAWFILE_TYPE_ARW, 
00059         OR_RAWFILE_TYPE_DNG, 
00060         OR_RAWFILE_TYPE_ORF, 
00061         OR_RAWFILE_TYPE_PEF, 
00062         OR_RAWFILE_TYPE_ERF  
00063     } or_rawfile_type;
00064 
00065     typedef enum {
00066         OR_DATA_TYPE_NONE = 0,
00067         OR_DATA_TYPE_PIXMAP_8RGB, 
00068         OR_DATA_TYPE_JPEG,        
00069         OR_DATA_TYPE_TIFF,        
00070         OR_DATA_TYPE_PNG,         
00071         OR_DATA_TYPE_CFA,         
00072         OR_DATA_TYPE_COMPRESSED_CFA, 
00074         OR_DATA_TYPE_UNKNOWN
00075     } or_data_type;
00076 
00077     typedef enum {
00078         OR_CFA_PATTERN_NONE = 0,   
00079         OR_CFA_PATTERN_NON_RGB22 = 1,
00080         OR_CFA_PATTERN_RGGB = 2,
00081         OR_CFA_PATTERN_GBRG = 3,
00082         OR_CFA_PATTERN_BGGR = 4,
00083         OR_CFA_PATTERN_GRBG = 5
00084     } or_cfa_pattern;
00085 
00086     typedef enum {
00087         OR_OPTIONS_NONE            = 0x00000000,
00088         OR_OPTIONS_DONT_DECOMPRESS = 0x00000001   
00090     } or_options;
00091 
00092 #ifdef __cplusplus
00093 }
00094 #endif
00095 
00096 #endif

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