@@ -229,6 +229,17 @@ class PiCamera(object):
229
229
6 : mo .PiSensorMode ('720p' , (40 , 90 ), full_fov = False ),
230
230
7 : mo .PiSensorMode ('VGA' , (40 , 90 ), full_fov = False ),
231
231
},
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
+ },
232
243
}
233
244
234
245
METER_MODES = {
@@ -491,6 +502,7 @@ def _init_revision(self, options):
491
502
if revision .lower () == 'ov5647' :
492
503
PiCamera .MAX_FRAMERATE = 90
493
504
else :
505
+ # XXX is this correct for sensor testc?
494
506
PiCamera .MAX_FRAMERATE = 120
495
507
self ._revision = revision
496
508
0 commit comments