Skip to content
This repository has been archived by the owner on Oct 4, 2020. It is now read-only.

Commit

Permalink
Merge pull request #48 from SamWhited/lightness_option
Browse files Browse the repository at this point in the history
Add lightness option
  • Loading branch information
SamWhited committed Jun 7, 2015
2 parents b676ab0 + b1d5166 commit e2530c7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions rawkit/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ class Options(object):
'_brightness',
'_chromatic_aberration',
'_darkness',
'_lightness',
'_half_size',
'_noise_threshold',
'_rgbg_interpolation',
Expand Down Expand Up @@ -530,6 +531,19 @@ def interpolation(self):
"""
return interpolation.ahd

@option(param='no_auto_bright', ctype=ctypes.c_int)
def lightness(self):
"""
Use a fixed white level. Defaults to automatically setting the white
level based on the image histogram.
:type: :class:`int`
:default: None
:dcraw: `-W`
:libraw: :class:`libraw.structs.libraw_output_params_t.no_auto_bright`
"""
return None

def _map_to_libraw_params(self, params):
"""
Internal method that writes rawkit options into the libraw options
Expand Down

0 comments on commit e2530c7

Please sign in to comment.