Lines Matching refs:roi
5242 void QCamera3HardwareInterface::convertFromRegions(cam_area_t &roi, in convertFromRegions() argument
5251 roi.weight = frame_settings.find(tag).data.i32[4]; in convertFromRegions()
5252 roi.rect.left = x_min; in convertFromRegions()
5253 roi.rect.top = y_min; in convertFromRegions()
5254 roi.rect.width = x_max - x_min; in convertFromRegions()
5255 roi.rect.height = y_max - y_min; in convertFromRegions()
5270 bool QCamera3HardwareInterface::resetIfNeededROI(cam_area_t* roi, in resetIfNeededROI() argument
5273 int32_t roi_x_max = roi->rect.width + roi->rect.left; in resetIfNeededROI()
5274 int32_t roi_y_max = roi->rect.height + roi->rect.top; in resetIfNeededROI()
5283 if (roi->weight == 0) { in resetIfNeededROI()
5291 (roi->rect.left > crop_x_max) || in resetIfNeededROI()
5293 (roi->rect.top > crop_y_max)){ in resetIfNeededROI()
5297 if (roi->rect.left < scalerCropRegion->left) { in resetIfNeededROI()
5298 roi->rect.left = scalerCropRegion->left; in resetIfNeededROI()
5300 if (roi->rect.top < scalerCropRegion->top) { in resetIfNeededROI()
5301 roi->rect.top = scalerCropRegion->top; in resetIfNeededROI()
5309 roi->rect.width = roi_x_max - roi->rect.left; in resetIfNeededROI()
5310 roi->rect.height = roi_y_max - roi->rect.top; in resetIfNeededROI()
8244 cam_area_t roi; in translateToHalMetadata() local
8246 convertFromRegions(roi, request->settings, ANDROID_CONTROL_AE_REGIONS); in translateToHalMetadata()
8249 mCropRegionMapper.toSensor(roi.rect.left, roi.rect.top, roi.rect.width, in translateToHalMetadata()
8250 roi.rect.height); in translateToHalMetadata()
8253 reset = resetIfNeededROI(&roi, &scalerCropRegion); in translateToHalMetadata()
8255 if (reset && ADD_SET_PARAM_ENTRY_TO_BATCH(hal_metadata, CAM_INTF_META_AEC_ROI, roi)) { in translateToHalMetadata()
8261 cam_area_t roi; in translateToHalMetadata() local
8263 convertFromRegions(roi, request->settings, ANDROID_CONTROL_AF_REGIONS); in translateToHalMetadata()
8266 mCropRegionMapper.toSensor(roi.rect.left, roi.rect.top, roi.rect.width, in translateToHalMetadata()
8267 roi.rect.height); in translateToHalMetadata()
8270 reset = resetIfNeededROI(&roi, &scalerCropRegion); in translateToHalMetadata()
8272 if (reset && ADD_SET_PARAM_ENTRY_TO_BATCH(hal_metadata, CAM_INTF_META_AF_ROI, roi)) { in translateToHalMetadata()