Home | History | Annotate | Download | only in HAL3

Lines Matching full:roi

3968 void QCamera3HardwareInterface::convertFromRegions(cam_area_t* roi,
3977 roi->weight = frame_settings.find(tag).data.i32[4];
3978 roi->rect.left = x_min;
3979 roi->rect.top = y_min;
3980 roi->rect.width = x_max - x_min;
3981 roi->rect.height = y_max - y_min;
3987 * DESCRIPTION: helper method to reset the roi if it is greater than scaler
3991 * @roi : cam_area_t struct to resize
3996 bool QCamera3HardwareInterface::resetIfNeededROI(cam_area_t* roi,
3999 int32_t roi_x_max = roi->rect.width + roi->rect.left;
4000 int32_t roi_y_max = roi->rect.height + roi->rect.top;
4004 /* According to spec weight = 0 is used to indicate roi needs to be disabled
4005 * without having this check the calculations below to validate if the roi
4006 * is inside scalar crop region will fail resulting in the roi not being
4007 * reset causing algorithm to continue to use stale roi window
4009 if (roi->weight == 0) {
4014 // right edge of roi window is left of scalar crop's left edge
4016 // bottom edge of roi window is above scalar crop's top edge
4017 (roi->rect.left > crop_x_max) ||
4018 // left edge of roi window is beyond(right) of scalar crop's right edge
4019 (roi->rect.top > crop_y_max)){
4020 // top edge of roi windo is above scalar crop's top edge
4023 if (roi->rect.left < scalerCropRegion->left) {
4024 roi->rect.left = scalerCropRegion->left;
4026 if (roi->rect.top < scalerCropRegion->top) {
4027 roi->rect.top = scalerCropRegion->top;
4035 roi->rect.width = roi_x_max - roi->rect.left;
4036 roi->rect.height = roi_y_max - roi->rect.top;
6685 cam_area_t roi;
6687 convertFromRegions(&roi, request->settings, ANDROID_CONTROL_AE_REGIONS);
6689 reset = resetIfNeededROI(&roi, &scalerCropRegion);
6693 sizeof(roi), &roi);
6698 cam_area_t roi;
6700 convertFromRegions(&roi, request->settings, ANDROID_CONTROL_AF_REGIONS);
6702 reset = resetIfNeededROI(&roi, &scalerCropRegion);
6706 sizeof(roi), &roi);