Revert "camerad: fix incorrect row offset calculation in calculate_exposure_value (#34634)"

This reverts commit 2941445849.
pull/34649/head
Adeeb Shihadeh 2 months ago
parent e7dddaeb7e
commit 9167e3dcf6
  1. 2
      system/camerad/cameras/camera_common.cc

@ -100,7 +100,7 @@ float calculate_exposure_value(const CameraBuf *b, Rect ae_xywh, int x_skip, int
unsigned int lum_total = 0; unsigned int lum_total = 0;
for (int y = ae_xywh.y; y < ae_xywh.y + ae_xywh.h; y += y_skip) { for (int y = ae_xywh.y; y < ae_xywh.y + ae_xywh.h; y += y_skip) {
for (int x = ae_xywh.x; x < ae_xywh.x + ae_xywh.w; x += x_skip) { for (int x = ae_xywh.x; x < ae_xywh.x + ae_xywh.w; x += x_skip) {
uint8_t lum = pix_ptr[(y * b->cur_yuv_buf->stride) + x]; uint8_t lum = pix_ptr[(y * b->out_img_width) + x];
lum_binning[lum]++; lum_binning[lum]++;
lum_total += 1; lum_total += 1;
} }

Loading…
Cancel
Save