Home | History | Annotate | Download | only in HAL3

Lines Matching defs:roi

2263 void QCamera3HardwareInterface::convertFromRegions(cam_area_t* roi,
2272 roi->weight = frame_settings.find(tag).data.i32[4];
2273 roi->rect.left = x_min;
2274 roi->rect.top = y_min;
2275 roi->rect.width = x_max - x_min;
2276 roi->rect.height = y_max - y_min;
2282 * DESCRIPTION: helper method to reset the roi if it is greater than scaler
2286 * @roi : cam_area_t struct to resize
2291 bool QCamera3HardwareInterface::resetIfNeededROI(cam_area_t* roi,
2294 int32_t roi_x_max = roi->rect.width + roi->rect.left;
2295 int32_t roi_y_max = roi->rect.height + roi->rect.top;
2300 (roi->rect.left > crop_x_max) ||
2301 (roi->rect.top > crop_y_max)){
2304 if (roi->rect.left < scalerCropRegion->left) {
2305 roi->rect.left = scalerCropRegion->left;
2307 if (roi->rect.top < scalerCropRegion->top) {
2308 roi->rect.top = scalerCropRegion->top;
2316 roi->rect.width = roi_x_max - roi->rect.left;
2317 roi->rect.height = roi_y_max - roi->rect.top;
3967 cam_area_t roi;
3969 convertFromRegions(&roi, request->settings, ANDROID_CONTROL_AE_REGIONS);
3971 reset = resetIfNeededROI(&roi, &scalerCropRegion);
3975 sizeof(roi), &roi);
3980 cam_area_t roi;
3982 convertFromRegions(&roi, request->settings, ANDROID_CONTROL_AF_REGIONS);
3984 reset = resetIfNeededROI(&roi, &scalerCropRegion);
3988 sizeof(roi), &roi);
3993 cam_area_t roi;
3995 convertFromRegions(&roi, request->settings, ANDROID_CONTROL_AWB_REGIONS);
3997 reset = resetIfNeededROI(&roi, &scalerCropRegion);
4001 sizeof(roi), &roi);