mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Crop resolutions higher than OMV_MAX_RAW_FRAME.
This commit is contained in:
parent
2affb38a22
commit
abace9e4fe
@ -383,7 +383,7 @@ int sensor_set_framesize(framesize_t framesize)
|
||||
// Skip the first frame.
|
||||
fb->bpp = 0;
|
||||
|
||||
if (framesize >= FRAMESIZE_VGA) {
|
||||
if (framesize > OMV_MAX_RAW_FRAME) {
|
||||
// Crop higher resolutions to QVGA
|
||||
sensor_set_windowing(190, 120, 320, 240);
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user