Home
last modified time | relevance | path

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

12

/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/test/
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()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/
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 …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/
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
565 success = recordVideoFromSurface(frameRate, 0, 352, 288, codec, in testSurfaceRecording()
[all …]
/frameworks/av/media/libaaudio/examples/utils/
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()
/frameworks/av/media/libstagefright/include/media/stagefright/
DCameraSource.h91 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/
DCameraSource.cpp191 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 …]
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
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()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
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()
/frameworks/base/media/java/android/media/
DSyncParams.java261 public SyncParams setFrameRate(float frameRate) { in setFrameRate() argument
262 mFrameRate = frameRate; in setFrameRate()
DTtmlRenderer.java129 public static long parseTimeExpression(String time, int frameRate, int subframeRate, in parseTimeExpression() argument
142 durationSeconds += (frames != null) ? ((double)Long.parseLong(frames)) / frameRate : 0; in parseTimeExpression()
145 / subframeRate / frameRate in parseTimeExpression()
163 value = value / frameRate * 1000000; in parseTimeExpression()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
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()
/frameworks/av/media/libstagefright/tests/HEVC/
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()
/frameworks/base/media/jni/
Dandroid_media_SyncParams.cpp63 frameRate = env->GetFloatField(params, fields.frame_rate); in fillFromJobject()
80 env->SetFloatField(params, fields.frame_rate, (jfloat)frameRate); in asJobject()
Dandroid_media_MediaSync.cpp402 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()
Dandroid_media_SyncParams.h28 float frameRate; member
/frameworks/av/media/tests/benchmark/tests/
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()
/frameworks/av/media/libstagefright/foundation/tests/
DMetaDataBaseUnitTest.cpp123 float frameRate; in TEST_F() local
124 status = metaData->findFloat(kKeyCaptureFramerate, &frameRate); in TEST_F()
126 ASSERT_EQ(frameRate, kCaptureRate) << "Incorrect value of captureFrameRate returned"; in TEST_F()
/frameworks/av/media/extractors/tests/
DExtractorUnitTest.cpp82 int32_t frameRate; member
209 int32_t frameRate; member
295 configParam.frameRate = kInputData[inputIdx].frameRate; in getFileProperties()
907 if (configParam.frameRate != kUndefined) { in TEST_P()
908 int32_t frameRate; in TEST_P() local
910 AMediaFormat_getInt32(trackFormat, AMEDIAFORMAT_KEY_FRAME_RATE, &frameRate)); in TEST_P()
911 ASSERT_EQ(configParam.frameRate, frameRate) << "frameRate not as expected"; in TEST_P()
/frameworks/av/media/codec2/components/vpx/
DC2SoftVpxEnc.cpp583 float frameRate = mFrameRate->value; in process() local
584 if (frameRate < 0.001) { in process()
585 frameRate = 30; in process()
587 frameDuration = (uint32_t)(1000000 / frameRate + 0.5); in process()
/frameworks/av/media/tests/benchmark/src/native/encoder/
DEncoder.h41 int32_t frameRate = -1; member
DEncoder.cpp94 presentationTimeUs = mNumInputFrame * (1000000 / mParams.frameRate); in onInputAvailable()
205 AMediaFormat_setInt32(mFormat, AMEDIAFORMAT_KEY_FRAME_RATE, mParams.frameRate); in encode()
/frameworks/av/media/libmedia/include/media/
DMediaProfiles.h204 VideoCodec(video_encoder codec, int bitRate, int frameWidth, int frameHeight, int frameRate) in VideoCodec()
209 mFrameRate(frameRate) {} in VideoCodec()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/
DEncoder.java116 public int encode(String codecName, MediaFormat encodeFormat, String mime, int frameRate, in encode() argument
121 mFrameRate = frameRate; in encode()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/cpp/
DNativeEncoder.cpp68 encParams.frameRate = ENCODE_DEFAULT_FRAME_RATE; in Java_com_android_media_benchmark_library_Native_Encode()
/frameworks/av/media/codec2/sfplugin/
DCCodecConfig.cpp1342 float frameRate; in getReflectedFormat() local
1343 if (params->findAsFloat(KEY_FRAME_RATE, &frameRate)) { in getReflectedFormat()
1345 (frameRate <= 0 || iFrameInterval < 0) in getReflectedFormat()
1347 : (int32_t)c2_min(iFrameInterval * frameRate + 0.5, in getReflectedFormat()
1355 float frameRate, captureRate; in getReflectedFormat() local
1356 if (params->findAsFloat(KEY_FRAME_RATE, &frameRate)) { in getReflectedFormat()
1359 captureRate = frameRate; in getReflectedFormat()
1361 if (captureRate > 0 && frameRate > 0) { in getReflectedFormat()
1362 params->setFloat(C2_PARAMKEY_INPUT_TIME_STRETCH, captureRate / frameRate); in getReflectedFormat()

12