3
* Copyright 2008-2009 LibRaw LLC (info@libraw.org)
4
* Created: Sat Mar 8 , 2008
6
* LibRaw (Lite) error codes
8
This library is free software; you can redistribute it and/or
9
modify it under the terms of the GNU Lesser General Public
10
License as published by the Free Software Foundation; either
11
version 2.1 of the License, or (at your option) any later version.
13
This library is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
Lesser General Public License for more details.
18
You should have received a copy of the GNU Lesser General Public
19
License along with this library; if not, write to the Free Software
20
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23
#ifndef _LIBRAW_ERRORS_H
24
#define _LIBRAW_ERRORS_H
26
enum LibRaw_constructor_flags
28
LIBRAW_OPTIONS_NONE =0,
29
LIBRAW_OPIONS_NO_MEMERR_CALLBACK=1,
30
LIBRAW_OPIONS_NO_DATAERR_CALLBACK=1<<1
36
LIBRAW_WARN_BAD_CAMERA_WB =1<<2,
37
LIBRAW_WARN_NO_METADATA =1<<3,
38
LIBRAW_WARN_NO_JPEGLIB = 1<<4,
39
LIBRAW_WARN_NO_EMBEDDED_PROFILE = 1<<5,
40
LIBRAW_WARN_NO_INPUT_PROFILE = 1<<6,
41
LIBRAW_WARN_BAD_OUTPUT_PROFILE= 1<<7,
42
LIBRAW_WARN_NO_BADPIXELMAP=1<<8,
43
LIBRAW_WARN_BAD_DARKFRAME_FILE=1<<9,
44
LIBRAW_WARN_BAD_DARKFRAME_DIM=1<<10
47
enum LibRaw_exceptions
49
LIBRAW_EXCEPTION_NONE =0,
50
LIBRAW_EXCEPTION_ALLOC =1,
51
LIBRAW_EXCEPTION_DECODE_RAW =2,
52
LIBRAW_EXCEPTION_DECODE_JPEG=3,
53
LIBRAW_EXCEPTION_IO_EOF =4,
54
LIBRAW_EXCEPTION_IO_CORRUPT =5,
55
LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK=6
59
enum LibRaw_colorstate
61
LIBRAW_COLORSTATE_UNKNOWN =0
66
LIBRAW_FILTERING_DEFAULT =0
72
LIBRAW_PROGRESS_START = 0,
73
LIBRAW_PROGRESS_OPEN = 1,
74
LIBRAW_PROGRESS_IDENTIFY = 1<<1,
75
LIBRAW_PROGRESS_SIZE_ADJUST = 1<<2,
76
LIBRAW_PROGRESS_LOAD_RAW = 1<<3,
77
LIBRAW_PROGRESS_REMOVE_ZEROES = 1<<4,
78
LIBRAW_PROGRESS_BAD_PIXELS = 1<<5,
79
LIBRAW_PROGRESS_DARK_FRAME = 1<<6,
80
LIBRAW_PROGRESS_SCALE_COLORS = 1<<8,
81
LIBRAW_PROGRESS_PRE_INTERPOLATE = 1<<9,
82
LIBRAW_PROGRESS_INTERPOLATE = 1<<10,
83
LIBRAW_PROGRESS_MIX_GREEN = 1<<11,
84
LIBRAW_PROGRESS_MEDIAN_FILTER = 1<<12,
85
LIBRAW_PROGRESS_HIGHLIGHTS = 1<<13,
86
LIBRAW_PROGRESS_FUJI_ROTATE = 1<<14,
87
LIBRAW_PROGRESS_FLIP = 1<<15,
88
LIBRAW_PROGRESS_APPLY_PROFILE = 1<<16,
89
LIBRAW_PROGRESS_CONVERT_RGB = 1<<17,
90
LIBRAW_PROGRESS_STRETCH = 1<<18,
92
LIBRAW_PROGRESS_STAGE19 = 1<<19,
93
LIBRAW_PROGRESS_STAGE20 = 1<<20,
94
LIBRAW_PROGRESS_STAGE21 = 1<<21,
95
LIBRAW_PROGRESS_STAGE22 = 1<<22,
96
LIBRAW_PROGRESS_STAGE23 = 1<<23,
97
LIBRAW_PROGRESS_STAGE24 = 1<<24,
98
LIBRAW_PROGRESS_STAGE25 = 1<<25,
99
LIBRAW_PROGRESS_STAGE26 = 1<<26,
100
LIBRAW_PROGRESS_STAGE27 = 1<<27,
102
LIBRAW_PROGRESS_THUMB_LOAD = 1<<28,
103
LIBRAW_PROGRESS_TRESERVED1 = 1<<29,
104
LIBRAW_PROGRESS_TRESERVED2 = 1<<30,
105
LIBRAW_PROGRESS_TRESERVED3 = 1<<31
107
#define LIBRAW_PROGRESS_THUMB_MASK 0x0fffffff
112
LIBRAW_UNSPECIFIED_ERROR=-1,
113
LIBRAW_FILE_UNSUPPORTED = -2,
114
LIBRAW_REQUEST_FOR_NONEXISTENT_IMAGE=-3,
115
LIBRAW_OUT_OF_ORDER_CALL=-4,
116
LIBRAW_NO_THUMBNAIL=-5,
117
LIBRAW_UNSUPPORTED_THUMBNAIL=-6,
118
LIBRAW_CANNOT_ADDMASK=-7,
119
LIBRAW_UNSUFFICIENT_MEMORY=-100007,
120
LIBRAW_DATA_ERROR=-100008,
121
LIBRAW_IO_ERROR=-100009,
122
LIBRAW_CANCELLED_BY_CALLBACK=-100010
125
#define LIBRAW_FATAL_ERROR(ec) ((ec)<-100000)
127
enum LibRaw_thumbnail_formats
129
LIBRAW_THUMBNAIL_UNKNOWN=0,
130
LIBRAW_THUMBNAIL_JPEG=1,
131
LIBRAW_THUMBNAIL_BITMAP=2,
132
LIBRAW_THUMBNAIL_LAYER=4,
133
LIBRAW_THUMBNAIL_ROLLEI=5
136
enum LibRaw_image_formats
138
LIBRAW_IMAGE_BITMAP=1,