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/
Dzoom_ratio_mapper.cc57 memcpy(&active_array_dimension_, &params->active_array_dimension, in Initialize()
76 Dimension active_array_dimension = active_array_dimension_; in GetActiveArrayDimension() local
83 active_array_dimension = override_dimension; in GetActiveArrayDimension()
115 return active_array_dimension; in GetActiveArrayDimension()
118 return active_array_dimension; in GetActiveArrayDimension()
133 Dimension active_array_dimension = GetActiveArrayDimension( in UpdateCaptureRequest() local
135 ApplyZoomRatio(active_array_dimension, true, request->settings.get()); in UpdateCaptureRequest()
162 Dimension active_array_dimension = GetActiveArrayDimension( in UpdateCaptureResult() local
164 ApplyZoomRatio(active_array_dimension, false, result->result_metadata.get()); in UpdateCaptureResult()
179 void ZoomRatioMapper::ApplyZoomRatio(const Dimension& active_array_dimension, in ApplyZoomRatio() argument
[all …]
Dutils.h99 void ConvertZoomRatio(float zoom_ratio, const Dimension& active_array_dimension,
105 void ClampBoundary(const Dimension& active_array_dimension, T* x, T* y,
112 static_cast<T>(active_array_dimension.width - 1));
114 static_cast<T>(active_array_dimension.height - 1));
118 static_cast<T>(active_array_dimension.width - *x));
122 static_cast<T>(active_array_dimension.height - *y));
129 const Dimension& active_array_dimension,
137 0.5f * active_array_dimension.width * (zoom_ratio - 1.0f);
139 0.5f * active_array_dimension.height * (zoom_ratio - 1.0f);
155 ClampBoundary(active_array_dimension, x, y, width, height);
Dzoom_ratio_mapper.h29 Dimension active_array_dimension; member
53 void ApplyZoomRatio(const Dimension& active_array_dimension,
59 const Dimension& active_array_dimension,
65 const Dimension& active_array_dimension,
71 const Dimension& active_array_dimension,
Dutils.cc456 const Dimension& active_array_dimension, int32_t* left, in ConvertZoomRatio() argument
465 *left = std::round(*left / zoom_ratio + 0.5f * active_array_dimension.width * in ConvertZoomRatio()
467 *top = std::round(*top / zoom_ratio + 0.5f * active_array_dimension.height * in ConvertZoomRatio()
473 utils::ClampBoundary(active_array_dimension, left, top, width, height); in ConvertZoomRatio()
/hardware/google/camera/devices/EmulatedCamera/hwl/
DEmulatedCameraDeviceSessionHWLImpl.cpp54 Dimension* active_array_dimension) const { in GetActiveArrayDimensionToBeUsed()
56 if (settings == nullptr || active_array_dimension == nullptr || in GetActiveArrayDimensionToBeUsed()
65 *active_array_dimension = dim_it->second.second; in GetActiveArrayDimensionToBeUsed()
70 *active_array_dimension = dim_it->second.first; in GetActiveArrayDimensionToBeUsed()
72 *active_array_dimension = dim_it->second.second; in GetActiveArrayDimensionToBeUsed()
DEmulatedCameraDeviceSessionHWLImpl.h62 Dimension* active_array_dimension) const override;
/hardware/google/camera/common/hal/google_camera_hal/
Dcamera_device_session.cc484 params.active_array_dimension = { in InitializeZoomRatioMapper()
513 Dimension active_array_dimension = { in InitializeZoomRatioMapper() local
517 active_array_dimension); in InitializeZoomRatioMapper()