Searched refs:rate (Results 1 - 25 of 40) sorted by last modified time

12

/frameworks/wilhelm/include/OMXAL/
H A DOpenMAXAL.h799 XApermille rate
815 XApermille rate,
/frameworks/wilhelm/include/SLES/
H A DOpenSLES.h1066 SLpermille rate
1082 SLpermille rate,
2451 /* RatePitchItf is an interface for controlling the rate a sound is played */
2452 /* back. A change in rate will cause a change in pitch. */
2464 SLpermille rate
2533 SLmilliHertz rate
/frameworks/wilhelm/src/android/
H A DAudioPlayer_to_android.cpp186 // minimum number of frames to cover output latency at the sample rate of the content
939 SL_LOGE("Cannot create audio player: unsupported sample rate %u milliHz",
1732 SLresult android_audioPlayer_setPlaybackRateAndConstraints(CAudioPlayer *ap, SLpermille rate, argument
1738 assert((AUDIOTRACK_MIN_PLAYBACKRATE_PERMILLE <= rate) &&
1739 (rate <= AUDIOTRACK_MAX_PLAYBACKRATE_PERMILLE));
1741 // get the content sample rate
1743 // apply the SL ES playback rate on the AudioTrack as a factor of its content sample rate
1745 ap->mAudioTrack->setSampleRate(contentRate * (rate/1000.0f));
1750 assert((MEDIAPLAYER_MIN_PLAYBACKRATE_PERMILLE <= rate)
[all...]
H A DAudioPlayer_to_android.h75 SLpermille rate, SLuint32 constraints);
/frameworks/wilhelm/src/itf/
H A DIPlaybackRate.c22 static SLresult IPlaybackRate_SetRate(SLPlaybackRateItf self, SLpermille rate) argument
28 if (!(thiz->mMinRate <= rate && rate <= thiz->mMaxRate)) {
36 result = android_audioPlayer_setPlaybackRateAndConstraints(ap, rate, thiz->mProperties);
44 thiz->mRate = rate;
62 SLpermille rate = thiz->mRate; local
64 *pRate = rate;
128 SLpermille rate, SLuint32 *pCapabilities)
138 if (!(thiz->mMinRate <= rate && rate <
127 IPlaybackRate_GetCapabilitiesOfRate(SLPlaybackRateItf self, SLpermille rate, SLuint32 *pCapabilities) argument
[all...]
H A DIRatePitch.c22 static SLresult IRatePitch_SetRate(SLRatePitchItf self, SLpermille rate) argument
27 if (!(thiz->mMinRate <= rate && rate <= thiz->mMaxRate)) {
31 thiz->mRate = rate;
49 SLpermille rate = thiz->mRate; local
51 *pRate = rate;
H A DIVisualization.c23 slVisualizationCallback callback, void *pContext, SLmilliHertz rate)
27 if (!(0 < rate && rate <= 20000)) {
34 thiz->mRate = rate;
22 IVisualization_RegisterVisualizationCallback(SLVisualizationItf self, slVisualizationCallback callback, void *pContext, SLmilliHertz rate) argument
/frameworks/wilhelm/tests/mimeUri/
H A DslesTestSlowDownUri.cpp71 SLpermille minRate, maxRate, stepSize, rate = 1000; local
75 SLresult res = (*pRateItf)->GetRate(pRateItf, &rate); CheckErr(res);
78 fprintf(stdout, "old rate = %d, minRate=%d, maxRate=%d\n", rate, minRate, maxRate);
79 rate /= 2;
80 if (rate < minRate) {
81 rate = minRate;
83 fprintf(stdout, "new rate = %d\n", rate);
84 res = (*pRateItf)->SetRate(pRateItf, rate); CheckEr
292 SLpermille rate = 1234; local
[all...]
/frameworks/ex/variablespeed/src/com/android/ex/variablespeed/
H A DSingleThreadedMediaPlayerProxy.java97 public void setVariableSpeed(float rate) { argument
98 ((VariableSpeed) mDelegate).setVariableSpeed(rate);
H A DVariableSpeed.java371 public void setVariableSpeed(float rate) { argument
379 VariableSpeedNative.setVariableSpeed(rate);
381 mCurrentPlaybackRate = rate;
/frameworks/ex/variablespeed/tests/src/com/android/ex/variablespeed/
H A DMediaPlayerProxyTestCase.java478 // sample rate and number of channels, which was causing an assertion failure when trying
484 // Just check that we can set the rate at any point during playback.
501 * If we have a variable speed media player proxy, set the variable speed rate.
505 private void setVariableSpeedRateIfSupported(float rate) { argument
507 ((SingleThreadedMediaPlayerProxy) mPlayer).setVariableSpeed(rate);
509 ((VariableSpeed) mPlayer).setVariableSpeed(rate);
/frameworks/ml/bordeaux/learning/multiclass_pa/native/
H A Dmulticlass_pa.cpp116 // Compute the learning rate according to PA-I.
121 float rate = loss / twice_norm_square; local
122 if (rate > aggressiveness_) {
123 rate = aggressiveness_;
125 // VLOG(1) << "loss = " << loss << " rate = " << rate;
129 parameters_[target][i] += rate * inputs[i];
131 parameters_[other_class][i] -= rate * inputs[i];
149 // Compute the learning rate according to PA-I.
154 float rate local
[all...]
/frameworks/base/services/java/com/android/server/power/
H A DDisplayPowerController.java128 // Light sensor event rate in milliseconds.
131 // A rate for generating synthetic light sensor events in the case where the light
137 // Brightness animation ramp rate in brightness units per second.
798 private void animateScreenBrightness(int target, int rate) { argument
799 if (mScreenBrightnessRampAnimator.animateTo(target, rate)) {
H A DRampAnimator.java25 * a given variable rate until it reaches a particular target value.
55 * @param rate The convergence rate, in units per second.
58 public boolean animateTo(int target, int rate) { argument
67 // Adjust the rate based on the closest target.
68 // If a faster rate is specified, then use the new rate so that we converge
70 // If a slower rate is specified, then use the new rate only if the current
73 // Otherwise, continue at the previous rate
[all...]
/frameworks/base/tests/RenderScriptTests/Fountain/src/com/example/android/rs/fountain/
H A DFountainRS.java60 int rate = (int)(pressure * pressure * 500.f);
61 if (rate > 500) {
62 rate = 500;
64 if (rate > 0) {
65 mScript.invoke_addParticles(rate, x, y, id, !holdingColor[id]);
/frameworks/base/tests/RenderScriptTests/FountainFbo/src/com/example/android/rs/fountainfbo/
H A DFountainFboRS.java86 int rate = (int)(pressure * pressure * 500.f);
87 if (rate > 500) {
88 rate = 500;
90 if (rate > 0) {
91 mScript.invoke_addParticles(rate, x, y, id, !holdingColor[id]);
/frameworks/base/tests/RenderScriptTests/Fountain_v11/src/com/android/fountain/
H A DFountainRS.java60 int rate = (int)(pressure * pressure * 500.f);
61 if (rate > 500) {
62 rate = 500;
64 if (rate > 0) {
65 mScript.invoke_addParticles(rate, x, y, id, !holdingColor[id]);
/frameworks/base/media/java/android/media/
H A DMediaRecorder.java348 * Set video frame capture rate. This can be used to set a different video frame capture
349 * rate than the recorded video's playback rate. This method also sets the recording mode
360 * given rate due to camera/encoder limitations. However it tries to be as close as
461 * Sets the frame rate of the video to be captured. Must be called
465 * @param rate the number of frames per second of video to capture
469 * NOTE: On some devices that have auto-frame rate, this sets the
470 * maximum frame rate, not a constant frame rate. Actual frame rate
473 setVideoFrameRate(int rate) argument
[all...]
H A DSoundPool.java59 * <p>The playback rate can also be changed. A playback rate of 1.0 causes
61 * to the hardware output frequency). A playback rate of 2.0 causes the
62 * sound to play at twice its original frequency, and a playback rate of
64 * rate range is 0.5 to 2.0.</p>
89 * adjusting the playback rate in real-time for doppler or synthesis
133 * @param srcQuality the sample-rate converter quality. Currently has no
269 * The playback rate allows the application to vary the playback
270 * rate (pitch) of the sound. A value of 1.0 means play back at
279 * @param rate playbac
282 play(int soundID, float leftVolume, float rightVolume, int priority, int loop, float rate) argument
393 setRate(int streamID, float rate) argument
[all...]
/frameworks/base/media/java/android/media/audiofx/
H A DVisualizer.java51 * The rate at which the listener capture method is called as well as the type of data returned is
275 * Returns the maximum capture rate for the callback capture method. This is the maximum value
276 * for the rate parameter of the
278 * @return the maximum capture rate expressed in milliHertz
353 * Returns the sampling rate of the captured audio.
354 * @return the sampling rate in milliHertz.
390 * the sampling rate returned by {@link #getSamplingRate()}. The capture returns the real and
457 * @param samplingRate sampling rate of the audio visualized.
468 * @param samplingRate sampling rate of the audio visualized.
474 * Registers an OnDataCaptureListener interface and specifies the rate a
486 setDataCaptureListener(OnDataCaptureListener listener, int rate, boolean waveform, boolean fft) argument
649 native_setPeriodicCapture(int rate, boolean waveForm, boolean fft) argument
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_MediaRecorder.cpp277 android_media_MediaRecorder_setVideoFrameRate(JNIEnv *env, jobject thiz, jint rate) argument
279 ALOGV("setVideoFrameRate(%d)", rate);
280 if (rate <= 0) {
281 jniThrowException(env, "java/lang/IllegalArgumentException", "invalid frame rate");
285 process_media_recorder_call(env, mr->setVideoFrameRate(rate), "java/lang/RuntimeException", "setVideoFrameRate failed.");
/frameworks/base/media/jni/audioeffect/
H A Dandroid_media_Visualizer.cpp562 android_media_setPeriodicCapture(JNIEnv *env, jobject thiz, jint rate, jboolean jWaveform, jboolean jFft) argument
574 ALOGV("setPeriodicCapture: rate %d, jWaveform %d jFft %d",
575 rate,
588 rate));
/frameworks/base/media/jni/soundpool/
H A Dandroid_media_SoundPool.cpp78 jfloat rate)
83 return ap->play(sampleID, leftVolume, rightVolume, priority, loop, rate);
163 float rate)
168 ap->setRate(channelID, rate);
76 android_media_SoundPool_play(JNIEnv *env, jobject thiz, jint sampleID, jfloat leftVolume, jfloat rightVolume, jint priority, jint loop, jfloat rate) argument
162 android_media_SoundPool_setRate(JNIEnv *env, jobject thiz, jint channelID, float rate) argument
/frameworks/av/media/libstagefright/codecs/vorbis/dec/
H A DSoftVorbis.cpp148 vorbisParams->nSampleRate = mVi->rate;
179 pcmParams->nSamplingRate = mVi->rate;
383 + (mNumFramesOutput * 1000000ll) / mVi->rate;
/frameworks/av/services/camera/tests/CameraServiceTest/
H A DCameraServiceTest.cpp773 const float rate = 0.9; // byte per pixel limit local
789 int(pixels * rate));

Completed in 244 milliseconds

12