~ubuntu-branches/ubuntu/vivid/rawstudio/vivid

« back to all changes in this revision

Viewing changes to plugins/load-dcraw/dcraw_api.h

  • Committer: Bazaar Package Importer
  • Author(s): Bernd Zeimetz
  • Date: 2011-07-28 17:36:32 UTC
  • mfrom: (2.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20110728173632-5czluz9ye3c83zc5
Tags: 2.0-1
* [3750b2cf] Merge commit 'upstream/2.0'
* [63637468] Removing Patch, not necessary anymore.
* [2fb580dc] Add new build-dependencies.
* [c57d953b] Run dh_autoreconf due to patches in configure.in
* [13febe39] Add patch to remove the libssl requirement.
* [5ae773fe] Replace libjpeg62-dev by libjpeg8-dev :)
* [1969d755] Don't build static libraries.
* [7cfe0a2e] Add a patch to fix the plugin directory path.
  As plugins are shared libraries, they need to go into /usr/lib,
  not into /usr/share.
  Thanks to Andrew McMillan
* [c1d0d9dd] Don't install .la files for all plugins and libraries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * UFRaw - Unidentified Flying Raw converter for digital camera images
 
3
 *
 
4
 * dcraw_api.h - API for DCRaw
 
5
 * Copyright 2004-2010 by Udi Fuchs
 
6
 *
 
7
 * based on dcraw by Dave Coffin
 
8
 * http://www.cybercom.net/~dcoffin/
 
9
 *
 
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.
 
14
 */
 
15
 
 
16
#ifndef _DCRAW_API_H
 
17
#define _DCRAW_API_H
 
18
 
 
19
#ifdef __cplusplus
 
20
extern "C" {
 
21
#endif
 
22
 
 
23
typedef guint16 dcraw_image_type[4];
 
24
 
 
25
typedef struct {
 
26
    dcraw_image_type *image;
 
27
    int width, height, colors;
 
28
} dcraw_image_data;
 
29
 
 
30
typedef struct {
 
31
    void *dcraw;
 
32
    FILE *ifp;
 
33
    int width, height, colors, fourColorFilters, filters, raw_color;
 
34
    int flip, shrink;
 
35
    double pixel_aspect;
 
36
    dcraw_image_data raw;
 
37
    dcraw_image_type thresholds;
 
38
    float pre_mul[4], post_mul[4], cam_mul[4], rgb_cam[3][4];
 
39
    double cam_rgb[4][3];
 
40
    int rgbMax, black, fuji_width;
 
41
    double fuji_step;
 
42
    int toneCurveSize, toneCurveOffset;
 
43
    int toneModeSize, toneModeOffset;
 
44
    char *message;
 
45
    float iso_speed, shutter, aperture, focal_len;
 
46
    time_t timestamp;
 
47
    char make[80], model[80];
 
48
    int thumbType, thumbOffset;
 
49
    size_t thumbBufferLength;
 
50
} dcraw_data;
 
51
 
 
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);
 
61
 
 
62
#define DCRAW_SUCCESS 0
 
63
#define DCRAW_ERROR 1
 
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
 
69
 
 
70
void dcraw_message(void *dcraw, int code, char *format, ...);
 
71
 
 
72
#ifdef  __cplusplus
 
73
}
 
74
#endif
 
75
 
 
76
#endif /*_DCRAW_API_H*/