mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
sensors/genx320: Prevent event mode capture if transpose is enabled.
This commit is contained in:
parent
660a783d68
commit
7a718c6aff
@ -393,6 +393,12 @@ static void snapshot_post_process(image_t *image) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int snapshot(omv_csi_t *csi, image_t *image, uint32_t flags) {
|
static int snapshot(omv_csi_t *csi, image_t *image, uint32_t flags) {
|
||||||
|
#if (OMV_GENX320_EHC_ENABLE != 1)
|
||||||
|
if (csi->transpose) {
|
||||||
|
return OMV_CSI_ERROR_CAPTURE_FAILED;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#if (OMV_GENX320_CAL_ENABLE == 1)
|
#if (OMV_GENX320_CAL_ENABLE == 1)
|
||||||
if (!hot_pixels_disabled) {
|
if (!hot_pixels_disabled) {
|
||||||
uint8_t *histogram = fb_alloc0(ACTIVE_SENSOR_SIZE, FB_ALLOC_NO_HINT);
|
uint8_t *histogram = fb_alloc0(ACTIVE_SENSOR_SIZE, FB_ALLOC_NO_HINT);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user