PageRenderTime 28ms CodeModel.GetById 15ms app.highlight 5ms RepoModel.GetById 2ms app.codeStats 0ms

/src/FreeImage/Source/LibRawLite/internal/var_defines.h

https://bitbucket.org/cabalistic/ogredeps/
C++ Header | 206 lines | 142 code | 22 blank | 42 comment | 0 complexity | e98c41136046fb36aae08f77238ade98 MD5 | raw file
  1/* -*- C++ -*-
  2 * File: var_defines.h
  3 * Copyright 2008-2009 LibRaw LLC (info@libraw.org)
  4 * Created: Sat Mar  8, 2008
  5 *
  6 * LibRaw redefinitions of dcraw internal variables
  7
  8LibRaw is free software; you can redistribute it and/or modify
  9it under the terms of the one of three licenses as you choose:
 10
 111. GNU LESSER GENERAL PUBLIC LICENSE version 2.1
 12   (See file LICENSE.LGPL provided in LibRaw distribution archive for details).
 13
 142. COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0
 15   (See file LICENSE.CDDL provided in LibRaw distribution archive for details).
 16
 173. LibRaw Software License 27032010
 18   (See file LICENSE.LibRaw.pdf provided in LibRaw distribution archive for details).
 19 */
 20
 21#ifndef VAR_DEFINES_H
 22#define VAR_DEFINES_H
 23
 24// imgdata.idata
 25#define make            (imgdata.idata.make)
 26#define model           (imgdata.idata.model)
 27#define is_raw          (imgdata.idata.raw_count)
 28#define dng_version     (imgdata.idata.dng_version)
 29#define is_foveon       (imgdata.idata.is_foveon)
 30#define colors          (imgdata.idata.colors)
 31#define cdesc           (imgdata.idata.cdesc)
 32#define filters         (imgdata.idata.filters)
 33
 34//imgdata image
 35#define image           (imgdata.image)
 36#define raw_image       (imgdata.rawdata.raw_image)
 37#define color_image       (imgdata.rawdata.color_image)
 38
 39// imgdata.sizes
 40#define raw_height      (imgdata.sizes.raw_height)
 41#define raw_width       (imgdata.sizes.raw_width)
 42#define height          (imgdata.sizes.height)
 43#define width           (imgdata.sizes.width)
 44#define top_margin      (imgdata.sizes.top_margin)
 45#define left_margin     (imgdata.sizes.left_margin)
 46#define bottom_margin   (imgdata.sizes.bottom_margin)
 47#define right_margin    (imgdata.sizes.right_margin)
 48#define iheight         (imgdata.sizes.iheight)
 49#define iwidth          (imgdata.sizes.iwidth)
 50#define pixel_aspect    (imgdata.sizes.pixel_aspect)
 51#define flip            (imgdata.sizes.flip)
 52
 53//imgdata.color
 54#define white           (imgdata.color.white)
 55#define cam_mul         (imgdata.color.cam_mul)
 56#define pre_mul         (imgdata.color.pre_mul)
 57#define cmatrix         (imgdata.color.cmatrix)
 58#define rgb_cam         (imgdata.color.rgb_cam)
 59#ifndef SRC_USES_CURVE
 60#define curve           (imgdata.color.curve)
 61#endif
 62#ifndef SRC_USES_BLACK
 63#define black           (imgdata.color.black)
 64#define cblack           (imgdata.color.cblack)
 65#endif
 66#define maximum         (imgdata.color.maximum)
 67#define channel_maximum         (imgdata.color.channel_maximum)
 68#define profile_length  (imgdata.color.profile_length)
 69#define color_flags     (imgdata.color.color_flags)
 70#define ph1             (imgdata.color.phase_one_data)
 71#define flash_used      (imgdata.color.flash_used)
 72#define canon_ev        (imgdata.color.canon_ev)
 73#define model2          (imgdata.color.model2)
 74
 75//imgdata.thumbnail
 76
 77#define thumb_width     (imgdata.thumbnail.twidth)
 78#define thumb_height    (imgdata.thumbnail.theight)
 79#define thumb_length    (imgdata.thumbnail.tlength)
 80
 81
 82//imgdata.others
 83#define iso_speed       (imgdata.other.iso_speed)
 84#define shutter         (imgdata.other.shutter)
 85#define aperture        (imgdata.other.aperture)
 86#define focal_len       (imgdata.other.focal_len)
 87#define timestamp       (imgdata.other.timestamp)
 88#define shot_order      (imgdata.other.shot_order)
 89#define gpsdata         (imgdata.other.gpsdata)
 90#define desc            (imgdata.other.desc)
 91#define artist          (imgdata.other.artist)
 92
 93//imgdata.output
 94#define greybox         (imgdata.params.greybox)
 95#define cropbox         (imgdata.params.cropbox)
 96#define aber            (imgdata.params.aber)
 97#define gamm            (imgdata.params.gamm)
 98#define user_mul        (imgdata.params.user_mul)
 99#define shot_select     (imgdata.params.shot_select)
