Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions picamera/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,23 @@ class PiCamera(object):
6: mo.PiSensorMode('720p', (40, 90), full_fov=False),
7: mo.PiSensorMode('VGA', (40, 90), full_fov=False),
},
# XXX guessing testc isn't the final sensor name, and these modes are
# probably a bit wrong (definitely the framerates which are entirely
# guesses!). May want to extend PiSensorMode to have a bpp field given
# the XGA modes beneath are definitely 10-bit and the rest are 12-bit
# raw? Doesn't matter for picamera operations, but useful to API users
'testc': {
1: mo.PiSensorMode('2028x1088', (1/10, 50), full_fov=False),
2: mo.PiSensorMode('2028x1520', (1/10, 50), still=True),
3: mo.PiSensorMode('4056x3040', (5/1000, 10), still=True),
4: mo.PiSensorMode('1012x760', (50.1, 120)),
},
'imx477': {
1: mo.PiSensorMode('2028x1088', (1/10, 50), full_fov=False),
2: mo.PiSensorMode('2028x1520', (1/10, 50), still=True),
3: mo.PiSensorMode('4056x3040', (5/1000, 10), still=True),
4: mo.PiSensorMode('1012x760', (50.1, 120)),
},
}

METER_MODES = {
Expand Down Expand Up @@ -491,6 +508,7 @@ def _init_revision(self, options):
if revision.lower() == 'ov5647':
PiCamera.MAX_FRAMERATE = 90
else:
# XXX is this correct for sensor testc?
PiCamera.MAX_FRAMERATE = 120
self._revision = revision

Expand Down