/hardware/qcom/camera/msm8998/QCamera2/HAL3/ |
D | QCamera3CropRegionMapper.cpp | 131 int32_t& crop_width, int32_t& crop_height, float zoom_ratio) in toActiveArray() argument 138 if (zoom_ratio < MIN_ZOOM_RATIO) { in toActiveArray() 139 LOGE("Invalid zoom ratio %f", zoom_ratio); in toActiveArray() 152 left = left * zoom_ratio - (zoom_ratio - 1) * 0.5f * mActiveArrayW; in toActiveArray() 153 top = top * zoom_ratio - (zoom_ratio - 1) * 0.5f * mActiveArrayH; in toActiveArray() 154 width = width * zoom_ratio; in toActiveArray() 155 height = height * zoom_ratio; in toActiveArray() 182 int32_t& crop_width, int32_t& crop_height, float zoom_ratio) in toSensor() argument 190 applyZoomRatioHelper(crop_left, crop_top, crop_width, crop_height, zoom_ratio, in toSensor() 212 int32_t& crop_width, int32_t& crop_height, float zoom_ratio, bool to_sensor) in applyZoomRatioHelper() argument [all …]
|
D | QCamera3CropRegionMapper.h | 48 int32_t& crop_width, int32_t& crop_height, float zoom_ratio); 50 int32_t& crop_width, int32_t& crop_height, float zoom_ratio); 51 void toActiveArray(uint32_t& x, uint32_t& y, float zoom_ratio); 52 void toSensor(uint32_t& x, uint32_t& y, float zoom_ratio); 58 int32_t& crop_width, int32_t& crop_height, float zoom_ratio); 70 int32_t& crop_width, int32_t& crop_height, float zoom_ratio,
|
/hardware/google/camera/common/hal/utils/ |
D | zoom_ratio_mapper.cc | 160 float zoom_ratio = entry.data.f[0]; in ApplyZoomRatio() local 162 if (zoom_ratio < zoom_ratio_range_.min) { in ApplyZoomRatio() 164 zoom_ratio, zoom_ratio_range_.min); in ApplyZoomRatio() 165 zoom_ratio = zoom_ratio_range_.min; in ApplyZoomRatio() 166 } else if (zoom_ratio > zoom_ratio_range_.max) { in ApplyZoomRatio() 168 zoom_ratio, zoom_ratio_range_.max); in ApplyZoomRatio() 169 zoom_ratio = zoom_ratio_range_.max; in ApplyZoomRatio() 173 zoom_ratio_mapper_hwl_->LimitZoomRatioIfConcurrent(&zoom_ratio); in ApplyZoomRatio() 176 if (fabs(zoom_ratio - entry.data.f[0]) > 1e-9) { in ApplyZoomRatio() 177 metadata->Set(ANDROID_CONTROL_ZOOM_RATIO, &zoom_ratio, entry.count); in ApplyZoomRatio() [all …]
|
D | utils.h | 81 void ConvertZoomRatio(float zoom_ratio, const Dimension& active_array_dimension, 110 void RevertZoomRatio(const float zoom_ratio, 118 float tmp_x = *x * zoom_ratio - 119 0.5f * active_array_dimension.width * (zoom_ratio - 1.0f); 120 float tmp_y = *y * zoom_ratio - 121 0.5f * active_array_dimension.height * (zoom_ratio - 1.0f); 132 *width = std::round(*width * zoom_ratio); 135 *height = std::round(*height * zoom_ratio);
|
D | zoom_ratio_mapper.h | 51 void UpdateRects(float zoom_ratio, const uint32_t tag_id, 57 void UpdateWeightedRects(float zoom_ratio, const uint32_t tag_id, 63 void UpdatePoints(float zoom_ratio, const uint32_t tag_id,
|
D | utils.cc | 400 void ConvertZoomRatio(const float zoom_ratio, in ConvertZoomRatio() argument 409 assert(zoom_ratio != 0); in ConvertZoomRatio() 410 *left = std::round(*left / zoom_ratio + 0.5f * active_array_dimension.width * in ConvertZoomRatio() 411 (1.0f - 1.0f / zoom_ratio)); in ConvertZoomRatio() 412 *top = std::round(*top / zoom_ratio + 0.5f * active_array_dimension.height * in ConvertZoomRatio() 413 (1.0f - 1.0f / zoom_ratio)); in ConvertZoomRatio() 414 *width = std::round(*width / zoom_ratio); in ConvertZoomRatio() 415 *height = std::round(*height / zoom_ratio); in ConvertZoomRatio() 417 if (zoom_ratio >= 1.0f) { in ConvertZoomRatio()
|
/hardware/google/camera/common/hal/hwl_interface/ |
D | zoom_ratio_mapper_hwl.h | 31 virtual void LimitZoomRatioIfConcurrent(float* zoom_ratio) const = 0;
|
/hardware/qcom/camera/msm8998/QCamera2/util/ |
D | QCameraDualFOVPP.cpp | 714 uint32_t zoom_ratio = 4096; in getUserZoomRatio() local 726 zoom_ratio *= m_pCaps->zoom_ratio_tbl[zoom_level]; in getUserZoomRatio() 727 zoom_ratio /= 100; in getUserZoomRatio() 728 LOGD("converted zoom ratio:%d", zoom_ratio); in getUserZoomRatio() 731 LOGD("X. zoom_ratio:%d", zoom_ratio); in getUserZoomRatio() 732 return zoom_ratio; in getUserZoomRatio()
|
/hardware/google/camera/devices/EmulatedCamera/hwl/ |
D | EmulatedSensor.h | 209 float zoom_ratio = 1.0f; member 349 uint32_t gain, float zoom_ratio, bool rotate, 363 float zoom_ratio, bool rotate_and_crop,
|
D | EmulatedSensor.cpp | 876 process_type, device_settings->second.zoom_ratio, in threadLoop() 925 process_type, device_settings->second.zoom_ratio, in threadLoop() 955 device_settings->second.zoom_ratio, rotate, in threadLoop() 1391 float zoom_ratio, bool rotate, in CaptureYUV420() argument 1413 const float norm_left_top = 0.5f - 0.5f / zoom_ratio; in CaptureYUV420() 1415 const float norm_width = 1 / zoom_ratio; in CaptureYUV420() 1428 float norm_x = out_x / (width * zoom_ratio); in CaptureYUV420() 1429 float norm_y = out_y / (height * zoom_ratio); in CaptureYUV420() 1531 ProcessType process_type, float zoom_ratio, in ProcessYUV420() argument 1548 CaptureYUV420(output.planes, output.width, output.height, gain, zoom_ratio, in ProcessYUV420() [all …]
|
D | EmulatedLogicalRequestState.cpp | 291 float zoom_ratio = entry.data.f[0]; in UpdateRequestForDynamicStreams() local 293 if (zoom_ratio >= one_range.min_zoom_ratio && in UpdateRequestForDynamicStreams() 294 zoom_ratio <= one_range.max_zoom_ratio) { in UpdateRequestForDynamicStreams()
|
D | EmulatedRequestState.cpp | 824 sensor_settings->zoom_ratio = zoom_ratio_; in InitializeSensorSettings() 1964 float zoom_ratio = 1.0f; in InitializeControlDefaults() local 2056 default_requests_[idx]->Set(ANDROID_CONTROL_ZOOM_RATIO, &zoom_ratio, in InitializeControlDefaults()
|
/hardware/google/camera/devices/EmulatedCamera/hwl/utils/ |
D | ExifUtils.cpp | 373 float zoom_ratio = std::max(zoom_ratio_x, zoom_ratio_y); in SetDigitalZoomRatio() local 376 if (zoom_ratio <= no_zoom_threshold) { in SetDigitalZoomRatio() 381 static_cast<uint32_t>(std::round(zoom_ratio * kRationalPrecision)), in SetDigitalZoomRatio()
|