100#define bright          (imgdata.params.bright)
101#define threshold       (imgdata.params.threshold)
102#define half_size       (imgdata.params.half_size)
103#define four_color_rgb  (imgdata.params.four_color_rgb)
104#define document_mode   (imgdata.params.document_mode)
105#define highlight       (imgdata.params.highlight)
106//#define verbose         (imgdata.params.verbose)
107#define use_auto_wb     (imgdata.params.use_auto_wb)
108#define use_camera_wb   (imgdata.params.use_camera_wb)
109#define use_camera_matrix (imgdata.params.use_camera_matrix)
110#define output_color    (imgdata.params.output_color)
111#define output_bps      (imgdata.params.output_bps)
112#define gamma_16bit      (imgdata.params.gamma_16bit)
113#define output_tiff     (imgdata.params.output_tiff)
114#define med_passes      (imgdata.params.med_passes)
115#define no_auto_bright  (imgdata.params.no_auto_bright)
116#define use_fuji_rotate (imgdata.params.use_fuji_rotate)
117#define filtering_mode (imgdata.params.filtering_mode)
118
119// Demosaic packs
120//AFD
121//#define afd_noise_att				(imgdata.params.afd_noise_att)
122//#define afd_noise_thres				(imgdata.params.afd_noise_thres)
123//#define afd_luminance_passes		(imgdata.params.afd_luminance_passes)
124//#define afd_chrominance_method		(imgdata.params.afd_chrominance_method)
125//#define afd_luminance_only			(imgdata.params.afd_luminance_only)
126// DCB
127#define dcb_iterations   (imgdata.params.iterations)
128#define dcb_enhance_fl   (imgdata.params.dcb_enhance)
129#define fbdd_noiserd     (imgdata.params.fbdd_noiserd)
130// VCD
131#define eeci_refine    (imgdata.params.eeci_refine)
132#define es_med_passes  (imgdata.params.es_med_passes)
133
134
135
136//rgb_constants
137#define xyz_rgb         (rgb_constants.xyz_rgb)
138#define d65_white       (rgb_constants.d65_white)
139
140//libraw_internal_data.internal_data
141#define meta_data       (libraw_internal_data.internal_data.meta_data)
142#define ifp             libraw_internal_data.internal_data.input
143#define ifname          ((char*)libraw_internal_data.internal_data.input->fname())
144#define ofp             libraw_internal_data.internal_data.output
145#define profile_offset  (libraw_internal_data.internal_data.profile_offset)
146#define thumb_offset    (libraw_internal_data.internal_data.toffset)
147
148//libraw_internal_data.internal_output_params
149#define mix_green       (libraw_internal_data.internal_output_params.mix_green)
150#define raw_color       (libraw_internal_data.internal_output_params.raw_color)
151#define use_gamma       (libraw_internal_data.internal_output_params.use_gamma)
152#define zero_is_bad     (libraw_internal_data.internal_output_params.zero_is_bad)
153#ifndef SRC_USES_SHRINK
154#define shrink          (libraw_internal_data.internal_output_params.shrink)
155#endif
156#define fuji_width      (libraw_internal_data.internal_output_params.fuji_width)
157
158
159//libraw_internal_data.output_data
160#define histogram       (libraw_internal_data.output_data.histogram)
161#define oprof           (libraw_internal_data.output_data.oprof)
162
163//libraw_internal_data.identify_data
164#define exif_cfa        (libraw_internal_data.identify_data.olympus_exif_cfa)
165#define unique_id       (libraw_internal_data.identify_data.unique_id)
166#define tiff_nifds      (libraw_internal_data.identify_data.tiff_nifds)
167#define tiff_flip       (libraw_internal_data.identify_data.tiff_flip)
168
169//libraw_internal_data.unpacker_data
170#define order           (libraw_internal_data.unpacker_data.order)
171#define data_error      (libraw_internal_data.unpacker_data.data_error)
172#define cr2_slice       (libraw_internal_data.unpacker_data.cr2_slice)
173#define sraw_mul        (libraw_internal_data.unpacker_data.sraw_mul)
174#define kodak_cbpp      (libraw_internal_data.unpacker_data.kodak_cbpp)
175#define strip_offset    (libraw_internal_data.unpacker_data.strip_offset)
176#define data_offset     (libraw_internal_data.unpacker_data.data_offset)
177#define data_size     (libraw_internal_data.unpacker_data.data_size)
178#define meta_offset     (libraw_internal_data.unpacker_data.meta_offset)
179#define meta_length     (libraw_internal_data.unpacker_data.meta_length)
180#define thumb_misc      (libraw_internal_data.unpacker_data.thumb_misc)
181#define fuji_layout     (libraw_internal_data.unpacker_data.fuji_layout)
182#define tiff_samples    (libraw_internal_data.unpacker_data.tiff_samples)
183#define tiff_bps        (libraw_internal_data.unpacker_data.tiff_bps)
184#define tiff_compress   (libraw_internal_data.unpacker_data.tiff_compress)
185#define zero_after_ff   (libraw_internal_data.unpacker_data.zero_after_ff)
186#define tile_width      (libraw_internal_data.unpacker_data.tile_width)
187#define tile_length     (libraw_internal_data.unpacker_data.tile_length)
188#define load_flags      (libraw_internal_data.unpacker_data.load_flags)
189
190#ifdef LIBRAW_IO_REDEFINED
191#define fread(ptr,size,n,stream) stream->read(ptr,size,n)
192#define fseek(stream,o,w)	 stream->seek(o,w)
193#define fseeko(stream,o,w)	 stream->seek(o,w)
194#define ftell(stream)		 stream->tell()
195#define ftello(stream)		 stream->tell()
196#ifdef getc
197#undef getc
198#endif
199#define getc(stream)		 stream->get_char()
200#define fgetc(stream)		 stream->get_char()
201#define fgetcb(stream)		 stream->get_char_buf()
202#define fgets(str,n,stream)	 stream->gets(str,n)
203#define fscanf(stream,fmt,ptr)	 stream->scanf_one(fmt,ptr)
204#endif
205
206#endif