Home | History | Annotate | Download | only in HAL3

Lines Matching full:roi

4947                             CDBG("%s: Adding reprocess crop roi map for stream %dx%d, %dx%d",
5472 void QCamera3HardwareInterface::convertFromRegions(cam_area_t &roi,
5481 roi.weight = frame_settings.find(tag).data.i32[4];
5482 roi.rect.left = x_min;
5483 roi.rect.top = y_min;
5484 roi.rect.width = x_max - x_min;
5485 roi.rect.height = y_max - y_min;
5491 * DESCRIPTION: helper method to reset the roi if it is greater than scaler
5495 * @roi : cam_area_t struct to resize
5500 bool QCamera3HardwareInterface::resetIfNeededROI(cam_area_t* roi,
5503 int32_t roi_x_max = roi->rect.width + roi->rect.left;
5504 int32_t roi_y_max = roi->rect.height + roi->rect.top;
5508 /* According to spec weight = 0 is used to indicate roi needs to be disabled
5509 * without having this check the calculations below to validate if the roi
5510 * is inside scalar crop region will fail resulting in the roi not being
5511 * reset causing algorithm to continue to use stale roi window
5513 if (roi->weight == 0) {
5518 // right edge of roi window is left of scalar crop's left edge
5520 // bottom edge of roi window is above scalar crop's top edge
5521 (roi->rect.left > crop_x_max) ||
5522 // left edge of roi window is beyond(right) of scalar crop's right edge
5523 (roi->rect.top > crop_y_max)){
5524 // top edge of roi windo is above scalar crop's top edge
5527 if (roi->rect.left < scalerCropRegion->left) {
5528 roi->rect.left = scalerCropRegion->left;
5530 if (roi->rect.top < scalerCropRegion->top) {
5531 roi->rect.top = scalerCropRegion->top;
5539 roi->rect.width = roi_x_max - roi->rect.left;
5540 roi->rect.height = roi_y_max - roi->rect.top;
7769 CDBG("%s: Found reprocess roi map data for stream %p %dx%d, %dx%d",
8518 cam_area_t roi;
8520 convertFromRegions(roi, request->settings, ANDROID_CONTROL_AE_REGIONS);
8523 mCropRegionMapper.toSensor(roi.rect.left, roi.rect.top, roi.rect.width,
8524 roi.rect.height);
8527 reset = resetIfNeededROI(&roi, &scalerCropRegion);
8529 if (reset && ADD_SET_PARAM_ENTRY_TO_BATCH(hal_metadata, CAM_INTF_META_AEC_ROI, roi)) {
8535 cam_area_t roi;
8537 convertFromRegions(roi, request->settings, ANDROID_CONTROL_AF_REGIONS);
8540 mCropRegionMapper.toSensor(roi.rect.left, roi.rect.top, roi.rect.width,
8541 roi.rect.height);
8544 reset = resetIfNeededROI(&roi, &scalerCropRegion);
8546 if (reset && ADD_SET_PARAM_ENTRY_TO_BATCH(hal_metadata, CAM_INTF_META_AF_ROI, roi)) {