camerad: fixup IFE cropping (#33865)

* start fixing

* cleanup

---------

Co-authored-by: Comma Device <device@comma.ai>
pull/33853/head
Adeeb Shihadeh 6 months ago committed by GitHub
parent 0466d111d2
commit 8557b0440e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 16
      system/camerad/cameras/ife.h

@ -226,29 +226,29 @@ int build_initial_config(uint8_t *dst, const SensorInfo *s, std::vector<uint32_t
// TODO: remove this // TODO: remove this
dst += write_cont(dst, 0xa3c, { dst += write_cont(dst, 0xa3c, {
0x00000003, 0x00000003,
0x07870787, ((s->frame_width - 1) << 16) | (s->frame_width - 1),
0x30036666, 0x30036666,
0x00000000, 0x00000000,
0x00000000, 0x00000000,
0x00000787, s->frame_width - 1,
0x04b704b7, ((s->frame_height - 1) << 16) | (s->frame_height - 1),
0x30036666, 0x30036666,
0x00000000, 0x00000000,
0x00000000, 0x00000000,
0x000004b7, s->frame_height - 1,
}); });
dst += write_cont(dst, 0xa68, { dst += write_cont(dst, 0xa68, {
0x00000003, 0x00000003,
0x03c30787, ((s->frame_width/2 - 1) << 16) | (s->frame_width - 1),
0x3006cccc, 0x3006cccc,
0x00000000, 0x00000000,
0x00000000, 0x00000000,
0x00000787, s->frame_width - 1,
0x025b04b7, ((s->frame_height/2 - 1) << 16) | (s->frame_height - 1),
0x3006cccc, 0x3006cccc,
0x00000000, 0x00000000,
0x00000000, 0x00000000,
0x00000787, s->frame_height - 1,
}); });
// cropping // cropping

Loading…
Cancel
Save