Searched defs:frameCount (Results 1 - 25 of 34) sorted by last modified time

12

/frameworks/ex/variablespeed/jni/
H A Dvariablespeed.cc394 size_t frameCount = 0; local
395 while (frameCount < targetFrames_) {
396 size_t framesLeft = targetFrames_ - frameCount;
401 floatBuffer_ + frameCount * channels, retrieveCount);
406 frameCount += count;
430 if (frameCount <= 0) {
454 for (size_t i = 0; i < frameCount * channels; ++i) {
458 frameCount * channels * kNumberOfBytesPerInt16;
/frameworks/native/opengl/tests/angeles/
H A Dapp-linux.cpp205 int frameCount = 0; local
219 frameCount++;
228 printf("totalTime=%f s, frameCount=%d, %.2f fps\n",
229 totalTime, frameCount, frameCount/totalTime);
/frameworks/base/graphics/java/android/graphics/
H A DInterpolator.java29 public Interpolator(int valueCount, int frameCount) { argument
31 mFrameCount = frameCount;
32 native_instance = nativeConstructor(valueCount, frameCount);
49 public void reset(int valueCount, int frameCount) { argument
51 mFrameCount = frameCount;
52 nativeReset(native_instance, valueCount, frameCount);
156 private static native int nativeConstructor(int valueCount, int frameCount); argument
158 private static native void nativeReset(int native_instance, int valueCount, int frameCount); argument
/frameworks/av/services/audioflinger/
H A DAudioFlinger.cpp447 int frameCount,
506 channelMask, frameCount, sharedBuffer, lSessionId, flags, tid, &lStatus);
580 size_t AudioFlinger::frameCount(audio_io_handle_t output) const function in class:android::AudioFlinger
585 ALOGW("frameCount() unknown thread %d", output);
590 return thread->frameCount();
1715 int frameCount,
1741 ((frameCount == 0) ||
1742 (frameCount >= (int) (mFrameCount * kFastTrackMultiplier)))
1761 // if frameCount not specified, then it defaults to fast mixer (HAL) frame count
1762 if (frameCount
441 createTrack( pid_t pid, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, IAudioFlinger::track_flags_t flags, const sp<IMemory>& sharedBuffer, audio_io_handle_t output, pid_t tid, int *sessionId, status_t *status) argument
1709 createTrack_l( const sp<AudioFlinger::Client>& client, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, const sp<IMemory>& sharedBuffer, int sessionId, IAudioFlinger::track_flags_t flags, pid_t tid, status_t *status) argument
3844 size_t frameCount = mFrameCount; local
4061 int frameCount = (3 * mNormalFrameCount * mSampleRate) / thread->sampleRate(); local
4140 TrackBase( ThreadBase *thread, const sp<Client>& client, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, const sp<IMemory>& sharedBuffer, int sessionId) argument
4314 Track( PlaybackThread *thread, const sp<Client>& client, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, const sp<IMemory>& sharedBuffer, int sessionId, IAudioFlinger::track_flags_t flags) argument
4854 create( PlaybackThread *thread, const sp<Client>& client, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, const sp<IMemory>& sharedBuffer, int sessionId) argument
4872 TimedTrack( PlaybackThread *thread, const sp<Client>& client, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, const sp<IMemory>& sharedBuffer, int sessionId) argument
4984 int64_t frameCount = mTimedBufferQueue[trimEnd].buffer()->size() local
5368 RecordTrack( RecordThread *thread, const sp<Client>& client, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, int sessionId) argument
5490 OutputTrack( PlaybackThread *playbackThread, DuplicatingThread *sourceThread, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount) argument
5878 openRecord( pid_t pid, audio_io_handle_t input, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, IAudioFlinger::track_flags_t flags, pid_t tid, int *sessionId, status_t *status) argument
6241 createRecordTrack_l( const sp<AudioFlinger::Client>& client, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, int sessionId, IAudioFlinger::track_flags_t flags, pid_t tid, status_t *status) argument
[all...]
H A DAudioFlinger.h95 int frameCount,
109 int frameCount,
118 virtual size_t frameCount(audio_io_handle_t output) const;
391 int frameCount,
560 // Called by AudioFlinger::frameCount(audio_io_handle_t output) and effects,
562 size_t frameCount() const { return mNormalFrameCount; } function in class:android::AudioFlinger::ThreadBase
783 int frameCount,
907 int frameCount,
950 int frameCount,
999 int frameCount);
[all...]
H A DAudioMixer.cpp63 mDownmixConfig.inputCfg.buffer.frameCount = pBuffer->frameCount;
65 mDownmixConfig.outputCfg.buffer.frameCount = pBuffer->frameCount;
99 AudioMixer::AudioMixer(size_t frameCount, uint32_t sampleRate, uint32_t maxNumTracks) argument
113 mState.frameCount = frameCount;
187 // t->frameCount
198 // t->buffer.frameCount
497 int32_t volInc = d / int32_t(mState.frameCount);
800 volumeRampStereo(track_t* t, int32_t* out, size_t frameCount, int32_t* temp, int32_t* aux) argument
842 volumeStereo(track_t* t, int32_t* out, size_t frameCount, int32_t* temp, int32_t* aux) argument
870 track__16BitsStereo(track_t* t, int32_t* out, size_t frameCount, int32_t* temp, int32_t* aux) argument
960 track__16BitsMono(track_t* t, int32_t* out, size_t frameCount, int32_t* temp, int32_t* aux) argument
[all...]
H A DAudioMixer.h39 AudioMixer(size_t frameCount, uint32_t sampleRate,
164 uint16_t frameCount; member in struct:android::AudioMixer::track_t
211 size_t frameCount; member in struct:android::AudioMixer::state_t
261 static void volumeRampStereo(track_t* t, int32_t* out, size_t frameCount, int32_t* temp, int32_t* aux);
262 static void volumeStereo(track_t* t, int32_t* out, size_t frameCount, int32_t* temp, int32_t* aux);
H A DAudioResamplerSinc.cpp293 while (mBuffer.frameCount == 0) {
294 mBuffer.frameCount = inFrameCount;
308 if (inputIndex >= mBuffer.frameCount) {
309 inputIndex -= mBuffer.frameCount;
317 const size_t frameCount = mBuffer.frameCount; local
336 if (inputIndex >= frameCount)
341 if (inputIndex >= frameCount)
346 if (inputIndex >= frameCount)
354 if (inputIndex >= frameCount) {
[all...]
/frameworks/av/services/camera/libcameraservice/
H A DCamera2Device.cpp675 camera_metadata_entry_t frameCount; local
678 &frameCount);
683 *frameCount.data.i32 = mFrameCount;
/frameworks/base/core/jni/android/graphics/
H A DInterpolator.cpp8 static SkInterpolator* Interpolator_constructor(JNIEnv* env, jobject clazz, int valueCount, int frameCount) argument
10 return new SkInterpolator(valueCount, frameCount);
18 static void Interpolator_reset(JNIEnv* env, jobject clazz, SkInterpolator* interp, int valueCount, int frameCount) argument
20 interp->reset(valueCount, frameCount);
/frameworks/base/core/jni/
H A Dandroid_media_AudioRecord.cpp194 ALOGE("Error creating AudioRecord: frameCount is 0.");
198 size_t frameCount = buffSizeInBytes / frameSize; local
244 frameCount,
395 ssize_t recorderBuffSize = lpRecorder->frameCount()*lpRecorder->frameSize();
514 int frameCount = 0; local
515 status_t result = AudioRecord::getMinFrameCount(&frameCount,
527 return frameCount * nbChannels * (audioFormat == javaAudioRecordFields.PCM16 ? 2 : 1);
H A Dandroid_media_AudioTrack.cpp274 int frameCount = buffSizeInBytes / (nbChannels * bytesPerSample); local
320 frameCount,
341 frameCount,
608 "Unable to retrieve AudioTrack pointer for frameCount()");
612 return lpTrack->frameCount();
789 int frameCount = 0; local
790 if (AudioTrack::getMinFrameCount(&frameCount, AUDIO_STREAM_DEFAULT,
794 return frameCount * nbChannels * (audioFormat == javaAudioTrackFields.PCM16 ? 2 : 1);
/frameworks/av/include/media/
H A DAudioBufferProvider.h30 Buffer() : raw(NULL), frameCount(0) { }
36 size_t frameCount; member in struct:android::AudioBufferProvider::Buffer
H A DAudioRecord.h66 size_t frameCount; member in class:android::AudioRecord::Buffer
67 size_t size; // total size in bytes == frameCount * frameSize
101 static status_t getMinFrameCount(int* frameCount,
123 * frameCount: Total size of track PCM buffer in frames. This defines the
137 int frameCount = 0,
162 int frameCount = 0,
187 uint32_t frameCount() const;
281 /* obtains a buffer of "frameCount" frames. The buffer must be
347 int frameCount,
H A DAudioSystem.h91 static status_t getOutputFrameCount(int* frameCount, audio_stream_type_t stream = AUDIO_STREAM_DEFAULT);
100 int* frameCount);
111 static status_t getOutputFrameCount(int* frameCount, int stream = AUDIO_STREAM_DEFAULT);
155 : samplingRate(0), format(AUDIO_FORMAT_DEFAULT), channels(0), frameCount(0), latency(0) {}
160 size_t frameCount; member in class:android::AudioSystem::OutputDescriptor
H A DAudioTrack.h77 size_t frameCount; // number of sample frames corresponding to size; member in class:android::AudioTrack::Buffer
117 static status_t getMinFrameCount(int* frameCount,
139 * frameCount: Minimum size of track PCM buffer in frames. This defines the
158 int frameCount = 0,
170 int frameCount = 0,
214 int frameCount = 0,
242 uint32_t frameCount() const;
411 /* Obtains a buffer of "frameCount" frames. The buffer must be
434 /* Release a filled buffer of "frameCount" frames for AudioFlinger to process. */
489 int frameCount,
[all...]
/frameworks/av/include/private/media/
H A DAudioTrackShared.h76 uint32_t frameCount; member in struct:android::audio_track_cblk_t
117 uint32_t stepUser(uint32_t frameCount); // called by client only, where
119 bool stepServer(uint32_t frameCount); // called by server only
/frameworks/av/libvideoeditor/lvpp/
H A DVideoEditorPlayer.cpp348 return mTrack->frameCount() * frameSize();
351 ssize_t VideoEditorPlayer::VeAudioOutput::frameCount() const { function in class:android::VideoEditorPlayer::VeAudioOutput
354 return mTrack->frameCount();
411 int frameCount; local
422 frameCount = (sampleRate*afFrameCount*bufferCount)/afSampleRate;
444 frameCount,
454 frameCount,
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/
H A DEffectBundle.cpp297 pContext->pBundledContext->frameCount = -1;
734 // frameCount: Frames to process
745 int frameCount,
755 if (pContext->pBundledContext->frameCount != frameCount) {
760 (LVM_INT16 *)malloc(frameCount * sizeof(LVM_INT16) * 2);
761 pContext->pBundledContext->frameCount = frameCount;
770 fwrite(pIn, frameCount*sizeof(LVM_INT16)*2, 1, pContext->pBundledContext->PcmInPtr);
780 (LVM_UINT16)frameCount, /* Numbe
743 LvmBundle_process(LVM_INT16 *pIn, LVM_INT16 *pOut, int frameCount, EffectContext *pContext) argument
[all...]
H A DEffectBundle.h97 int frameCount; member in struct:BundledEffectContext
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/
H A DEffectReverb.cpp426 // frameCount: Frames to process
437 int frameCount,
462 fwrite(pIn, frameCount*sizeof(LVM_INT16)*samplesPerFrame, 1, pContext->PcmInPtr);
474 for(int i=0; i<frameCount*samplesPerFrame; i++){
479 for (int i = 0; i < frameCount; i++) {
486 memset(pContext->OutFrames32, 0, frameCount * sizeof(LVM_INT32) * 2); //always stereo here
489 memset(pContext->InFrames32,0,frameCount * sizeof(LVM_INT32) * samplesPerFrame);
497 frameCount); /* Number of samples to read */
505 for (int i=0; i < frameCount*2; i++) { //always stereo here
509 for (int i=0; i < frameCount*
435 process( LVM_INT16 *pIn, LVM_INT16 *pOut, int frameCount, ReverbContext *pContext) argument
[all...]
/frameworks/av/media/libeffects/preprocessing/
H A DPreProcessing.cpp107 size_t frameCount; // buffer size before input resampler ( <=> apmFrameCount) member in struct:preproc_session_s
798 session->frameCount = session->apmFrameCount;
931 session->frameCount = session->apmFrameCount;
933 session->frameCount = (session->apmFrameCount * session->samplingRate) /
1183 // inBuffer->frameCount, session->enabledMsk, session->processedMsk);
1187 size_t framesRq = outBuffer->frameCount;
1191 if (outBuffer->frameCount < fr) {
1192 fr = outBuffer->frameCount;
1203 outBuffer->frameCount = framesWr;
1205 inBuffer->frameCount
[all...]
/frameworks/av/media/libeffects/testlibs/
H A DAudioBiquadFilter.cpp66 int frameCount) {
67 (this->*mCurProcessFunc)(in, out, frameCount);
121 int frameCount) {
122 int64_t maxDelta = mMaxDelta * frameCount;
141 int frameCount) {
144 memcpy(out, in, frameCount * mNumChannels * sizeof(audio_sample_t));
150 int frameCount) {
151 size_t nFrames = frameCount;
184 int frameCount) {
185 if (updateCoefs(mTargetCoefs, frameCount)) {
65 process(const audio_sample_t in[], audio_sample_t out[], int frameCount) argument
120 updateCoefs(const audio_coef_t coefs[NUM_COEFS], int frameCount) argument
139 process_bypass(const audio_sample_t * in, audio_sample_t * out, int frameCount) argument
148 process_normal_mono(const audio_sample_t * in, audio_sample_t * out, int frameCount) argument
182 process_transition_normal_mono(const audio_sample_t * in, audio_sample_t * out, int frameCount) argument
191 process_transition_bypass_mono(const audio_sample_t * in, audio_sample_t * out, int frameCount) argument
200 process_normal_multi(const audio_sample_t * in, audio_sample_t * out, int frameCount) argument
240 process_transition_normal_multi(const audio_sample_t * in, audio_sample_t * out, int frameCount) argument
249 process_transition_bypass_multi(const audio_sample_t * in, audio_sample_t * out, int frameCount) argument
[all...]
H A DAudioEqualizer.cpp227 int frameCount) {
228 // ALOGV("AudioEqualizer::process(frameCount=%d)", frameCount);
229 mpLowShelf->process(pIn, pOut, frameCount);
231 mpPeakingFilters[i].process(pIn, pOut, frameCount);
233 mpHighShelf->process(pIn, pOut, frameCount);
225 process(const audio_sample_t * pIn, audio_sample_t * pOut, int frameCount) argument
H A DAudioPeakingFilter.h99 // frameCount * nChannels interlaced samples. Processing can be done
103 // frameCount Number of frames to produce.
105 int frameCount) { mBiquad.process(in, out, frameCount); }
104 process(const audio_sample_t in[], audio_sample_t out[], int frameCount) argument

Completed in 314 milliseconds

12