Home
last modified time | relevance | path

Searched refs:frameRate (Results 1 – 25 of 37) 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/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/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/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 …]
DACodec.cpp4096 float iFramesInterval /* seconds */, int32_t frameRate, uint32_t BFramesSpacing = 0) { in setPFramesSpacing() argument
4117 uint32_t keyFrameInterval = uint32_t(frameRate * iFramesInterval); in setPFramesSpacing()
4132 float frameRate; in setupMPEG4EncoderParameters() local
4133 if (!msg->findFloat("frame-rate", &frameRate)) { in setupMPEG4EncoderParameters()
4138 frameRate = (float)tmp; in setupMPEG4EncoderParameters()
4160 mpeg4type.nPFrames = setPFramesSpacing(iFrameInterval, frameRate, mpeg4type.nBFrames); in setupMPEG4EncoderParameters()
4214 float frameRate; in setupH263EncoderParameters() local
4215 if (!msg->findFloat("frame-rate", &frameRate)) { in setupH263EncoderParameters()
4220 frameRate = (float)tmp; in setupH263EncoderParameters()
4238 h263type.nPFrames = setPFramesSpacing(iFrameInterval, frameRate, h263type.nBFrames); in setupH263EncoderParameters()
[all …]
/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/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/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/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_SyncParams.h28 float frameRate; member
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_MediaPlayer2.cpp691 scp.frameRateSet, scp.frameRate); in android_media_MediaPlayer2_setSyncParams()
711 err = mp->setSyncSettings(avsync, scp.frameRateSet ? scp.frameRate : -1.f); in android_media_MediaPlayer2_setSyncParams()
729 scp.frameRate = -1.f; in android_media_MediaPlayer2_getSyncParams()
731 env, thiz, mp->getSyncSettings(&scp.sync, &scp.frameRate), in android_media_MediaPlayer2_getSyncParams()
738 scp.sync.mSource, scp.sync.mAudioAdjustMode, scp.sync.mTolerance, scp.frameRate); in android_media_MediaPlayer2_getSyncParams()
752 scp.frameRateSet = scp.frameRate >= 0.f; in android_media_MediaPlayer2_getSyncParams()
Dandroid_media_MediaPlayer.cpp544 scp.frameRateSet, scp.frameRate); in android_media_MediaPlayer_setSyncParams()
564 err = mp->setSyncSettings(avsync, scp.frameRateSet ? scp.frameRate : -1.f); in android_media_MediaPlayer_setSyncParams()
582 scp.frameRate = -1.f; in android_media_MediaPlayer_getSyncParams()
584 env, thiz, mp->getSyncSettings(&scp.sync, &scp.frameRate), in android_media_MediaPlayer_getSyncParams()
591 scp.sync.mSource, scp.sync.mAudioAdjustMode, scp.sync.mTolerance, scp.frameRate); in android_media_MediaPlayer_getSyncParams()
605 scp.frameRateSet = scp.frameRate >= 0.f; in android_media_MediaPlayer_getSyncParams()
/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/libmedia/include/media/
DMediaProfiles.h221 VideoCodec(video_encoder codec, int bitRate, int frameWidth, int frameHeight, int frameRate) in VideoCodec()
226 mFrameRate(frameRate) {} in VideoCodec()
/frameworks/av/include/media/
DMediaProfiles.h221 VideoCodec(video_encoder codec, int bitRate, int frameWidth, int frameHeight, int frameRate) in VideoCodec()
226 mFrameRate(frameRate) {} in VideoCodec()
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
Dmp4lib_int.h250 int frameRate; /* Output frame Rate (over 10 seconds) */ member
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/include/
Dmp4enc_api.h404 …OSCL_IMPORT_REF Bool PVUpdateEncFrameRate(VideoEncControls *encCtrl, float *frameRate); /* for …
/frameworks/av/media/codec2/sfplugin/
DCCodecConfig.cpp1325 float frameRate; in getReflectedFormat() local
1326 if (params->findAsFloat(KEY_FRAME_RATE, &frameRate)) { in getReflectedFormat()
1328 (frameRate <= 0 || iFrameInterval < 0) in getReflectedFormat()
1330 : (int32_t)c2_min(iFrameInterval * frameRate + 0.5, in getReflectedFormat()
1338 float frameRate, captureRate; in getReflectedFormat() local
1339 if (params->findAsFloat(KEY_FRAME_RATE, &frameRate)) { in getReflectedFormat()
1342 captureRate = frameRate; in getReflectedFormat()
1344 if (captureRate > 0 && frameRate > 0) { in getReflectedFormat()
1345 params->setFloat(C2_PARAMKEY_INPUT_TIME_STRETCH, captureRate / frameRate); in getReflectedFormat()
/frameworks/av/media/libmediaplayer2/nuplayer2/
DNuPlayer2Driver.cpp480 float frameRate = 0; in updateMetrics() local
481 if (stats->findFloat("frame-rate-output", &frameRate)) { in updateMetrics()
482 mediametrics_setInt64(mMetricsHandle, kPlayerFrameRate, frameRate); in updateMetrics()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerDriver.cpp581 float frameRate = 0; in updateMetrics() local
582 if (stats->findFloat("frame-rate-total", &frameRate)) { in updateMetrics()
583 mAnalyticsItem->setDouble(kPlayerFrameRate, (double) frameRate); in updateMetrics()

12