camerad: fixup IFE cropping (#33865)

* start fixing

* cleanup

---------

Co-authored-by: Comma Device <device@comma.ai>
This commit is contained in:
Adeeb Shihadeh
2024-10-23 19:38:05 -07:00
committed by GitHub
parent 0466d111d2
commit 8557b0440e
+8 -8
View File
@@ -226,29 +226,29 @@ int build_initial_config(uint8_t *dst, const SensorInfo *s, std::vector<uint32_t
// TODO: remove this
dst += write_cont(dst, 0xa3c, {
0x00000003,
0x07870787,
((s->frame_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