Lines Matching refs:zoom_ratio
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
214 if (zoom_ratio < MIN_ZOOM_RATIO) { in applyZoomRatioHelper()
215 LOGE("Invalid zoom ratio %f", zoom_ratio); in applyZoomRatioHelper()
222 float left = crop_left / zoom_ratio + in applyZoomRatioHelper()
223 0.5f * mActiveArrayW * (1.0f - 1.0f / zoom_ratio); in applyZoomRatioHelper()
224 float top = crop_top / zoom_ratio + in applyZoomRatioHelper()
225 0.5f * mActiveArrayH * (1.0f - 1.0f / zoom_ratio); in applyZoomRatioHelper()
226 float width = crop_width / zoom_ratio; in applyZoomRatioHelper()
227 float height = crop_height / zoom_ratio; in applyZoomRatioHelper()
266 int32_t& crop_width, int32_t& crop_height, float zoom_ratio) in applyZoomRatio() argument
273 applyZoomRatioHelper(crop_left, crop_top, crop_width, crop_height, zoom_ratio, in applyZoomRatio()
328 void QCamera3CropRegionMapper::toActiveArray(uint32_t& x, uint32_t& y, float zoom_ratio) in toActiveArray() argument
341 if (zoom_ratio < MIN_ZOOM_RATIO) { in toActiveArray()
342 LOGE("Invalid zoom ratio %f", zoom_ratio); in toActiveArray()
353 x = x * zoom_ratio - (zoom_ratio - 1) * 0.5f * mActiveArrayW; in toActiveArray()
354 y = y * zoom_ratio - (zoom_ratio - 1) * 0.5f * mActiveArrayH; in toActiveArray()
370 void QCamera3CropRegionMapper::toSensor(uint32_t& x, uint32_t& y, float zoom_ratio) in toSensor() argument
383 if (zoom_ratio < MIN_ZOOM_RATIO) { in toSensor()
384 LOGE("Invalid zoom ratio %f", zoom_ratio); in toSensor()
391 x = x / zoom_ratio + in toSensor()
392 0.5f * mActiveArrayW * (1.0f - 1.0f / zoom_ratio); in toSensor()
393 y = y / zoom_ratio + in toSensor()
394 0.5f * mActiveArrayH * (1.0f - 1.0f / zoom_ratio); in toSensor()