Home | History | Annotate | Download | only in HAL3

Lines Matching defs:roi

3152 void QCamera3HardwareInterface::convertFromRegions(cam_area_t* roi,
3161 roi->weight = frame_settings.find(tag).data.i32[4];
3162 roi->rect.left = x_min;
3163 roi
3164 roi->rect.width = x_max - x_min;
3165 roi->rect.height = y_max - y_min;
3171 * DESCRIPTION: helper method to reset the roi if it is greater than scaler
3175 * @roi : cam_area_t struct to resize
3180 bool QCamera3HardwareInterface::resetIfNeededROI(cam_area_t* roi,
3183 int32_t roi_x_max = roi->rect.width + roi->rect.left;
3184 int32_t roi_y_max = roi->rect.height + roi->rect.top;
3189 (roi->rect.left > crop_x_max) ||
3190 (roi->rect.top > crop_y_max)){
3193 if (roi->rect.left < scalerCropRegion->left) {
3194 roi->rect.left = scalerCropRegion->left;
3196 if (roi->rect.top < scalerCropRegion->top) {
3197 roi->rect.top = scalerCropRegion->top;
3205 roi->rect.width = roi_x_max - roi->rect.left;
3206 roi->rect.height = roi_y_max - roi->rect.top;
5493 cam_area_t roi;
5495 convertFromRegions(&roi, request->settings, ANDROID_CONTROL_AE_REGIONS);
5497 reset = resetIfNeededROI(&roi, &scalerCropRegion);
5501 sizeof(roi), &roi);
5506 cam_area_t roi;
5508 convertFromRegions(&roi, request->settings, ANDROID_CONTROL_AF_REGIONS);
5510 reset = resetIfNeededROI(&roi, &scalerCropRegion);
5514 sizeof(roi), &roi);