Skip to content

Commit 38225a8

Browse files
Camera: disable extremely high resolutions
They take up too much RAM.
1 parent 187ecff commit 38225a8

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

internal_filesystem/apps/com.micropythonos.camera/assets/camera_settings.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,13 @@ class CameraSettingsActivity(Activity):
9595
("800x800", "800x800"),
9696
("960x960", "960x960"),
9797
("1024x768", "1024x768"),
98-
("1024x1024","1024x1024"),
9998
("1280x720", "1280x720"),
100-
("1280x1024", "1280x1024"),
101-
("1280x1280", "1280x1280"),
102-
("1600x1200", "1600x1200"),
103-
("1920x1080", "1920x1080"),
99+
("1024x1024", "1024x1024"),
100+
# These are available in the driver, but they take up a lot of RAM:
101+
#("1280x1024", "1280x1024"),
102+
#("1280x1280", "1280x1280"),
103+
#("1600x1200", "1600x1200"),
104+
#("1920x1080", "1920x1080"),
104105
]
105106

106107
# These are taken from the Intent:

0 commit comments

Comments
 (0)