Home | History | Annotate | Download | only in its

Lines Matching full: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"
68 # Capture a manual shot with this exposure, using a linear tonemap.
84 # Compute the exposure value that would result in a luma of 0.5.
87 def __set_cached_target_exposure(exposure):
88 """Saves the given exposure value to a cached location.
98 exposure: The value to cache.
100 print "Setting cached target exposure"
102 f.write(json.dumps({"exposure":exposure}))
105 """Get the cached exposure value.
108 The cached exposure value, or None if there is no valid cached value.
113 return o["exposure"]
118 """If there is a cached exposure value, clear it.
123 def set_hardcoded_exposure(exposure):
124 """Set a hard-coded exposure value, rather than relying on measurements.
126 The exposure value is the product of sensitivity (ISO) and eposure time
136 exposure: The hard-coded exposure value to set.
138 __set_cached_target_exposure(exposure)
141 """Get the target exposure to use.
151 The target exposure value.
158 print "Using cached target exposure"
169 """Get a set of legal combinations of target (exposure time, sensitivity).
171 Gets the target exposure value, which is a product of sensitivity (ISO) and
172 exposure time, and returns equivalent tuples of (exposure time,sensitivity)
182 Object containing six legal (exposure time, sensitivity) tuples, keyed
193 exposure = get_target_exposure(cam)
196 exposure = get_target_exposure(its_session)
202 # Combo 1: smallest legal exposure time.
204 e1_sens = exposure / e1_expt
207 e1_expt = exposure / e1_sens
209 # Combo 2: largest legal exposure time.
211 e2_sens = exposure / e2_expt
214 e2_expt = exposure / e2_sens
218 e3_expt = exposure / e3_sens
221 e3_sens = exposure / e3_expt
225 e4_expt = exposure / e4_sens
228 e4_sens = exposure / e4_expt
230 # Combo 5: middle exposure time.
232 e5_sens = exposure / e5_expt
235 e5_expt = exposure / e5_sens
238 e5_expt = exposure / e5_sens
242 e6_expt = exposure / e6_sens
245 e6_sens = exposure / e6_expt
248 e6_sens = exposure / e6_expt