libcamera: Rename "shutter speed" to "exposure time"
The terms "shutter" and "shutter speed" are used through libcamera to mean "exposure time". This is confusing, both due to "speed" being used as "time" while it should be the inverse (i.e. a maximum speed should correspond to the minimum time), and due to "shutter speed" and "exposure time" being used in different places with the same meaning. To improve clarity of the code base and the documentation, use "exposure time" consistently to replace "shutter speed". This rename highlighted another vocabulary issue in libcamera. The ExposureModeHelper::splitExposure() function used to document that it splits "exposure time into shutter time and gain". It has been reworded to "split exposure into exposure time and gain". That is not entirely satisfactory, as "exposure" has a defined meaning in photography (see https://en.wikipedia.org/wiki/Exposure_(photography)) that is not expressed as a duration. This issue if left to be addressed separately. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Naushir Patuck <naush@raspberrypi.com> Acked-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
e5f8d40bad
commit
d0478c41f4
33 changed files with 334 additions and 327 deletions
|
@ -47,9 +47,9 @@ class AGCRkISP1(AGC):
|
|||
}
|
||||
|
||||
def _generate_exposure_modes(self) -> dict:
|
||||
normal = {'shutter': [100, 10000, 30000, 60000, 120000],
|
||||
normal = {'exposure-time': [100, 10000, 30000, 60000, 120000],
|
||||
'gain': [2.0, 4.0, 6.0, 6.0, 6.0]}
|
||||
short = {'shutter': [100, 5000, 10000, 20000, 120000],
|
||||
short = {'exposure-time': [100, 5000, 10000, 20000, 120000],
|
||||
'gain': [2.0, 4.0, 6.0, 6.0, 6.0]}
|
||||
|
||||
return {'ExposureNormal': normal, 'ExposureShort': short}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue