From 8557b0440e5127eab901dc0f72054fc06849025e Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Wed, 23 Oct 2024 19:38:05 -0700 Subject: [PATCH] camerad: fixup IFE cropping (#33865) * start fixing * cleanup --------- Co-authored-by: Comma Device --- system/camerad/cameras/ife.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/system/camerad/cameras/ife.h b/system/camerad/cameras/ife.h index 85d3fe35e..44c4bb58e 100644 --- a/system/camerad/cameras/ife.h +++ b/system/camerad/cameras/ife.h @@ -226,29 +226,29 @@ int build_initial_config(uint8_t *dst, const SensorInfo *s, std::vectorframe_width - 1) << 16) | (s->frame_width - 1), 0x30036666, 0x00000000, 0x00000000, - 0x00000787, - 0x04b704b7, + s->frame_width - 1, + ((s->frame_height - 1) << 16) | (s->frame_height - 1), 0x30036666, 0x00000000, 0x00000000, - 0x000004b7, + s->frame_height - 1, }); dst += write_cont(dst, 0xa68, { 0x00000003, - 0x03c30787, + ((s->frame_width/2 - 1) << 16) | (s->frame_width - 1), 0x3006cccc, 0x00000000, 0x00000000, - 0x00000787, - 0x025b04b7, + s->frame_width - 1, + ((s->frame_height/2 - 1) << 16) | (s->frame_height - 1), 0x3006cccc, 0x00000000, 0x00000000, - 0x00000787, + s->frame_height - 1, }); // cropping