Home | History | Annotate | Download | only in HAL3

Lines Matching full:roi

5950                             LOGD("Adding reprocess crop roi map for stream %dx%d, %dx%d",
6515 void QCamera3HardwareInterface::convertFromRegions(cam_area_t &roi,
6524 roi.weight = frame_settings.find(tag).data.i32[4];
6525 roi.rect.left = x_min;
6526 roi.rect.top = y_min;
6527 roi.rect.width = x_max - x_min;
6528 roi.rect.height = y_max - y_min;
6534 * DESCRIPTION: helper method to reset the roi if it is greater than scaler
6538 * @roi : cam_area_t struct to resize
6543 bool QCamera3HardwareInterface::resetIfNeededROI(cam_area_t* roi,
6546 int32_t roi_x_max = roi->rect.width + roi->rect.left;
6547 int32_t roi_y_max = roi->rect.height + roi->rect.top;
6551 /* According to spec weight = 0 is used to indicate roi needs to be disabled
6552 * without having this check the calculations below to validate if the roi
6553 * is inside scalar crop region will fail resulting in the roi not being
6554 * reset causing algorithm to continue to use stale roi window
6556 if (roi->weight == 0) {
6561 // right edge of roi window is left of scalar crop's left edge
6563 // bottom edge of roi window is above scalar crop's top edge
6564 (roi->rect.left > crop_x_max) ||
6565 // left edge of roi window is beyond(right) of scalar crop's right edge
6566 (roi->rect.top > crop_y_max)){
6567 // top edge of roi windo is above scalar crop's top edge
6570 if (roi->rect.left < scalerCropRegion->left) {
6571 roi->rect.left = scalerCropRegion->left;
6573 if (roi->rect.top < scalerCropRegion->top) {
6574 roi->rect.top = scalerCropRegion->top;
6582 roi->rect.width = roi_x_max - roi->rect.left;
6583 roi->rect.height = roi_y_max - roi->rect.top;
8952 LOGD("Found reprocess roi map data for stream %p %dx%d, %dx%d",
9759 cam_area_t roi;
9761 convertFromRegions(roi, request->settings, ANDROID_CONTROL_AE_REGIONS);
9764 mCropRegionMapper.toSensor(roi.rect.left, roi.rect.top, roi.rect.width,
9765 roi.rect.height);
9768 reset = resetIfNeededROI(&roi, &scalerCropRegion);
9770 if (reset && ADD_SET_PARAM_ENTRY_TO_BATCH(hal_metadata, CAM_INTF_META_AEC_ROI, roi)) {
9776 cam_area_t roi;
9778 convertFromRegions(roi, request->settings, ANDROID_CONTROL_AF_REGIONS);
9781 mCropRegionMapper.toSensor(roi.rect.left, roi.rect.top, roi.rect.width,
9782 roi.rect.height);
9785 reset = resetIfNeededROI(&roi, &scalerCropRegion);
9787 if (reset && ADD_SET_PARAM_ENTRY_TO_BATCH(hal_metadata, CAM_INTF_META_AF_ROI, roi)) {