Lines Matching refs:exposure
28 """Use device 3A and captured shots to determine scene exposure.
38 the exact exposure level that will result in a center 10% by 10% patch of
44 The computed exposure value is the product of the sensitivity (ISO) and
45 exposure time (ns) to achieve that sensor exposure level.
51 The measured product of sensitivity and exposure time that results in
54 print "Measuring target exposure"
67 # Capture a manual shot with this exposure, using a linear tonemap.
83 # Compute the exposure value that would result in a luma of 0.5.
86 def __set_cached_target_exposure(exposure):
87 """Saves the given exposure value to a cached location.
97 exposure: The value to cache.
99 print "Setting cached target exposure"
101 f.write(json.dumps({"exposure":exposure}))
104 """Get the cached exposure value.
107 The cached exposure value, or None if there is no valid cached value.
112 return o["exposure"]
117 """If there is a cached exposure value, clear it.
122 def set_hardcoded_exposure(exposure):
123 """Set a hard-coded exposure value, rather than relying on measurements.
125 The exposure value is the product of sensitivity (ISO) and eposure time
135 exposure: The hard-coded exposure value to set.
137 __set_cached_target_exposure(exposure)
140 """Get the target exposure to use.
149 The target exposure value.
153 print "Using cached target exposure"
164 """Get a set of legal combinations of target (exposure time, sensitivity).
166 Gets the target exposure value, which is a product of sensitivity (ISO) and
167 exposure time, and returns equivalent tuples of (exposure time,sensitivity)
177 Object containing six legal (exposure time, sensitivity) tuples, keyed
188 exposure = get_target_exposure(cam)
191 exposure = get_target_exposure(its_session)
197 # Combo 1: smallest legal exposure time.
199 e1_sens = exposure / e1_expt
202 e1_expt = exposure / e1_sens
204 # Combo 2: largest legal exposure time.
206 e2_sens = exposure / e2_expt
209 e2_expt = exposure / e2_sens
213 e3_expt = exposure / e3_sens
216 e3_sens = exposure / e3_expt
220 e4_expt = exposure / e4_sens
223 e4_sens = exposure / e4_expt
225 # Combo 5: middle exposure time.
227 e5_sens = exposure / e5_expt
230 e5_expt = exposure / e5_sens
233 e5_expt = exposure / e5_sens
237 e6_expt = exposure / e6_sens
240 e6_sens = exposure / e6_expt
243 e6_sens = exposure / e6_expt