Skip to content

Commit 258120a

Browse files
committed
HQ camera changes
Still need to determine final sensor name and framerate-limitations but resolutions are correct
1 parent 42d6eb0 commit 258120a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

picamera/camera.py

+12
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,17 @@ class PiCamera(object):
229229
6: mo.PiSensorMode('720p', (40, 90), full_fov=False),
230230
7: mo.PiSensorMode('VGA', (40, 90), full_fov=False),
231231
},
232+
# XXX guessing testc isn't the final sensor name, and these modes are
233+
# probably a bit wrong (definitely the framerates which are entirely
234+
# guesses!). May want to extend PiSensorMode to have a bpp field given
235+
# the XGA modes beneath are definitely 10-bit and the rest are 12-bit
236+
# raw? Doesn't matter for picamera operations, but useful to API users
237+
'testc': {
238+
1: mo.PiSensorMode('2028x1088', (1, 30), full_fov=False),
239+
2: mo.PiSensorMode('2028x1520', (1, 15), still=True),
240+
3: mo.PiSensorMode('4056x3040', (1/10, 1), still=True),
241+
4: mo.PiSensorMode('1012x760', (1, 40)),
242+
},
232243
}
233244

234245
METER_MODES = {
@@ -491,6 +502,7 @@ def _init_revision(self, options):
491502
if revision.lower() == 'ov5647':
492503
PiCamera.MAX_FRAMERATE = 90
493504
else:
505+
# XXX is this correct for sensor testc?
494506
PiCamera.MAX_FRAMERATE = 120
495507
self._revision = revision
496508

0 commit comments

Comments
 (0)