update internal LibRaw to official 0.7.0 release...
[kdegraphics.git] / libs / libkdcraw / libraw / internal / var_defines.h
blob99bb4fb3354523d296b0dd9f75491b96f149357a
1 /* -*- C++ -*-
2 * File: var_defines.h
3 * Copyright 2008-2009 Alex Tutubalin <lexa@lexa.ru>
4 * Created: Sat Mar 8, 2008
6 * LibRaw redefinitions of dcraw internal variables
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2, or (at your option)
11 * any later version.
13 * This program 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
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21 * 02111-1307, USA.
24 #ifndef VAR_DEFINES_H
25 #define VAR_DEFINES_H
27 // imgdata.idata
28 #define make (imgdata.idata.make)
29 #define model (imgdata.idata.model)
30 #define is_raw (imgdata.idata.raw_count)
31 #define dng_version (imgdata.idata.dng_version)
32 #define is_foveon (imgdata.idata.is_foveon)
33 #define colors (imgdata.idata.colors)
34 #define cdesc (imgdata.idata.cdesc)
35 #define filters (imgdata.idata.filters)
37 //imgdata image
38 #define image (imgdata.image)
40 // imgdata.sizes
41 #define raw_height (imgdata.sizes.raw_height)
42 #define raw_width (imgdata.sizes.raw_width)
43 #define height (imgdata.sizes.height)
44 #define width (imgdata.sizes.width)
45 #define top_margin (imgdata.sizes.top_margin)
46 #define left_margin (imgdata.sizes.left_margin)
47 #define bottom_margin (imgdata.sizes.bottom_margin)
48 #define right_margin (imgdata.sizes.right_margin)
49 #define iheight (imgdata.sizes.iheight)
50 #define iwidth (imgdata.sizes.iwidth)
51 #define pixel_aspect (imgdata.sizes.pixel_aspect)
52 #define flip (imgdata.sizes.flip)
54 //imgdata.color
55 #define white (imgdata.color.white)
56 #define cam_mul (imgdata.color.cam_mul)
57 #define pre_mul (imgdata.color.pre_mul)
58 #define cmatrix (imgdata.color.cmatrix)
59 #define rgb_cam (imgdata.color.rgb_cam)
60 #ifndef SRC_USES_CURVE
61 #define curve (imgdata.color.curve)
62 #endif
63 #ifndef SRC_USES_BLACK
64 #define black (imgdata.color.black)
65 #endif
66 #define maximum (imgdata.color.maximum)
67 #define profile_length (imgdata.color.profile_length)
68 #define color_flags (imgdata.color.color_flags)
69 #define ph1 (imgdata.color.phase_one_data)
70 #define flash_used (imgdata.color.flash_used)
71 #define canon_ev (imgdata.color.canon_ev)
72 #define model2 (imgdata.color.model2)
74 //imgdata.thumbnail
76 #define thumb_width (imgdata.thumbnail.twidth)
77 #define thumb_height (imgdata.thumbnail.theight)
78 #define thumb_length (imgdata.thumbnail.tlength)
81 //imgdata.others
82 #define iso_speed (imgdata.other.iso_speed)
83 #define shutter (imgdata.other.shutter)
84 #define aperture (imgdata.other.aperture)
85 #define focal_len (imgdata.other.focal_len)
86 #define timestamp (imgdata.other.timestamp)
87 #define shot_order (imgdata.other.shot_order)
88 #define gpsdata (imgdata.other.gpsdata)
89 #define desc (imgdata.other.desc)
90 #define artist (imgdata.other.artist)
92 //imgdata.output
93 #define greybox (imgdata.params.greybox)
94 #define aber (imgdata.params.aber)
95 #define gamm (imgdata.params.gamm)
96 #define user_mul (imgdata.params.user_mul)
97 #define shot_select (imgdata.params.shot_select)
98 #define bright (imgdata.params.bright)
99 #define threshold (imgdata.params.threshold)
100 #define half_size (imgdata.params.half_size)
101 #define four_color_rgb (imgdata.params.four_color_rgb)
102 #define document_mode (imgdata.params.document_mode)
103 #define highlight (imgdata.params.highlight)
104 //#define verbose (imgdata.params.verbose)
105 #define use_auto_wb (imgdata.params.use_auto_wb)
106 #define use_camera_wb (imgdata.params.use_camera_wb)
107 #define use_camera_matrix (imgdata.params.use_camera_matrix)
108 #define output_color (imgdata.params.output_color)
109 #define output_bps (imgdata.params.output_bps)
110 #define gamma_16bit (imgdata.params.gamma_16bit)
111 #define output_tiff (imgdata.params.output_tiff)
112 #define med_passes (imgdata.params.med_passes)
113 #define no_auto_bright (imgdata.params.no_auto_bright)
114 #define use_fuji_rotate (imgdata.params.use_fuji_rotate)
115 #define filtering_mode (imgdata.params.filtering_mode)
117 //rgb_constants
118 #define xyz_rgb (rgb_constants.xyz_rgb)
119 #define d65_white (rgb_constants.d65_white)
121 //libraw_internal_data.internal_data
122 #define meta_data (libraw_internal_data.internal_data.meta_data)
123 #define ifp libraw_internal_data.internal_data.input
124 #define ifname ((char*)libraw_internal_data.internal_data.input->fname())
125 #define profile_offset (libraw_internal_data.internal_data.profile_offset)
126 #define thumb_offset (libraw_internal_data.internal_data.toffset)
128 //libraw_internal_data.internal_output_params
129 #define mix_green (libraw_internal_data.internal_output_params.mix_green)
130 #define raw_color (libraw_internal_data.internal_output_params.raw_color)
131 #define use_gamma (libraw_internal_data.internal_output_params.use_gamma)
132 #define zero_is_bad (libraw_internal_data.internal_output_params.zero_is_bad)
133 #ifndef SRC_USES_SHRINK
134 #define shrink (libraw_internal_data.internal_output_params.shrink)
135 #endif
136 #define fuji_width (libraw_internal_data.internal_output_params.fuji_width)
139 //libraw_internal_data.output_data
140 #define histogram (libraw_internal_data.output_data.histogram)
141 #define oprof (libraw_internal_data.output_data.oprof)
143 //libraw_internal_data.identify_data
144 #define exif_cfa (libraw_internal_data.identify_data.olympus_exif_cfa)
145 #define unique_id (libraw_internal_data.identify_data.unique_id)
146 #define tiff_nifds (libraw_internal_data.identify_data.tiff_nifds)
147 #define tiff_flip (libraw_internal_data.identify_data.tiff_flip)
149 //libraw_internal_data.unpacker_data
150 #define order (libraw_internal_data.unpacker_data.order)
151 #define data_error (libraw_internal_data.unpacker_data.data_error)
152 #define cr2_slice (libraw_internal_data.unpacker_data.cr2_slice)
153 #define sraw_mul (libraw_internal_data.unpacker_data.sraw_mul)
154 #define kodak_cbpp (libraw_internal_data.unpacker_data.kodak_cbpp)
155 #define strip_offset (libraw_internal_data.unpacker_data.strip_offset)
156 #define data_offset (libraw_internal_data.unpacker_data.data_offset)
157 #define meta_offset (libraw_internal_data.unpacker_data.meta_offset)
158 #define meta_length (libraw_internal_data.unpacker_data.meta_length)
159 #define thumb_misc (libraw_internal_data.unpacker_data.thumb_misc)
160 #define fuji_layout (libraw_internal_data.unpacker_data.fuji_layout)
161 #define tiff_samples (libraw_internal_data.unpacker_data.tiff_samples)
162 #define tiff_bps (libraw_internal_data.unpacker_data.tiff_bps)
163 #define tiff_compress (libraw_internal_data.unpacker_data.tiff_compress)
164 #define zero_after_ff (libraw_internal_data.unpacker_data.zero_after_ff)
165 #define tile_width (libraw_internal_data.unpacker_data.tile_width)
166 #define tile_length (libraw_internal_data.unpacker_data.tile_length)
167 #define load_flags (libraw_internal_data.unpacker_data.load_flags)
169 #ifdef LIBRAW_IO_REDEFINED
170 #define fread(ptr,size,n,stream) stream->read(ptr,size,n)
171 #define fseek(stream,o,w) stream->seek(o,w)
172 #define fseeko(stream,o,w) stream->seek(o,w)
173 #define ftell(stream) stream->tell()
174 #define ftello(stream) stream->tell()
175 #define getc(stream) stream->get_char()
176 #define fgetc(stream) stream->get_char()
177 #define fgets(str,n,stream) stream->gets(str,n)
178 #define fscanf(stream,fmt,ptr) stream->scanf_one(fmt,ptr)
179 #endif
181 #endif