Home
last modified time | relevance | path

Searched refs:frameRate (Results 1 – 25 of 31) 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()
216 vin.timestamp = (numFramesEncoded * 1000) / frameRate; // in ms. in main()
/frameworks/av/media/libstagefright/codecs/avc/enc/test/
Dh264_enc_test.cpp109 int32_t frameRate; in main() local
110 frameRate = atoi(argv[5]); in main()
111 if (frameRate > kMaxFrameRate || frameRate <= 0) { in main()
112 fprintf(stderr, "Unsupported frame rate %d\n", frameRate); in main()
197 encParams.frame_rate = 1000 * frameRate; // In frames/ms. in main()
204 encParams.idr_period = (IDRFrameRefreshIntervalInSec * frameRate); in main()
286 vin.coding_timestamp = (numInputFrames * 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/libstagefright/
DCameraSource.cpp168 int32_t frameRate, in CreateFromCamera() argument
173 clientName, clientUid, clientPid, videoSize, frameRate, surface, in CreateFromCamera()
186 int32_t frameRate, in CameraSource() argument
209 videoSize, frameRate, in CameraSource()
334 int32_t frameRate) { in configureCamera() argument
362 if (frameRate != -1) { in configureCamera()
363 CHECK(frameRate > 0 && frameRate <= 120); in configureCamera()
369 snprintf(buf, 4, "%d", frameRate); in configureCamera()
372 frameRate, supportedFrameRates); in configureCamera()
377 params->setPreviewFrameRate(frameRate); in configureCamera()
[all …]
DACodec.cpp3628 float frameRate; in setupVideoEncoder() local
3629 if (!msg->findFloat("frame-rate", &frameRate)) { in setupVideoEncoder()
3634 frameRate = (float)tmp; in setupVideoEncoder()
3635 mTimePerFrameUs = (int64_t) (1000000.0f / frameRate); in setupVideoEncoder()
3638 video_def->xFramerate = (OMX_U32)(frameRate * 65536.0f); in setupVideoEncoder()
3800 static OMX_U32 setPFramesSpacing(int32_t iFramesInterval, int32_t frameRate) { in setPFramesSpacing() argument
3806 OMX_U32 ret = frameRate * iFramesInterval; in setPFramesSpacing()
3828 float frameRate; in setupMPEG4EncoderParameters() local
3829 if (!msg->findFloat("frame-rate", &frameRate)) { in setupMPEG4EncoderParameters()
3834 frameRate = (float)tmp; in setupMPEG4EncoderParameters()
[all …]
/frameworks/av/include/media/stagefright/
DCameraSource.h90 int32_t frameRate,
209 Size videoSize, int32_t frameRate,
280 Size videoSize, int32_t frameRate, bool storeMetaDataInVideoBuffers);
285 Size videoSize, int32_t frameRate, bool storeMetaDataInVideoBuffers);
301 int32_t frameRate);
307 int32_t frameRate);
DACodec.h372 OMX_VIDEO_CODINGTYPE compressionFormat, float frameRate = -1.0);
/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.java267 public SyncParams setFrameRate(float frameRate) { in setFrameRate() argument
268 mFrameRate = frameRate; in setFrameRate()
DTtmlRenderer.java127 public static long parseTimeExpression(String time, int frameRate, int subframeRate, in parseTimeExpression() argument
140 durationSeconds += (frames != null) ? ((double)Long.parseLong(frames)) / frameRate : 0; in parseTimeExpression()
143 / subframeRate / frameRate in parseTimeExpression()
161 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_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
Dandroid_media_MediaPlayer.cpp516 scp.frameRateSet, scp.frameRate); in android_media_MediaPlayer_setSyncParams()
536 err = mp->setSyncSettings(avsync, scp.frameRateSet ? scp.frameRate : -1.f); in android_media_MediaPlayer_setSyncParams()
554 scp.frameRate = -1.f; in android_media_MediaPlayer_getSyncParams()
556 env, thiz, mp->getSyncSettings(&scp.sync, &scp.frameRate), in android_media_MediaPlayer_getSyncParams()
560 scp.sync.mSource, scp.sync.mAudioAdjustMode, scp.sync.mTolerance, scp.frameRate); in android_media_MediaPlayer_getSyncParams()
574 scp.frameRateSet = scp.frameRate >= 0.f; in android_media_MediaPlayer_getSyncParams()
/frameworks/av/include/media/
DMediaProfiles.h184 VideoCodec(video_encoder codec, int bitRate, int frameWidth, int frameHeight, int frameRate) in VideoCodec()
189 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
Dpost_filter.cpp62 …if (PVGetDecBitrate(video->videoDecControls) > (100*video->frameRate*(size >> 12))) // MC_sofDebl… in PostFilter()
Dpvdec_api.cpp834 sum = (sum * video->frameRate) / (10 * BITRATE_AVERAGE_WINDOW); in PVGetDecBitrate()
852 return video->frameRate; in PVGetDecFramerate()
1441 video->frameRate = (int)(FRAMERATE_SCALE) / video->duration; in PVDecodeVopBody()
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/include/
Dmp4enc_api.h403 …OSCL_IMPORT_REF Bool PVUpdateEncFrameRate(VideoEncControls *encCtrl, float *frameRate); /* for …
/frameworks/av/media/libmediaplayerservice/
DStagefrightRecorder.cpp1469 int32_t frameRate = 0; in setupCameraSource() local
1471 kKeyFrameRate, &frameRate)); in setupCameraSource()
1473 "rate (%d fps)", frameRate); in setupCameraSource()
1474 mFrameRate = frameRate; in setupCameraSource()
/frameworks/wilhelm/tests/native-media/jni/
Dnative-media-jni.c252 videoInfo.width, videoInfo.height, videoInfo.codecId, videoInfo.frameRate, in StreamChangeCallback()
/frameworks/base/docs/html/ndk/guides/audio/
Doutput-latency.jd102 String frameRate = am.getProperty(AudioManager.PROPERTY_OUTPUT_SAMPLE_RATE);
103 int frameRateInt = Integer.parseInt(frameRate);

12