Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/hardware/camera2/utils/
DSurfaceUtils.java154 Range<Integer> fpsRange, StreamConfigurationMap config) { in checkConstrainedHighSpeedSurfaces() argument
161 if (fpsRange == null) { in checkConstrainedHighSpeedSurfaces()
166 if(!Arrays.asList(highSpeedFpsRanges).contains(fpsRange)) { in checkConstrainedHighSpeedSurfaces()
167 throw new IllegalArgumentException("Fps range " + fpsRange.toString() + " in the" in checkConstrainedHighSpeedSurfaces()
171 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.java353 Range<Integer> fpsRange = new Range(profile.videoFrameRate, profile.videoFrameRate); in basicRecordingPreviewTestByCamera() local
366 assertTrue("Frame rate range " + fpsRange + " (for profile ID " + profileId + in basicRecordingPreviewTestByCamera()
368 fpsRanges.contains(fpsRange)); in basicRecordingPreviewTestByCamera()
/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/impl/
DCameraConstrainedHighSpeedCaptureSessionImpl.java83 Range<Integer> fpsRange = request.get(CaptureRequest.CONTROL_AE_TARGET_FPS_RANGE); in createHighSpeedRequestList() local
87 SurfaceUtils.checkConstrainedHighSpeedSurfaces(outputSurfaces, fpsRange, config); in createHighSpeedRequestList()
92 int requestListSize = fpsRange.getUpper() / 30; in createHighSpeedRequestList()
DCameraDeviceImpl.java2094 final Range<Integer> fpsRange = in onCaptureStarted()
2101 NANO_PER_SECOND/fpsRange.getUpper(), in onCaptureStarted()
2225 final Range<Integer> fpsRange = in onResultReceived() local
2242 NANO_PER_SECOND/fpsRange.getUpper()); in onResultReceived()
/frameworks/base/core/java/android/hardware/camera2/params/
DStreamConfigurationMap.java317 Range<Integer> fpsRange = config.getFpsRange(); in StreamConfigurationMap() local
323 Integer sizeCount = mHighSpeedVideoFpsRangeMap.get(fpsRange); in StreamConfigurationMap()
327 mHighSpeedVideoFpsRangeMap.put(fpsRange, sizeCount + 1); in StreamConfigurationMap()
816 public Size[] getHighSpeedVideoSizesFor(Range<Integer> fpsRange) { in getHighSpeedVideoSizesFor() argument
817 Integer sizeCount = mHighSpeedVideoFpsRangeMap.get(fpsRange); in getHighSpeedVideoSizesFor()
820 "FpsRange %s does not support high speed video recording", fpsRange)); in getHighSpeedVideoSizesFor()
826 if (fpsRange.equals(config.getFpsRange())) { in getHighSpeedVideoSizesFor()
DRecommendedStreamConfigurationMap.java373 public @Nullable Set<Size> getHighSpeedVideoSizesFor(@NonNull Range<Integer> fpsRange) { in getHighSpeedVideoSizesFor() argument
374 return getUnmodifiableSizeSet(mRecommendedMap.getHighSpeedVideoSizesFor(fpsRange)); in getHighSpeedVideoSizesFor()
/frameworks/base/core/java/android/hardware/camera2/legacy/
DLegacyRequestMapper.java631 private static int[] convertAeFpsRangeToLegacy(Range<Integer> fpsRange) { in convertAeFpsRangeToLegacy() argument
633 legacyFps[Parameters.PREVIEW_FPS_MIN_INDEX] = fpsRange.getLower() * 1000; in convertAeFpsRangeToLegacy()
634 legacyFps[Parameters.PREVIEW_FPS_MAX_INDEX] = fpsRange.getUpper() * 1000; in convertAeFpsRangeToLegacy()
DLegacyMetadataMapper.java1194 private static int[] convertAeFpsRangeToLegacy(Range<Integer> fpsRange) { in convertAeFpsRangeToLegacy() argument
1196 legacyFps[Camera.Parameters.PREVIEW_FPS_MIN_INDEX] = fpsRange.getLower(); in convertAeFpsRangeToLegacy()
1197 legacyFps[Camera.Parameters.PREVIEW_FPS_MAX_INDEX] = fpsRange.getUpper(); in convertAeFpsRangeToLegacy()
/frameworks/av/services/camera/libcameraservice/api1/client2/
DParameters.cpp1049 FpsRange fpsRange = {availableFpsRanges.data.i32[i], availableFpsRanges.data.i32[i+1]}; in buildFastInfo() local
1050 supportedPreviewFpsRanges.add(fpsRange); in buildFastInfo()
1377 const char *fpsRange, *fpsSingle; in set() local
1380 fpsRange = newParams.get(CameraParameters::KEY_PREVIEW_FPS_RANGE); in set()
1387 if (fpsRange == NULL && fpsSingle == NULL) { in set()
1392 } else if (fpsRange == NULL) { in set()