Home | History | Annotate | Download | only in HAL3

Lines Matching full:roi

4950                             CDBG("%s: Adding reprocess crop roi map for stream %dx%d, %dx%d",
5475 roi,
5484 roi.weight = frame_settings.find(tag).data.i32[4];
5485 roi.rect.left = x_min;
5486 roi.rect.top = y_min;
5487 roi.rect.width = x_max - x_min;
5488 roi.rect.height = y_max - y_min;
5494 * DESCRIPTION: helper method to reset the roi if it is greater than scaler
5498 * @roi : cam_area_t struct to resize
5503 bool QCamera3HardwareInterface::resetIfNeededROI(cam_area_t* roi,
5506 int32_t roi_x_max = roi->rect.width + roi->rect.left;
5507 int32_t roi_y_max = roi->rect.height + roi->rect.top;
5511 /* According to spec weight = 0 is used to indicate roi needs to be disabled
5512 * without having this check the calculations below to validate if the roi
5513 * is inside scalar crop region will fail resulting in the roi not being
5514 * reset causing algorithm to continue to use stale roi window
5516 if (roi->weight == 0) {
5521 // right edge of roi window is left of scalar crop's left edge
5523 // bottom edge of roi window is above scalar crop's top edge
5524 (roi->rect.left > crop_x_max) ||
5525 // left edge of roi window is beyond(right) of scalar crop's right edge
5526 (roi->rect.top > crop_y_max)){
5527 // top edge of roi windo is above scalar crop's top edge
5530 if (roi->rect.left < scalerCropRegion->left) {
5531 roi->rect.left = scalerCropRegion->left;
5533 if (roi->rect.top < scalerCropRegion->top) {
5534 roi->rect.top = scalerCropRegion->top;
5542 roi->rect.width = roi_x_max - roi->rect.left;
5543 roi->rect.height = roi_y_max - roi->rect.top;
7772 CDBG("%s: Found reprocess roi map data for stream %p %dx%d, %dx%d",
8521 cam_area_t roi;
8523 convertFromRegions(roi, request->settings, ANDROID_CONTROL_AE_REGIONS);
8526 mCropRegionMapper.toSensor(roi.rect.left, roi.rect.top, roi.rect.width,
8527 roi.rect.height);
8530 reset = resetIfNeededROI(&roi, &scalerCropRegion);
8532 if (reset && ADD_SET_PARAM_ENTRY_TO_BATCH(hal_metadata, CAM_INTF_META_AEC_ROI, roi)) {
8538 cam_area_t roi;
8540 convertFromRegions(roi, request->settings, ANDROID_CONTROL_AF_REGIONS);
8543 mCropRegionMapper.toSensor(roi.rect.left, roi.rect.top, roi.rect.width,
8544 roi.rect.height);
8547 reset = resetIfNeededROI(&roi, &scalerCropRegion);
8549 if (reset && ADD_SET_PARAM_ENTRY_TO_BATCH(hal_metadata, CAM_INTF_META_AF_ROI, roi)) {