2
* UFRaw - Unidentified Flying Raw converter for digital camera images
4
* dcraw_api.h - API for DCRaw
5
* Copyright 2004-2010 by Udi Fuchs
7
* based on dcraw by Dave Coffin
8
* http://www.cybercom.net/~dcoffin/
10
* This program is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation; either version 2 of the License, or
13
* (at your option) any later version.
23
typedef guint16 dcraw_image_type[4];
26
dcraw_image_type *image;
27
int width, height, colors;
33
int width, height, colors, fourColorFilters, filters, raw_color;
37
dcraw_image_type thresholds;
38
float pre_mul[4], post_mul[4], cam_mul[4], rgb_cam[3][4];
40
int rgbMax, black, fuji_width;
42
int toneCurveSize, toneCurveOffset;
43
int toneModeSize, toneModeOffset;
45
float iso_speed, shutter, aperture, focal_len;
47
char make[80], model[80];
48
int thumbType, thumbOffset;
49
size_t thumbBufferLength;
52
enum { dcraw_ahd_interpolation,
53
dcraw_vng_interpolation, dcraw_four_color_interpolation,
54
dcraw_ppg_interpolation, dcraw_bilinear_interpolation,
55
dcraw_none_interpolation };
56
enum { unknown_thumb_type, jpeg_thumb_type, ppm_thumb_type };
57
int dcraw_open(dcraw_data *h, char *filename);
58
int dcraw_load_raw(dcraw_data *h);
59
int dcraw_load_thumb(dcraw_data *h, dcraw_image_data *thumb);
60
void dcraw_close(dcraw_data *h);
62
#define DCRAW_SUCCESS 0
64
#define DCRAW_UNSUPPORTED 2
65
#define DCRAW_NO_CAMERA_WB 3
66
#define DCRAW_VERBOSE 4
67
#define DCRAW_WARNING 5
68
#define DCRAW_OPEN_ERROR 6
70
void dcraw_message(void *dcraw, int code, char *format, ...);
76
#endif /*_DCRAW_API_H*/