Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/hardware/camera2/utils/
DSurfaceUtils.java146 Range<Integer> fpsRange, StreamConfigurationMap config) { in checkConstrainedHighSpeedSurfaces() argument
153 if (fpsRange == null) { in checkConstrainedHighSpeedSurfaces()
158 if(!Arrays.asList(highSpeedFpsRanges).contains(fpsRange)) { in checkConstrainedHighSpeedSurfaces()
159 throw new IllegalArgumentException("Fps range " + fpsRange.toString() + " in the" in checkConstrainedHighSpeedSurfaces()
163 highSpeedSizes = Arrays.asList(config.getHighSpeedVideoSizesFor(fpsRange)); in checkConstrainedHighSpeedSurfaces()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DCamera2RecordingTest.java224 for (Range<Integer> fpsRange : fixedFpsRanges) { in constrainedHighSpeedRecording()
225 int captureRate = fpsRange.getLower(); in constrainedHighSpeedRecording()
228 if (fpsRange.getUpper() > getFpsFromHighSpeedProfileForSize(size)) { in constrainedHighSpeedRecording()
245 captureRate, fpsRange, resultListener, in constrainedHighSpeedRecording()
306 int captureRate, Range<Integer> fpsRange, in startSlowMotionRecording() argument
326 requestBuilder.set(CaptureRequest.CONTROL_AE_TARGET_FPS_RANGE, fpsRange); in startSlowMotionRecording()
348 recordingRequestBuilder.set(CaptureRequest.CONTROL_AE_TARGET_FPS_RANGE, fpsRange); in startSlowMotionRecording()
351 recordingOnlyBuilder.set(CaptureRequest.CONTROL_AE_TARGET_FPS_RANGE, fpsRange); in startSlowMotionRecording()
391 Range<Integer> fpsRange = new Range(profile.videoFrameRate, profile.videoFrameRate); in basicRecordingTestByCamera() local
404 assertTrue("Frame rate range " + fpsRange + " (for profile ID " + profileId + in basicRecordingTestByCamera()
[all …]
DCamera2SwitchPreviewTest.java352 Range<Integer> fpsRange = new Range(profile.videoFrameRate, profile.videoFrameRate); in basicRecordingPreviewTestByCamera() local
365 assertTrue("Frame rate range " + fpsRange + " (for profile ID " + profileId + in basicRecordingPreviewTestByCamera()
367 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.java79 Range<Integer> fpsRange = request.get(CaptureRequest.CONTROL_AE_TARGET_FPS_RANGE); in createHighSpeedRequestList() local
83 SurfaceUtils.checkConstrainedHighSpeedSurfaces(outputSurfaces, fpsRange, config); in createHighSpeedRequestList()
88 int requestListSize = fpsRange.getUpper() / 30; in createHighSpeedRequestList()
/frameworks/base/core/java/android/hardware/camera2/params/
DStreamConfigurationMap.java181 Range<Integer> fpsRange = config.getFpsRange(); in StreamConfigurationMap() local
187 Integer sizeCount = mHighSpeedVideoFpsRangeMap.get(fpsRange); in StreamConfigurationMap()
191 mHighSpeedVideoFpsRangeMap.put(fpsRange, sizeCount + 1); in StreamConfigurationMap()
639 public Size[] getHighSpeedVideoSizesFor(Range<Integer> fpsRange) { in getHighSpeedVideoSizesFor() argument
640 Integer sizeCount = mHighSpeedVideoFpsRangeMap.get(fpsRange); in getHighSpeedVideoSizesFor()
643 "FpsRange %s does not support high speed video recording", fpsRange)); in getHighSpeedVideoSizesFor()
649 if (fpsRange.equals(config.getFpsRange())) { 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.java1185 private static int[] convertAeFpsRangeToLegacy(Range<Integer> fpsRange) { in convertAeFpsRangeToLegacy() argument
1187 legacyFps[Camera.Parameters.PREVIEW_FPS_MIN_INDEX] = fpsRange.getLower(); in convertAeFpsRangeToLegacy()
1188 legacyFps[Camera.Parameters.PREVIEW_FPS_MAX_INDEX] = fpsRange.getUpper(); in convertAeFpsRangeToLegacy()
/frameworks/av/services/camera/libcameraservice/api1/client2/
DParameters.cpp1250 const char *fpsRange, *fpsSingle; in set() local
1252 fpsRange = newParams.get(CameraParameters::KEY_PREVIEW_FRAME_RATE); in set()
1260 if (fpsRange == NULL && fpsSingle == NULL) { in set()
1265 } else if (fpsRange == NULL) { in set()