Home
last modified time | relevance | path

Searched refs:frameRate (Results 1 – 25 of 95) sorted by relevance

1234

/aosp12/frameworks/av/media/codecs/m4v_h263/enc/test/
H A Dm4v_h263_enc_test.cpp87 int32_t frameRate; in main() local
88 frameRate = atoi(argv[6]); in main()
89 if (frameRate > kMaxFrameRate || frameRate <= 0) { in main()
90 fprintf(stderr, "Unsupported frame rate %d\n", frameRate); in main()
148 encParams.encFrameRate[0] = frameRate; in main()
156 encParams.tickPerSrc = encParams.timeIncRes / frameRate; in main()
168 encParams.intraPeriod = (IDRFrameRefreshIntervalInSec * frameRate); in main()
224 vin.timestamp = (numFramesEncoded * 1000) / frameRate; // in ms. in main()
/aosp12/frameworks/av/media/libstagefright/
H A DCameraSource.cpp99 int32_t frameRate, in CreateFromCamera() argument
115 int32_t frameRate, in CameraSource() argument
139 videoSize, frameRate); in CameraSource()
264 int32_t frameRate) { in configureCamera() argument
292 if (frameRate != -1) { in configureCamera()
293 CHECK(frameRate > 0 && frameRate <= 120); in configureCamera()
391 int32_t frameRate) { in checkFrameRate() argument
402 if (frameRate != -1 && (frameRateActual - frameRate) != 0) { in checkFrameRate()
439 int32_t frameRate) { in init() argument
532 int32_t frameRate) { in initWithCameraAccess() argument
[all …]
/aosp12/hardware/google/av/media/eco/tests/
H A DFakeECOServiceStatsProvider.cpp39 bool isCameraRecording, float frameRate, in FakeECOServiceStatsProvider() argument
44 mFrameRate(frameRate), in FakeECOServiceStatsProvider()
53 bool isCameraRecording, float frameRate) in FakeECOServiceStatsProvider() argument
57 mFrameRate(frameRate), in FakeECOServiceStatsProvider()
H A DFakeECOServiceStatsProvider.h58 float frameRate, android::sp<IECOSession> session);
61 float frameRate);
/aosp12/frameworks/base/media/java/android/media/
H A DEncoderProfiles.java164 return frameRate; in getFrameRate()
197 int frameRate, in VideoProfile() argument
203 this.frameRate = frameRate; in VideoProfile()
211 private int frameRate; field in EncoderProfiles.VideoProfile
H A DSyncParams.java261 public SyncParams setFrameRate(float frameRate) { in setFrameRate() argument
262 mFrameRate = frameRate; in setFrameRate()
/aosp12/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/
H A DMediaPlayerPerformance.java222 private boolean stressVideoRecord(int frameRate, int width, int height, int videoFormat, in stressVideoRecord() argument
237 mRecorder.setVideoFrameRate(frameRate); in stressVideoRecord()
456 int frameRate = MediaProfileReader in testH263RecordVideoOnlyMemoryUsage() local
458 assertTrue("H263 video recording frame rate", frameRate != -1); in testH263RecordVideoOnlyMemoryUsage()
460 assertTrue(stressVideoRecord(frameRate, mVideoWidth, mVideoHeight, in testH263RecordVideoOnlyMemoryUsage()
477 int frameRate = MediaProfileReader.getMaxFrameRateForCodec in testMpeg4RecordVideoOnlyMemoryUsage() local
479 assertTrue("MPEG4 video recording frame rate", frameRate != -1); in testMpeg4RecordVideoOnlyMemoryUsage()
481 assertTrue(stressVideoRecord(frameRate, mVideoWidth, mVideoHeight, in testMpeg4RecordVideoOnlyMemoryUsage()
499 int frameRate = MediaProfileReader in testRecordVideoAudioMemoryUsage() local
501 assertTrue("H263 video recording frame rate", frameRate != -1); in testRecordVideoAudioMemoryUsage()
[all …]
/aosp12/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/
H A DMediaRecorderTest.java81 private void recordVideo(int frameRate, int width, int height, in recordVideo() argument
93 mRecorder.setVideoFrameRate(frameRate); in recordVideo()
228 int frameRate, int captureRate, int width, int height, in recordVideoFromSurface() argument
242 recorder.setVideoFrameRate(frameRate); in recordVideoFromSurface()
374 private boolean invalidRecordSetting(int frameRate, int width, int height, in invalidRecordSetting() argument
385 mRecorder.setVideoFrameRate(frameRate); in invalidRecordSetting()
484 int frameRate = MediaProfileReader.getMaxFrameRateForCodec(codec); in testPortraitH263() local
485 recordVideo(frameRate, 352, 288, codec, in testPortraitH263()
560 int frameRate = MediaProfileReader.getMaxFrameRateForCodec(codec); in testSurfaceRecording() local
587 int frameRate = MediaProfileReader.getMaxFrameRateForCodec(codec); in testPersistentSurfaceRecording() local
[all …]
/aosp12/frameworks/av/media/libstagefright/include/media/stagefright/
H A DCameraSource.h79 int32_t frameRate,
183 Size videoSize, int32_t frameRate,
248 Size videoSize, int32_t frameRate);
253 Size videoSize, int32_t frameRate);
269 int32_t frameRate);
275 int32_t frameRate);
/aosp12/frameworks/native/services/surfaceflinger/Scheduler/
H A DScheduler.cpp224 const auto frameRate = getFrameRateOverride(uid); in isVsyncValid() local
225 if (!frameRate.has_value()) { in isVsyncValid()
229 return mVsyncSchedule.tracker->isVSyncInPhase(expectedVsyncTimestamp, *frameRate); in isVsyncValid()
247 const auto frameRate = getFrameRateOverride(uid); in makeGetVsyncPeriodFunction() local
248 if (!frameRate.has_value()) { in makeGetVsyncPeriodFunction()
256 *frameRate); in makeGetVsyncPeriodFunction()
345 for (const auto& [uid, frameRate] : mFrameRateOverridesFromBackdoor) { in onFrameRateOverridesChanged()
346 overrides.emplace_back(FrameRateOverride{uid, frameRate.getValue()}); in onFrameRateOverridesChanged()
348 for (const auto& [uid, frameRate] : mFrameRateOverridesByContent) { in onFrameRateOverridesChanged()
754 for (const auto& [uid, frameRate] : mFrameRateOverridesFromBackdoor) { in dump()
[all …]
H A DLayerHistory.cpp189 const auto frameRate = info->getSetFrameRateVote(); in partitionLayers() local
191 switch (frameRate.type) { in partitionLayers()
203 if (frameRate.rate.isValid() || voteType == LayerVoteType::NoVote) { in partitionLayers()
205 info->setLayerVote({type, frameRate.rate, frameRate.seamlessness}); in partitionLayers()
/aosp12/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DCameraSettings.java209 public void setPreviewFrameRate(int frameRate) { in setPreviewFrameRate() argument
210 if (frameRate > 0) { in setPreviewFrameRate()
211 mPreviewFrameRate = frameRate; in setPreviewFrameRate()
212 mPreviewFpsRangeMax = frameRate; in setPreviewFrameRate()
213 mPreviewFpsRangeMin = frameRate; in setPreviewFrameRate()
/aosp12/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
H A DMediaRecorderStressTestRunner.java67 String frameRate = (String) icicle.get("frame_rate"); in onCreate() local
83 if (frameRate != null) { in onCreate()
84 mFrameRate = Integer.parseInt(frameRate); in onCreate()
/aosp12/frameworks/av/media/libaaudio/examples/utils/
H A DSineGenerator.h28 void setup(double frequency, double frameRate) { in setup() argument
29 mFrameRate = frameRate; in setup()
30 mPhaseIncrement = frequency * M_PI * 2 / frameRate; in setup()
/aosp12/frameworks/native/services/surfaceflinger/
H A DBufferLayer.cpp346 TimeStats::SetFrameRateVote frameRateToSetFrameRateVotePayload(Layer::FrameRate frameRate) { in frameRateToSetFrameRateVotePayload() argument
349 const auto frameRateCompatibility = [frameRate] { in frameRateToSetFrameRateVotePayload()
350 switch (frameRate.type) { in frameRateToSetFrameRateVotePayload()
360 const auto seamlessness = [frameRate] { in frameRateToSetFrameRateVotePayload()
361 switch (frameRate.seamlessness) { in frameRateToSetFrameRateVotePayload()
371 return TimeStats::SetFrameRateVote{.frameRate = frameRate.rate.getValue(), in frameRateToSetFrameRateVotePayload()
432 mDrawingState.frameRate), in onPostComposition()
446 mDrawingState.frameRate), in onPostComposition()
H A DLayer.cpp1128 const auto frameRate = [&] { in propagateFrameRateForLayerTree() local
1129 if (mDrawingState.frameRate.rate.isValid() || in propagateFrameRateForLayerTree()
1131 return mDrawingState.frameRate; in propagateFrameRateForLayerTree()
1148 if (!frameRate.rate.isValid() && frameRate.type != FrameRateCompatibility::NoVote && in propagateFrameRateForLayerTree()
1158 frameRate.rate.isValid() && frameRate.type == FrameRateCompatibility::Default; in propagateFrameRateForLayerTree()
1161 frameRate.rate.isValid() && frameRate.type == FrameRateCompatibility::Exact; in propagateFrameRateForLayerTree()
1184 bool Layer::setFrameRate(FrameRate frameRate) { in setFrameRate() argument
1188 if (mDrawingState.frameRate == frameRate) { in setFrameRate()
1193 mDrawingState.frameRate = frameRate; in setFrameRate()
1310 mDrawingState.frameRateForLayerTree = frameRate; in setFrameRateForLayerTree()
[all …]
/aosp12/frameworks/base/apex/media/framework/java/android/media/
H A DMediaTranscodingManager.java972 float frameRate = 30.0f; // default to 30fps. in resolveVideoFormat() local
974 frameRate = mSrcVideoFormatHint.getFloat(MediaFormat.KEY_FRAME_RATE); in resolveVideoFormat()
975 if (frameRate <= 0) { in resolveVideoFormat()
981 int bitrate = getAVCBitrate(width, height, frameRate); in resolveVideoFormat()
993 private static int getDefaultBitrate(int width, int height, float frameRate) { in getDefaultBitrate() argument
994 return (int) (width * height * frameRate * BPP); in getDefaultBitrate()
1002 private static int getAVCBitrate(int width, int height, float frameRate) { in getAVCBitrate() argument
1027 && (int) frameRate == profile.videoFrameRate in getAVCBitrate()
1040 + frameRate); in getAVCBitrate()
1041 bitrate = getDefaultBitrate(width, height, frameRate); in getAVCBitrate()
[all …]
/aosp12/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
H A DMediaRecorderStressTest.java176 int frameRate; in recordVideoAndPlayback() local
187 frameRate = camcorderProfile.videoFrameRate; in recordVideoAndPlayback()
194 frameRate = MediaRecorderStressTestRunner.mFrameRate; in recordVideoAndPlayback()
223 Log.v(TAG, "frame rate : " + frameRate); in recordVideoAndPlayback()
234 mRecorder.setVideoFrameRate(frameRate); in recordVideoAndPlayback()
/aosp12/frameworks/native/libs/nativewindow/include/android/
H A Dnative_window.h260 int32_t ANativeWindow_setFrameRate(ANativeWindow* window, float frameRate, int8_t compatibility)
331 int32_t ANativeWindow_setFrameRateWithChangeStrategy(ANativeWindow* window, float frameRate,
/aosp12/frameworks/av/services/mediametrics/
H A Dstatsd_codec.cpp285 double frameRate = -1.0; in statsd_codec() local
286 if (item->getDouble("android.media.mediacodec.frame-rate", &frameRate)) { in statsd_codec()
287 metrics_proto.set_frame_rate(frameRate); in statsd_codec()
289 AStatsEvent_writeFloat(event, (float) frameRate); in statsd_codec()
455 << " frame_rate:" << frameRate in statsd_codec()
/aosp12/frameworks/native/libs/nativewindow/
H A DANativeWindow.cpp161 int32_t ANativeWindow_setFrameRate(ANativeWindow* window, float frameRate, int8_t compatibility) { in ANativeWindow_setFrameRate() argument
162 return ANativeWindow_setFrameRateWithChangeStrategy(window, frameRate, compatibility, in ANativeWindow_setFrameRate()
173 int32_t ANativeWindow_setFrameRateWithChangeStrategy(ANativeWindow* window, float frameRate, in ANativeWindow_setFrameRateWithChangeStrategy() argument
178 return native_window_set_frame_rate(window, frameRate, compatibility, changeFrameRateStrategy); in ANativeWindow_setFrameRateWithChangeStrategy()
/aosp12/frameworks/av/media/libstagefright/tests/HEVC/
H A DHEVCUtilsUnitTest.cpp178 int16_t frameRate = hvcc[kHvccBoxMinSize - 1] | (hvcc[kHvccBoxMinSize] << 8); in TEST_P() local
179 if (frameRate != mFrameRate) in TEST_P()
180 cout << "[ WARN ] Expected frame rate: " << mFrameRate << " Found: " << frameRate in TEST_P()
/aosp12/frameworks/native/libs/gui/
H A DLayerState.cpp64 frameRate(0.0f), in layer_state_t()
151 SAFE_PARCEL(output.writeFloat, frameRate); in write()
272 SAFE_PARCEL(input.readFloat, &frameRate); in read()
534 frameRate = other.frameRate; in merge()
647 bool ValidateFrameRate(float frameRate, int8_t compatibility, int8_t changeFrameRateStrategy, in ValidateFrameRate() argument
650 int floatClassification = std::fpclassify(frameRate); in ValidateFrameRate()
651 if (frameRate < 0 || floatClassification == FP_INFINITE || floatClassification == FP_NAN) { in ValidateFrameRate()
652 ALOGE("%s failed - invalid frame rate %f", functionName, frameRate); in ValidateFrameRate()
/aosp12/frameworks/base/core/java/android/view/
H A DSurface.java101 long nativeObject, float frameRate, int compatibility, int changeFrameRateStrategy); in nativeSetFrameRate() argument
974 public void setFrameRate(@FloatRange(from = 0.0) float frameRate, in setFrameRate()
979 int error = nativeSetFrameRate(mNativeObject, frameRate, compatibility, in setFrameRate()
996 @FloatRange(from = 0.0) float frameRate, @FrameRateCompatibility int compatibility) { in setFrameRate()
997 setFrameRate(frameRate, compatibility, CHANGE_FRAME_RATE_ONLY_IF_SEAMLESS); in setFrameRate()
/aosp12/frameworks/av/media/tests/benchmark/tests/
H A DEncoderTest.cpp111 AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_FRAME_RATE, &encParams.frameRate); in TEST_P()
113 if (encParams.bitrate <= 0 || encParams.frameRate <= 0) { in TEST_P()
114 encParams.frameRate = 25; in TEST_P()

1234