~cosme/ubuntu/precise/freeimage/freeimage-3.15.1

« back to all changes in this revision

Viewing changes to Source/LibRawLite/libraw/libraw_const.h

  • Committer: Bazaar Package Importer
  • Author(s): Cosme Domínguez Díaz
  • Date: 2010-07-20 13:42:15 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100720134215-xt1454zaedv3b604
Tags: 3.13.1-0ubuntu1
* New upstream release. Closes: (LP: #607800)
 - Updated debian/freeimage-get-orig-source script.
 - Removing no longer necessary debian/patches/* and
   the patch system in debian/rules.
 - Updated debian/rules to work with the new Makefiles.
 - Drop from -O3 to -O2 and use lzma compression saves
   ~10 MB of free space. 
* lintian stuff
 - fixed debhelper-but-no-misc-depends
 - fixed ldconfig-symlink-missing-for-shlib

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- C++ -*-
 
2
 * File: libraw_const.h
 
3
 * Copyright 2008-2009 LibRaw LLC (info@libraw.org)
 
4
 * Created: Sat Mar  8 , 2008
 
5
 *
 
6
 * LibRaw (Lite) error codes
 
7
 *
 
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.
 
12
 
 
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.
 
17
 
 
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
 
21
 */
 
22
 
 
23
#ifndef _LIBRAW_ERRORS_H
 
24
#define _LIBRAW_ERRORS_H
 
25
 
 
26
enum LibRaw_constructor_flags
 
27
{
 
28
    LIBRAW_OPTIONS_NONE         =0,
 
29
    LIBRAW_OPIONS_NO_MEMERR_CALLBACK=1,
 
30
    LIBRAW_OPIONS_NO_DATAERR_CALLBACK=1<<1
 
31
};
 
32
 
 
33
enum LibRaw_warnings
 
34
{
 
35
    LIBRAW_WARN_NONE            =0,
 
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
 
45
};
 
46
 
 
47
enum LibRaw_exceptions
 
48
{
 
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
 
56
};
 
57
 
 
58
 
 
59
enum LibRaw_colorstate
 
60
{
 
61
    LIBRAW_COLORSTATE_UNKNOWN   =0
 
62
};
 
63
 
 
64
enum LibRaw_filtering
 
65
{
 
66
    LIBRAW_FILTERING_DEFAULT            =0
 
67
};
 
68
 
 
69
 
 
70
enum LibRaw_progress
 
71
{
 
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,
 
91
/* reserved */
 
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,
 
101
 
 
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
 
106
};
 
107
#define LIBRAW_PROGRESS_THUMB_MASK 0x0fffffff
 
108
 
 
109
enum LibRaw_errors
 
110
{
 
111
    LIBRAW_SUCCESS = 0,
 
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
 
123
};
 
124
 
 
125
#define LIBRAW_FATAL_ERROR(ec) ((ec)<-100000)
 
126
 
 
127
enum LibRaw_thumbnail_formats
 
128
{
 
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
 
134
};
 
135
 
 
136
enum LibRaw_image_formats
 
137
{
 
138
    LIBRAW_IMAGE_BITMAP=1,
 
139
    LIBRAW_IMAGE_JPEG=2
 
140
};
 
141
 
 
142
#endif