Lines 163-172
public class Processor {
Link Here
|
163 |
proc = new LibRaw.Processor(options); |
163 |
proc = new LibRaw.Processor(options); |
164 |
} |
164 |
} |
165 |
|
165 |
|
166 |
public void add_masked_borders_to_bitmap() { |
|
|
167 |
proc.add_masked_borders_to_bitmap(); |
168 |
} |
169 |
|
170 |
public void adjust_sizes_info_only() throws Exception { |
166 |
public void adjust_sizes_info_only() throws Exception { |
171 |
throw_exception("adjust_sizes_info_only", proc.adjust_sizes_info_only()); |
167 |
throw_exception("adjust_sizes_info_only", proc.adjust_sizes_info_only()); |
172 |
} |
168 |
} |
Lines 215-224
public class Processor {
Link Here
|
215 |
throw_exception("ppm_tiff_writer", proc.ppm_tiff_writer(filename)); |
211 |
throw_exception("ppm_tiff_writer", proc.ppm_tiff_writer(filename)); |
216 |
} |
212 |
} |
217 |
|
213 |
|
218 |
public void rotate_fuji_raw() throws Exception { |
|
|
219 |
throw_exception("rotate_fuji_raw", proc.rotate_fuji_raw()); |
220 |
} |
221 |
|
222 |
public void thumb_writer(string filename) throws Exception { |
214 |
public void thumb_writer(string filename) throws Exception { |
223 |
throw_exception("thumb_writer", proc.thumb_writer(filename)); |
215 |
throw_exception("thumb_writer", proc.thumb_writer(filename)); |
224 |
} |
216 |
} |
Lines 262-268
public class Processor {
Link Here
|
262 |
// camera_profile |
254 |
// camera_profile |
263 |
// bad_pixels |
255 |
// bad_pixels |
264 |
// dark_frame |
256 |
// dark_frame |
265 |
output_params->filtering_mode = LibRaw.Filtering.AUTOMATIC; |
|
|
266 |
output_params->output_bps = 8; |
257 |
output_params->output_bps = 8; |
267 |
// output_tiff |
258 |
// output_tiff |
268 |
output_params->user_flip = GRaw.Flip.FROM_SOURCE; |
259 |
output_params->user_flip = GRaw.Flip.FROM_SOURCE; |
Lines 303-311
private void throw_exception(string caller, LibRaw.Result result) throws Excepti
Link Here
|
303 |
case LibRaw.Result.UNSUPPORTED_THUMBNAIL: |
294 |
case LibRaw.Result.UNSUPPORTED_THUMBNAIL: |
304 |
throw new Exception.UNSUPPORTED_THUMBNAIL(msg); |
295 |
throw new Exception.UNSUPPORTED_THUMBNAIL(msg); |
305 |
|
296 |
|
306 |
case LibRaw.Result.CANNOT_ADDMASK: |
|
|
307 |
throw new Exception.CANNOT_ADDMASK(msg); |
308 |
|
309 |
case LibRaw.Result.UNSUFFICIENT_MEMORY: |
297 |
case LibRaw.Result.UNSUFFICIENT_MEMORY: |
310 |
throw new Exception.OUT_OF_MEMORY(msg); |
298 |
throw new Exception.OUT_OF_MEMORY(msg); |
311 |
|
299 |
|