Home
last modified time | relevance | path

Searched refs:active_array_dimension (Results 1 – 7 of 7) sorted by relevance

/hardware/google/camera/common/hal/utils/
Dutils.h81 void ConvertZoomRatio(float zoom_ratio, const Dimension& active_array_dimension,
87 void ClampBoundary(const Dimension& active_array_dimension, T* x, T* y,
94 static_cast<T>(active_array_dimension.width - 1));
96 static_cast<T>(active_array_dimension.height - 1));
100 static_cast<T>(active_array_dimension.width - *x));
104 static_cast<T>(active_array_dimension.height - *y));
111 const Dimension& active_array_dimension,
119 0.5f * active_array_dimension.width * (zoom_ratio - 1.0f);
121 0.5f * active_array_dimension.height * (zoom_ratio - 1.0f);
137 ClampBoundary(active_array_dimension, x, y, width, height);
Dzoom_ratio_mapper.h29 Dimension active_array_dimension; member
46 void ApplyZoomRatio(const Dimension& active_array_dimension,
52 const Dimension& active_array_dimension,
58 const Dimension& active_array_dimension,
64 const Dimension& active_array_dimension,
Dzoom_ratio_mapper.cc42 memcpy(&active_array_dimension_, &params->active_array_dimension, in Initialize()
146 void ZoomRatioMapper::ApplyZoomRatio(const Dimension& active_array_dimension, in ApplyZoomRatio() argument
181 UpdateRects(zoom_ratio, tag_id, active_array_dimension, is_request, in ApplyZoomRatio()
186 UpdateWeightedRects(zoom_ratio, tag_id, active_array_dimension, is_request, in ApplyZoomRatio()
192 UpdatePoints(zoom_ratio, tag_id, active_array_dimension, metadata); in ApplyZoomRatio()
198 const Dimension& active_array_dimension, in UpdateRects() argument
218 utils::ConvertZoomRatio(zoom_ratio, active_array_dimension, &left, &top, in UpdateRects()
221 utils::RevertZoomRatio(zoom_ratio, active_array_dimension, true, &left, in UpdateRects()
241 const Dimension& active_array_dimension, const bool is_request, in UpdateWeightedRects() argument
266 utils::ConvertZoomRatio(zoom_ratio, active_array_dimension, &left, &top, in UpdateWeightedRects()
[all …]
Dutils.cc401 const Dimension& active_array_dimension, int32_t* left, in ConvertZoomRatio() argument
410 *left = std::round(*left / zoom_ratio + 0.5f * active_array_dimension.width * in ConvertZoomRatio()
412 *top = std::round(*top / zoom_ratio + 0.5f * active_array_dimension.height * in ConvertZoomRatio()
418 utils::ClampBoundary(active_array_dimension, left, top, width, height); in ConvertZoomRatio()
/hardware/google/camera/devices/EmulatedCamera/hwl/
DEmulatedCameraDeviceSessionHWLImpl.cpp51 Dimension* active_array_dimension) const { in GetActiveArrayDimensionToBeUsed()
53 if (settings == nullptr || active_array_dimension == nullptr || in GetActiveArrayDimensionToBeUsed()
62 *active_array_dimension = dim_it->second.second; in GetActiveArrayDimensionToBeUsed()
67 *active_array_dimension = dim_it->second.first; in GetActiveArrayDimensionToBeUsed()
69 *active_array_dimension = dim_it->second.second; in GetActiveArrayDimensionToBeUsed()
DEmulatedCameraDeviceSessionHWLImpl.h61 Dimension* active_array_dimension) const override;
/hardware/google/camera/common/hal/google_camera_hal/
Dcamera_device_session.cc471 params.active_array_dimension = { in InitializeZoomRatioMapper()
495 Dimension active_array_dimension = { in InitializeZoomRatioMapper() local
499 active_array_dimension); in InitializeZoomRatioMapper()