/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/test/ |
D | m4v_h263_enc_test.cpp | 87 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()
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | LayerHistory.cpp | 115 const auto frameRate = layer->getFrameRateForLayerTree(); in summarize() local 116 if (frameRate.rate > 0.f) { in summarize() 118 switch (frameRate.type) { in summarize() 127 summary.push_back({layer->getName(), voteType, frameRate.rate, /* weight */ 1.0f, in summarize() 136 trace(weakLayer, round<int>(frameRate.rate)); in summarize()
|
D | LayerHistoryV2.cpp | 167 const auto frameRate = layer->getFrameRateForLayerTree(); in partitionLayers() local 169 switch (frameRate.type) { in partitionLayers() 179 if (frameRate.rate > 0 || voteType == LayerVoteType::NoVote) { in partitionLayers() 181 info->setLayerVote(type, frameRate.rate); in partitionLayers()
|
D | RefreshRateConfigs.cpp | 581 float RefreshRateConfigs::findClosestKnownFrameRate(float frameRate) const { in findClosestKnownFrameRate() 582 if (frameRate <= *mKnownFrameRates.begin()) { in findClosestKnownFrameRate() 586 if (frameRate >= *std::prev(mKnownFrameRates.end())) { in findClosestKnownFrameRate() 590 auto lowerBound = std::lower_bound(mKnownFrameRates.begin(), mKnownFrameRates.end(), frameRate); in findClosestKnownFrameRate() 592 const auto distance1 = std::abs(frameRate - *lowerBound); in findClosestKnownFrameRate() 593 const auto distance2 = std::abs(frameRate - *std::prev(lowerBound)); in findClosestKnownFrameRate()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/ |
D | MediaPlayerPerformance.java | 222 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 …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/ |
D | MediaRecorderTest.java | 81 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 565 success = recordVideoFromSurface(frameRate, 0, 352, 288, codec, in testSurfaceRecording() [all …]
|
/frameworks/av/media/libaaudio/examples/utils/ |
D | SineGenerator.h | 28 void setup(double frequency, double frameRate) { in setup() argument 29 mFrameRate = frameRate; in setup() 30 mPhaseIncrement = frequency * M_PI * 2 / frameRate; in setup()
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | CameraSource.h | 91 int32_t frameRate, 215 Size videoSize, int32_t frameRate, 300 Size videoSize, int32_t frameRate, bool storeMetaDataInVideoBuffers); 305 Size videoSize, int32_t frameRate, bool storeMetaDataInVideoBuffers); 321 int32_t frameRate); 327 int32_t frameRate);
|
/frameworks/av/media/libstagefright/ |
D | CameraSource.cpp | 191 int32_t frameRate, in CreateFromCamera() argument 196 clientName, clientUid, clientPid, videoSize, frameRate, surface, in CreateFromCamera() 209 int32_t frameRate, in CameraSource() argument 234 videoSize, frameRate, in CameraSource() 359 int32_t frameRate) { in configureCamera() argument 387 if (frameRate != -1) { in configureCamera() 388 CHECK(frameRate > 0 && frameRate <= 120); in configureCamera() 394 snprintf(buf, 4, "%d", frameRate); in configureCamera() 397 frameRate, supportedFrameRates); in configureCamera() 402 params->setPreviewFrameRate(frameRate); in configureCamera() [all …]
|
D | FrameDecoder.cpp | 209 int32_t frameRate; in getMetadataOnly() local 211 if (trackMeta->findInt32(kKeyFrameRate, &frameRate) && frameRate > 0) { in getMetadataOnly() 212 meta->mDurationUs = 1000000LL / frameRate; in getMetadataOnly() 525 int32_t frameRate; in onGetFormatAndSeekOptions() local 526 if (trackMeta()->findInt32(kKeyFrameRate, &frameRate) && frameRate > 0) { in onGetFormatAndSeekOptions() 527 mDefaultSampleDurationUs = 1000000LL / frameRate; in onGetFormatAndSeekOptions()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
D | MediaRecorderStressTestRunner.java | 67 String frameRate = (String) icicle.get("frame_rate"); in onCreate() local 83 if (frameRate != null) { in onCreate() 84 mFrameRate = Integer.parseInt(frameRate); in onCreate()
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
D | CameraSettings.java | 209 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()
|
/frameworks/native/libs/gui/ |
D | LayerState.cpp | 117 output.writeFloat(frameRate); in write() 200 frameRate = input.readFloat(); in read() 435 frameRate = other.frameRate; in merge() 467 bool ValidateFrameRate(float frameRate, int8_t compatibility, const char* inFunctionName) { in ValidateFrameRate() argument 469 int floatClassification = std::fpclassify(frameRate); in ValidateFrameRate() 470 if (frameRate < 0 || floatClassification == FP_INFINITE || floatClassification == FP_NAN) { in ValidateFrameRate() 471 ALOGE("%s failed - invalid frame rate %f", functionName, frameRate); in ValidateFrameRate()
|
/frameworks/base/media/java/android/media/ |
D | SyncParams.java | 261 public SyncParams setFrameRate(float frameRate) { in setFrameRate() argument 262 mFrameRate = frameRate; in setFrameRate()
|
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/androidTest/java/com/android/media/benchmark/tests/ |
D | EncoderTest.java | 113 int frameRate = 0; in testEncoder() local 194 frameRate = format.getInteger(MediaFormat.KEY_FRAME_RATE); in testEncoder() 195 } else if (frameRate <= 0) { in testEncoder() 196 frameRate = ENCODE_DEFAULT_FRAME_RATE; in testEncoder() 230 encodeFormat.setInteger(MediaFormat.KEY_FRAME_RATE, frameRate); in testEncoder() 244 status = encoder.encode(codecName, encodeFormat, mime, frameRate, sampleRate, in testEncoder()
|
/frameworks/native/libs/gui/include/gui/ |
D | LayerState.h | 140 frameRate(0.0f), in layer_state_t() 229 float frameRate; member 308 bool ValidateFrameRate(float frameRate, int8_t compatibility, const char* functionName);
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/ |
D | MediaRecorderStressTest.java | 176 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()
|
/frameworks/av/media/tests/benchmark/tests/ |
D | EncoderTest.cpp | 106 AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_FRAME_RATE, &encParams.frameRate); in TEST_P() 108 if (encParams.bitrate <= 0 || encParams.frameRate <= 0) { in TEST_P() 109 encParams.frameRate = 25; in TEST_P()
|
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/cpp/ |
D | NativeEncoder.cpp | 153 AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_FRAME_RATE, &encParams.frameRate); in Java_com_android_media_benchmark_library_Native_Encode() 155 if (encParams.bitrate <= 0 || encParams.frameRate <= 0) { in Java_com_android_media_benchmark_library_Native_Encode() 156 encParams.frameRate = ENCODE_DEFAULT_FRAME_RATE; in Java_com_android_media_benchmark_library_Native_Encode()
|
/frameworks/base/media/jni/ |
D | android_media_SyncParams.cpp | 63 frameRate = env->GetFloatField(params, fields.frame_rate); in fillFromJobject() 80 env->SetFloatField(params, fields.frame_rate, (jfloat)frameRate); in asJobject()
|
D | android_media_MediaSync.cpp | 402 scs.frameRateSet, scs.frameRate); in android_media_MediaSync_setSyncParams() 425 err = sync->setVideoFrameRateHint(scs.frameRate); in android_media_MediaSync_setSyncParams() 449 scs.frameRate = sync->getVideoFrameRate(); in android_media_MediaSync_getSyncParams() 452 scs.sync.mSource, scs.sync.mAudioAdjustMode, scs.sync.mTolerance, scs.frameRate); in android_media_MediaSync_getSyncParams() 466 scs.frameRateSet = scs.frameRate >= 0.f; in android_media_MediaSync_getSyncParams()
|
D | android_media_SyncParams.h | 28 float frameRate; member
|
/frameworks/native/services/surfaceflinger/ |
D | Layer.cpp | 1379 const auto layerVotedWithDefaultCompatibility = layer->mCurrentState.frameRate.rate > 0 && in updateTreeHasFrameRateVote() 1380 layer->mCurrentState.frameRate.type == FrameRateCompatibility::Default; in updateTreeHasFrameRateVote() 1382 layer->mCurrentState.frameRate.type == FrameRateCompatibility::NoVote; in updateTreeHasFrameRateVote() 1409 bool Layer::setFrameRate(FrameRate frameRate) { in setFrameRate() argument 1413 if (mCurrentState.frameRate == frameRate) { in setFrameRate() 1422 mCurrentState.frameRate = frameRate; in setFrameRate() 1432 const auto frameRate = getDrawingState().frameRate; in getFrameRateForLayerTree() local 1433 if (frameRate.rate > 0 || frameRate.type == FrameRateCompatibility::NoVote) { in getFrameRateForLayerTree() 1434 return frameRate; in getFrameRateForLayerTree() 1443 return frameRate; in getFrameRateForLayerTree() [all …]
|
/frameworks/native/libs/nativewindow/include/android/ |
D | native_window.h | 290 int32_t ANativeWindow_setFrameRate(ANativeWindow* window, float frameRate, int8_t compatibility)
|
/frameworks/av/media/codec2/components/vpx/ |
D | C2SoftVpxEnc.cpp | 588 float frameRate = mFrameRate->value; in process() local 589 if (frameRate < 0.001) { in process() 590 frameRate = 30; in process() 592 frameDuration = (uint32_t)(1000000 / frameRate + 0.5); in process()
|