Home
last modified time | relevance | path

Searched refs:zoom_ratio (Results 1 – 15 of 15) sorted by relevance

/hardware/qcom/camera/msm8998/QCamera2/HAL3/
DQCamera3CropRegionMapper.cpp131 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 …]
DQCamera3CropRegionMapper.h48 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,
DQCamera3HWI.cpp12243 float zoom_ratio = 1.0f; in translateCapabilityToMetadata() local
12244 settings.update(ANDROID_CONTROL_ZOOM_RATIO, &zoom_ratio, 1); in translateCapabilityToMetadata()
/hardware/google/camera/common/hal/utils/
Dzoom_ratio_mapper.cc193 float zoom_ratio = entry.data.f[0]; in ApplyZoomRatio() local
195 if (zoom_ratio < zoom_ratio_range_.min) { in ApplyZoomRatio()
197 zoom_ratio, zoom_ratio_range_.min); in ApplyZoomRatio()
198 zoom_ratio = zoom_ratio_range_.min; in ApplyZoomRatio()
199 } else if (zoom_ratio > zoom_ratio_range_.max) { in ApplyZoomRatio()
201 zoom_ratio, zoom_ratio_range_.max); in ApplyZoomRatio()
202 zoom_ratio = zoom_ratio_range_.max; in ApplyZoomRatio()
206 zoom_ratio_mapper_hwl_->LimitZoomRatioIfConcurrent(&zoom_ratio); in ApplyZoomRatio()
209 if (fabs(zoom_ratio - entry.data.f[0]) > 1e-9) { in ApplyZoomRatio()
210 metadata->Set(ANDROID_CONTROL_ZOOM_RATIO, &zoom_ratio, entry.count); in ApplyZoomRatio()
[all …]
Dutils.h99 void ConvertZoomRatio(float zoom_ratio, const Dimension& active_array_dimension,
128 void RevertZoomRatio(const float zoom_ratio,
136 float tmp_x = *x * zoom_ratio -
137 0.5f * active_array_dimension.width * (zoom_ratio - 1.0f);
138 float tmp_y = *y * zoom_ratio -
139 0.5f * active_array_dimension.height * (zoom_ratio - 1.0f);
150 *width = std::round(*width * zoom_ratio);
153 *height = std::round(*height * zoom_ratio);
Dzoom_ratio_mapper.h58 void UpdateRects(float zoom_ratio, const uint32_t tag_id,
64 void UpdateWeightedRects(float zoom_ratio, const uint32_t tag_id,
70 void UpdatePoints(float zoom_ratio, const uint32_t tag_id,
Dutils.cc455 void ConvertZoomRatio(const float zoom_ratio, in ConvertZoomRatio() argument
464 assert(zoom_ratio != 0); in ConvertZoomRatio()
465 *left = std::round(*left / zoom_ratio + 0.5f * active_array_dimension.width * in ConvertZoomRatio()
466 (1.0f - 1.0f / zoom_ratio)); in ConvertZoomRatio()
467 *top = std::round(*top / zoom_ratio + 0.5f * active_array_dimension.height * in ConvertZoomRatio()
468 (1.0f - 1.0f / zoom_ratio)); in ConvertZoomRatio()
469 *width = std::round(*width / zoom_ratio); in ConvertZoomRatio()
470 *height = std::round(*height / zoom_ratio); in ConvertZoomRatio()
472 if (zoom_ratio >= 1.0f) { in ConvertZoomRatio()
/hardware/google/camera/common/hal/hwl_interface/
Dzoom_ratio_mapper_hwl.h31 virtual void LimitZoomRatioIfConcurrent(float* zoom_ratio) const = 0;
/hardware/qcom/camera/msm8998/QCamera2/util/
DQCameraDualFOVPP.cpp714 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/
DEmulatedSensor.h271 float zoom_ratio = 1.0f; member
427 uint32_t gain, float zoom_ratio, bool rotate,
444 float zoom_ratio, bool rotate_and_crop,
DEmulatedSensor.cpp987 if (device_settings->second.zoom_ratio > 2.0f && in threadLoop()
1091 device_settings->second.zoom_ratio, rotate, in threadLoop()
1134 process_type, device_settings->second.zoom_ratio, in threadLoop()
1167 process_type, device_settings->second.zoom_ratio, in threadLoop()
1620 float zoom_ratio, bool rotate, in CaptureYUV420() argument
1643 const float norm_left_top = 0.5f - 0.5f / zoom_ratio; in CaptureYUV420()
1645 const float norm_width = 1 / zoom_ratio; in CaptureYUV420()
1658 float norm_x = out_x / (width * zoom_ratio); in CaptureYUV420()
1659 float norm_y = out_y / (height * zoom_ratio); in CaptureYUV420()
1768 float zoom_ratio, bool rotate_and_crop, in ProcessYUV420() argument
[all …]
DEmulatedLogicalRequestState.cpp325 float zoom_ratio = entry.data.f[0]; in UpdateRequestForDynamicStreams() local
327 if (zoom_ratio >= one_range.min_zoom_ratio && in UpdateRequestForDynamicStreams()
328 zoom_ratio <= one_range.max_zoom_ratio) { in UpdateRequestForDynamicStreams()
DEmulatedCameraDeviceInfo.cpp1066 float zoom_ratio = 1.0f; in InitializeControlDefaults() local
1158 default_requests_[idx]->Set(ANDROID_CONTROL_ZOOM_RATIO, &zoom_ratio, in InitializeControlDefaults()
DEmulatedRequestState.cpp853 sensor_settings->zoom_ratio = info.zoom_ratio_; in InitializeSensorSettings()
/hardware/google/camera/devices/EmulatedCamera/hwl/utils/
DExifUtils.cpp373 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()