• Home
  • Raw
  • Download

Lines Matching refs:entry

44     camera_metadata_entry_t entry;  in initZoomRatioInTemplate()  local
45 entry = request->find(ANDROID_CONTROL_ZOOM_RATIO); in initZoomRatioInTemplate()
47 if (entry.count == 0) { in initZoomRatioInTemplate()
59 camera_metadata_entry_t entry; in overrideZoomRatioTags() local
60 entry = deviceInfo->find(ANDROID_CONTROL_ZOOM_RATIO_RANGE); in overrideZoomRatioTags()
61 if (entry.count != 2 && entry.count != 0) return BAD_VALUE; in overrideZoomRatioTags()
64 if (entry.count == 2) { in overrideZoomRatioTags()
72 entry = deviceInfo->find(ANDROID_SCALER_AVAILABLE_MAX_DIGITAL_ZOOM); in overrideZoomRatioTags()
73 if (entry.count != 1) { in overrideZoomRatioTags()
79 float zoomRange[] = {1.0f, entry.data.f[0]}; in overrideZoomRatioTags()
88 entry = deviceInfo->find(ANDROID_REQUEST_AVAILABLE_REQUEST_KEYS); in overrideZoomRatioTags()
89 if (entry.count > 0) { in overrideZoomRatioTags()
90 requestKeys.insert(requestKeys.end(), entry.data.i32, entry.data.i32 + entry.count); in overrideZoomRatioTags()
102 entry = deviceInfo->find(ANDROID_REQUEST_AVAILABLE_RESULT_KEYS); in overrideZoomRatioTags()
103 if (entry.count > 0) { in overrideZoomRatioTags()
104 resultKeys.insert(resultKeys.end(), entry.data.i32, entry.data.i32 + entry.count); in overrideZoomRatioTags()
116 entry = deviceInfo->find(ANDROID_REQUEST_AVAILABLE_CHARACTERISTICS_KEYS); in overrideZoomRatioTags()
117 if (entry.count > 0) { in overrideZoomRatioTags()
118 charKeys.insert(charKeys.end(), entry.data.i32, entry.data.i32 + entry.count); in overrideZoomRatioTags()
226 camera_metadata_entry_t entry; in updateCaptureRequest() local
232 entry = request->find(ANDROID_CONTROL_ZOOM_RATIO); in updateCaptureRequest()
233 if (entry.count == 1 && entry.data.f[0] != 1.0f) { in updateCaptureRequest()
258 if (!mHalSupportsZoomRatio && entry.count == 1) { in updateCaptureRequest()
280 camera_metadata_entry_t entry = result->find(ANDROID_CONTROL_ZOOM_RATIO); in updateCaptureResult() local
281 if (entry.count == 0) { in updateCaptureResult()
297 camera_metadata_ro_entry_t entry; in deriveZoomRatio() local
298 entry = metadata->find(ANDROID_SCALER_CROP_REGION); in deriveZoomRatio()
299 if (entry.count != 4) { in deriveZoomRatio()
309 float cropRegionLeft = arrayCenterX - entry.data.i32[0] ; in deriveZoomRatio()
310 float cropRegionTop = arrayCenterY - entry.data.i32[1]; in deriveZoomRatio()
311 float cropRegionRight = entry.data.i32[0] + entry.data.i32[2] - arrayCenterX; in deriveZoomRatio()
312 float cropRegionBottom = entry.data.i32[1] + entry.data.i32[3] - arrayCenterY; in deriveZoomRatio()
349 camera_metadata_entry_t entry; in separateZoomFromCropLocked() local
351 entry = metadata->find(region); in separateZoomFromCropLocked()
352 for (size_t j = 0; j < entry.count; j += 5) { in separateZoomFromCropLocked()
353 int32_t weight = entry.data.i32[j + 4]; in separateZoomFromCropLocked()
358 scaleCoordinates(entry.data.i32 + j, 1, zoomRatio, true /*clamp*/, arrayWidth, in separateZoomFromCropLocked()
362 entry.data.i32[j+2] -= 1; in separateZoomFromCropLocked()
363 entry.data.i32[j+3] -= 1; in separateZoomFromCropLocked()
364 scaleCoordinates(entry.data.i32 + j + 2, 1, zoomRatio, true /*clamp*/, arrayWidth, in separateZoomFromCropLocked()
366 entry.data.i32[j+2] += 1; in separateZoomFromCropLocked()
367 entry.data.i32[j+3] += 1; in separateZoomFromCropLocked()
372 entry = metadata->find(rect); in separateZoomFromCropLocked()
373 scaleRects(entry.data.i32, entry.count / 4, zoomRatio, arrayWidth, arrayHeight); in separateZoomFromCropLocked()
378 entry = metadata->find(pts); in separateZoomFromCropLocked()
379 scaleCoordinates(entry.data.i32, entry.count / 2, zoomRatio, false /*clamp*/, in separateZoomFromCropLocked()
390 camera_metadata_entry_t entry; in combineZoomAndCropLocked() local
391 entry = metadata->find(ANDROID_CONTROL_ZOOM_RATIO); in combineZoomAndCropLocked()
392 if (entry.count == 1) { in combineZoomAndCropLocked()
393 zoomRatio = entry.data.f[0]; in combineZoomAndCropLocked()
398 entry = metadata->find(region); in combineZoomAndCropLocked()
399 for (size_t j = 0; j < entry.count; j += 5) { in combineZoomAndCropLocked()
400 int32_t weight = entry.data.i32[j + 4]; in combineZoomAndCropLocked()
405 scaleCoordinates(entry.data.i32 + j, 1, 1.0 / zoomRatio, true /*clamp*/, arrayWidth, in combineZoomAndCropLocked()
409 entry.data.i32[j+2] -= 1; in combineZoomAndCropLocked()
410 entry.data.i32[j+3] -= 1; in combineZoomAndCropLocked()
411 scaleCoordinates(entry.data.i32 + j + 2, 1, 1.0 / zoomRatio, true /*clamp*/, arrayWidth, in combineZoomAndCropLocked()
413 entry.data.i32[j+2] += 1; in combineZoomAndCropLocked()
414 entry.data.i32[j+3] += 1; in combineZoomAndCropLocked()
418 entry = metadata->find(rect); in combineZoomAndCropLocked()
419 scaleRects(entry.data.i32, entry.count / 4, 1.0 / zoomRatio, arrayWidth, arrayHeight); in combineZoomAndCropLocked()
423 entry = metadata->find(pts); in combineZoomAndCropLocked()
424 scaleCoordinates(entry.data.i32, entry.count / 2, 1.0 / zoomRatio, false /*clamp*/, in combineZoomAndCropLocked()