Lines Matching refs:roi

9176 void QCamera3HardwareInterface::convertFromRegions(cam_area_t &roi,  in convertFromRegions()  argument
9183 roi.weight = frame_settings.find(tag).data.i32[4]; in convertFromRegions()
9184 roi.rect.left = x_min; in convertFromRegions()
9185 roi.rect.top = y_min; in convertFromRegions()
9186 roi.rect.width = x_max - x_min; in convertFromRegions()
9187 roi.rect.height = y_max - y_min; in convertFromRegions()
9202 bool QCamera3HardwareInterface::resetIfNeededROI(cam_area_t* roi, in resetIfNeededROI() argument
9205 int32_t roi_x_max = roi->rect.width + roi->rect.left; in resetIfNeededROI()
9206 int32_t roi_y_max = roi->rect.height + roi->rect.top; in resetIfNeededROI()
9215 if (roi->weight == 0) { in resetIfNeededROI()
9223 (roi->rect.left > crop_x_max) || in resetIfNeededROI()
9225 (roi->rect.top > crop_y_max)){ in resetIfNeededROI()
9229 if (roi->rect.left < scalerCropRegion->left) { in resetIfNeededROI()
9230 roi->rect.left = scalerCropRegion->left; in resetIfNeededROI()
9232 if (roi->rect.top < scalerCropRegion->top) { in resetIfNeededROI()
9233 roi->rect.top = scalerCropRegion->top; in resetIfNeededROI()
9241 roi->rect.width = roi_x_max - roi->rect.left; in resetIfNeededROI()
9242 roi->rect.height = roi_y_max - roi->rect.top; in resetIfNeededROI()
12788 int32_t *roi = in setReprocParameters() local
12790 scale_dim.width = roi[2]; in setReprocParameters()
12791 scale_dim.height = roi[3]; in setReprocParameters()
13630 cam_area_t roi; in translateFwkMetadataToHalMetadata() local
13632 convertFromRegions(roi, frame_settings, ANDROID_CONTROL_AE_REGIONS); in translateFwkMetadataToHalMetadata()
13635 mCropRegionMapper.toSensor(roi.rect.left, roi.rect.top, roi.rect.width, in translateFwkMetadataToHalMetadata()
13636 roi.rect.height); in translateFwkMetadataToHalMetadata()
13639 reset = resetIfNeededROI(&roi, &scalerCropRegion); in translateFwkMetadataToHalMetadata()
13641 if (reset && ADD_SET_PARAM_ENTRY_TO_BATCH(hal_metadata, CAM_INTF_META_AEC_ROI, roi)) { in translateFwkMetadataToHalMetadata()
13647 cam_area_t roi; in translateFwkMetadataToHalMetadata() local
13649 convertFromRegions(roi, frame_settings, ANDROID_CONTROL_AF_REGIONS); in translateFwkMetadataToHalMetadata()
13652 mCropRegionMapper.toSensor(roi.rect.left, roi.rect.top, roi.rect.width, in translateFwkMetadataToHalMetadata()
13653 roi.rect.height); in translateFwkMetadataToHalMetadata()
13656 reset = resetIfNeededROI(&roi, &scalerCropRegion); in translateFwkMetadataToHalMetadata()
13658 if (reset && ADD_SET_PARAM_ENTRY_TO_BATCH(hal_metadata, CAM_INTF_META_AF_ROI, roi)) { in translateFwkMetadataToHalMetadata()