Home | History | Annotate | Download | only in HAL3

Lines Matching defs:roi

3749 void QCamera3HardwareInterface::convertFromRegions(cam_area_t* roi,
3758 roi->weight = frame_settings.find(tag).data.i32[4];
3759 roi->rect.left = x_min;
3760 roi->rect.top = y_min;
3761 roi->rect.width = x_max - x_min;
3762 roi->rect.height = y_max - y_min;
3768 * DESCRIPTION: helper method to reset the roi if it is greater than scaler
3772 * @roi : cam_area_t struct to resize
3777 bool QCamera3HardwareInterface::resetIfNeededROI(cam_area_t* roi,
3780 int32_t roi_x_max = roi->rect.width + roi->rect.left;
3781 int32_t roi_y_max = roi->rect.height + roi->rect.top;
3785 /* According to spec weight = 0 is used to indicate roi needs to be disabled
3786 * without having this check the calculations below to validate if the roi
3787 * is inside scalar crop region will fail resulting in the roi not being
3788 * reset causing algorithm to continue to use stale roi window
3790 if (roi->weight == 0) {
3795 // right edge of roi window is left of scalar crop's left edge
3797 // bottom edge of roi window is above scalar crop's top edge
3798 (roi->rect.left > crop_x_max) ||
3799 // left edge of roi window is beyond(right) of scalar crop's right edge
3800 (roi->rect.top > crop_y_max)){
3801 // top edge of roi windo is above scalar crop's top edge
3804 if (roi->rect.left < scalerCropRegion->left) {
3805 roi->rect.left = scalerCropRegion->left;
3807 if (roi->rect.top < scalerCropRegion->top) {
3808 roi->rect.top = scalerCropRegion->top;
3816 roi->rect.width = roi_x_max - roi->rect.left;
3817 roi->rect.height = roi_y_max - roi->rect.top;
6352 cam_area_t roi;
6354 convertFromRegions(&roi, request->settings, ANDROID_CONTROL_AE_REGIONS);
6356 reset = resetIfNeededROI(&roi, &scalerCropRegion);
6360 sizeof(roi), &roi);
6365 cam_area_t roi;
6367 convertFromRegions(&roi, request->settings, ANDROID_CONTROL_AF_REGIONS);
6369 reset = resetIfNeededROI(&roi, &scalerCropRegion);
6373 sizeof(roi), &roi);