Home | History | Annotate | Download | only in HAL3

Lines Matching defs:roi

1510 void QCamera3HardwareInterface::convertFromRegions(cam_area_t* roi,
1519 roi->weight = frame_settings.find(tag).data.i32[4];
1520 roi->rect.left = x_min;
1521 roi->rect.top = y_min;
1522 roi->rect.width = x_max - x_min;
1523 roi->rect.height = y_max - y_min;
1529 * DESCRIPTION: helper method to reset the roi if it is greater than scaler
1533 * @roi : cam_area_t struct to resize
1538 bool QCamera3HardwareInterface::resetIfNeededROI(cam_area_t* roi,
1541 int32_t roi_x_max = roi->rect.width + roi->rect.left;
1542 int32_t roi_y_max = roi->rect.height + roi->rect.top;
1547 (roi->rect.left > crop_x_max) ||
1548 (roi->rect.top > crop_y_max)){
1551 if (roi->rect.left < scalerCropRegion->left) {
1552 roi->rect.left = scalerCropRegion->left;
1554 if (roi->rect.top < scalerCropRegion->top) {
1555 roi->rect.top = scalerCropRegion->top;
1563 roi->rect.width = roi_x_max - roi->rect.left;
1564 roi->rect.height = roi_y_max - roi->rect.top;
3121 cam_area_t roi;
3123 convertFromRegions(&roi, settings, ANDROID_CONTROL_AE_REGIONS);
3125 reset = resetIfNeededROI(&roi, &scalerCropRegion);
3129 sizeof(roi), &roi);
3134 cam_area_t roi;
3136 convertFromRegions(&roi, settings, ANDROID_CONTROL_AF_REGIONS);
3138 reset = resetIfNeededROI(&roi, &scalerCropRegion);
3142 sizeof(roi), &roi);
3147 cam_area_t roi;
3149 convertFromRegions(&roi, settings, ANDROID_CONTROL_AWB_REGIONS);
3151 reset = resetIfNeededROI(&roi, &scalerCropRegion);
3155 sizeof(roi), &roi);