Home
last modified time | relevance | path

Searched refs:fpsRange (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/core/java/android/hardware/camera2/utils/
DSurfaceUtils.java238 Range<Integer> fpsRange, StreamConfigurationMap config) { in checkConstrainedHighSpeedSurfaces() argument
245 if (fpsRange == null) { in checkConstrainedHighSpeedSurfaces()
250 if(!Arrays.asList(highSpeedFpsRanges).contains(fpsRange)) { in checkConstrainedHighSpeedSurfaces()
251 throw new IllegalArgumentException("Fps range " + fpsRange.toString() + " in the" in checkConstrainedHighSpeedSurfaces()
255 highSpeedSizes = Arrays.asList(config.getHighSpeedVideoSizesFor(fpsRange)); in checkConstrainedHighSpeedSurfaces()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DCamera2RecordingTest.java228 for (Range<Integer> fpsRange : fixedFpsRanges) { in constrainedHighSpeedRecording()
229 int captureRate = fpsRange.getLower(); in constrainedHighSpeedRecording()
232 if (fpsRange.getUpper() > getFpsFromHighSpeedProfileForSize(size)) { in constrainedHighSpeedRecording()
249 captureRate, fpsRange, resultListener, in constrainedHighSpeedRecording()
310 int captureRate, Range<Integer> fpsRange, in startSlowMotionRecording() argument
330 requestBuilder.set(CaptureRequest.CONTROL_AE_TARGET_FPS_RANGE, fpsRange); in startSlowMotionRecording()
352 recordingRequestBuilder.set(CaptureRequest.CONTROL_AE_TARGET_FPS_RANGE, fpsRange); in startSlowMotionRecording()
355 recordingOnlyBuilder.set(CaptureRequest.CONTROL_AE_TARGET_FPS_RANGE, fpsRange); in startSlowMotionRecording()
395 Range<Integer> fpsRange = new Range(profile.videoFrameRate, profile.videoFrameRate); in basicRecordingTestByCamera() local
408 assertTrue("Frame rate range " + fpsRange + " (for profile ID " + profileId + in basicRecordingTestByCamera()
[all …]
DCamera2SwitchPreviewTest.java316 Range<Integer> fpsRange = new Range(profile.videoFrameRate, profile.videoFrameRate); in basicRecordingPreviewTestByCamera() local
329 assertTrue("Frame rate range " + fpsRange + " (for profile ID " + profileId + in basicRecordingPreviewTestByCamera()
331 fpsRanges.contains(fpsRange)); in basicRecordingPreviewTestByCamera()
/frameworks/base/core/java/android/hardware/camera2/impl/
DCameraConstrainedHighSpeedCaptureSessionImpl.java96 Range<Integer> fpsRange = request.get(CaptureRequest.CONTROL_AE_TARGET_FPS_RANGE); in createHighSpeedRequestList() local
99 SurfaceUtils.checkConstrainedHighSpeedSurfaces(outputSurfaces, fpsRange, config); in createHighSpeedRequestList()
121 int requestListSize = fpsRange.getUpper() / previewFps; in createHighSpeedRequestList()
123 if (fpsRange.getUpper() > fpsRange.getLower()) { in createHighSpeedRequestList()
DCameraOfflineSessionImpl.java257 final Range<Integer> fpsRange = in onCaptureStarted()
264 NANO_PER_SECOND/fpsRange.getUpper(); in onCaptureStarted()
373 final Range<Integer> fpsRange = in onResultReceived() local
392 NANO_PER_SECOND/fpsRange.getUpper()); in onResultReceived()
DCameraDeviceImpl.java2211 final Range<Integer> fpsRange = in onCaptureStarted()
2218 NANO_PER_SECOND / fpsRange.getUpper(), in onCaptureStarted()
2225 NANO_PER_SECOND / fpsRange.getUpper(), in onCaptureStarted()
2366 final Range<Integer> fpsRange = in onResultReceived() local
2383 NANO_PER_SECOND/fpsRange.getUpper()); in onResultReceived()
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DAndroidCamera2Capabilities.java46 for (Range<Integer> fpsRange : p.get(CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES)) { in AndroidCamera2Capabilities()
47 mSupportedPreviewFpsRange.add(new int[] { fpsRange.getLower(), fpsRange.getUpper() }); in AndroidCamera2Capabilities()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DCamera2SurfaceViewTestCase.java730 protected Size getMaxPreviewSizeForFpsRange(Range<Integer> fpsRange) { in getMaxPreviewSizeForFpsRange() argument
731 if (fpsRange == null || fpsRange.getLower() <= 0 || fpsRange.getUpper() <= 0) { in getMaxPreviewSizeForFpsRange()
740 new long[]{(long) (1e9 / fpsRange.getUpper()), (long) (1e9 / fpsRange.getLower())}; in getMaxPreviewSizeForFpsRange()
/frameworks/base/core/java/android/hardware/camera2/params/
DRecommendedStreamConfigurationMap.java384 public @Nullable Set<Size> getHighSpeedVideoSizesFor(@NonNull Range<Integer> fpsRange) { in getHighSpeedVideoSizesFor() argument
385 return getUnmodifiableSizeSet(mRecommendedMap.getHighSpeedVideoSizesFor(fpsRange)); in getHighSpeedVideoSizesFor()
DStreamConfigurationMap.java359 Range<Integer> fpsRange = config.getFpsRange(); in StreamConfigurationMap() local
365 Integer sizeCount = mHighSpeedVideoFpsRangeMap.get(fpsRange); in StreamConfigurationMap()
369 mHighSpeedVideoFpsRangeMap.put(fpsRange, sizeCount + 1); in StreamConfigurationMap()
865 public Size[] getHighSpeedVideoSizesFor(Range<Integer> fpsRange) { in getHighSpeedVideoSizesFor() argument
866 Integer sizeCount = mHighSpeedVideoFpsRangeMap.get(fpsRange); in getHighSpeedVideoSizesFor()
869 "FpsRange %s does not support high speed video recording", fpsRange)); in getHighSpeedVideoSizesFor()
875 if (fpsRange.equals(config.getFpsRange())) { in getHighSpeedVideoSizesFor()
/frameworks/av/services/camera/virtualcamera/
DVirtualCameraRenderThread.cc166 if (requestSettings.fpsRange.has_value()) { in createCaptureResultMetadata()
167 builder.setControlAeTargetFpsRange(requestSettings.fpsRange.value()); in createCaptureResultMetadata()
294 if (requestSettings.fpsRange.has_value()) { in getMaxFrameDuration()
296 1e9 / std::max(1, requestSettings.fpsRange->minFps))); in getMaxFrameDuration()
499 if (request.getRequestSettings().fpsRange) { in processTask()
501 std::max(1, request.getRequestSettings().fpsRange->maxFps); in processTask()
DVirtualCameraRenderThread.h64 std::optional<FpsRange> fpsRange; member
DVirtualCameraSession.cc285 .fpsRange = getFpsRange(metadata), in createSettingsFromMetadata()
/frameworks/av/services/camera/virtualcamera/util/
DMetadataUtil.cc262 for (const FpsRange fpsRange : fpsRanges) { in setControlAeAvailableFpsRanges() local
263 ranges.push_back(fpsRange.minFps); in setControlAeAvailableFpsRanges()
264 ranges.push_back(fpsRange.maxFps); in setControlAeAvailableFpsRanges()
271 const FpsRange fpsRange) { in setControlAeTargetFpsRange() argument
273 std::vector<int32_t>({fpsRange.minFps, fpsRange.maxFps}); in setControlAeTargetFpsRange()
DMetadataUtil.h266 MetadataBuilder& setControlAeTargetFpsRange(FpsRange fpsRange);
/frameworks/native/services/surfaceflinger/
DRefreshRateOverlay.cpp170 RefreshRateOverlay::RefreshRateOverlay(ConstructorTag, FpsRange fpsRange, in RefreshRateOverlay() argument
172 : mFpsRange(fpsRange), in RefreshRateOverlay()
DDisplayDevice.cpp433 const auto fpsRange = mRefreshRateSelector->getSupportedRefreshRateRange(); in enableRefreshRateOverlay() local
434 mRefreshRateOverlay = RefreshRateOverlay::create(fpsRange, features); in enableRefreshRateOverlay()
/frameworks/av/services/camera/libcameraservice/device3/aidl/
DAidlCamera3Device.cpp1664 const auto fpsRange = metadata.find(ANDROID_CONTROL_AE_TARGET_FPS_RANGE); in applyMaxBatchSizeLocked() local
1665 if (fpsRange.count > 1) { in applyMaxBatchSizeLocked()
1670 fpsRange.data.i32[0] == configEntry.data.i32[index - 2] && in applyMaxBatchSizeLocked()
1671 fpsRange.data.i32[1] == configEntry.data.i32[index - 1]) { in applyMaxBatchSizeLocked()
/frameworks/av/services/camera/libcameraservice/api1/client2/
DParameters.cpp1093 FpsRange fpsRange = {availableFpsRanges.data.i32[i], availableFpsRanges.data.i32[i+1]}; in buildFastInfo() local
1094 supportedPreviewFpsRanges.add(fpsRange); in buildFastInfo()
1422 const char *fpsRange, *fpsSingle; in set() local
1425 fpsRange = newParams.get(CameraParameters::KEY_PREVIEW_FPS_RANGE); in set()
1432 if (fpsRange == NULL && fpsSingle == NULL) { in set()
1437 } else if (fpsRange == NULL) { in set()