Searched defs:frameCount (Results 1 - 25 of 34) sorted by relevance

12

/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 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 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 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/media/libeffects/testlibs/
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
H A DAudioShelvingFilter.h93 // frameCount * nChannels interlaced samples. Processing can be done
97 // frameCount Number of frames to produce.
99 int frameCount) { mBiquad.process(in, out, frameCount); }
98 process(const audio_sample_t in[], audio_sample_t out[], int frameCount) argument
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
/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/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/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/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/media/libstagefright/
H A DAudioSource.cpp69 int frameCount = kMaxBufferSize / sizeof(int16_t) / channelCount; local
73 while ((bufCount * frameCount) < minFrameCount) {
80 bufCount * frameCount,
83 frameCount);
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/
H A DEffectBundle.h97 int frameCount; member in struct:BundledEffectContext
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...]
/frameworks/av/services/audioflinger/
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...]
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);
/frameworks/av/media/libmedia/
H A DAudioRecord.cpp39 int* frameCount,
44 if (frameCount == NULL) return BAD_VALUE;
47 *frameCount = 0;
70 *frameCount = size;
87 int frameCount,
96 frameCount, cbf, user, notificationFrames, sessionId);
122 int frameCount,
130 ALOGV("set(): sampleRate %d, channelMask %#x, frameCount %d",sampleRate, channelMask, frameCount);
186 if (frameCount
38 getMinFrameCount( int* frameCount, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask) argument
82 AudioRecord( audio_source_t inputSource, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, callback_t cbf, void* user, int notificationFrames, int sessionId) argument
117 set( audio_source_t inputSource, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, callback_t cbf, void* user, int notificationFrames, bool threadCanCallJava, int sessionId) argument
255 uint32_t AudioRecord::frameCount() const function in class:android::AudioRecord
425 openRecord_l( uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, audio_io_handle_t input) argument
[all...]
H A DSoundPool.cpp584 uint32_t frameCount = 0; local
587 frameCount = sample->size()/numChannels/
593 if(frameCount < totalFrames) {
594 frameCount = totalFrames;
614 channels, frameCount, AUDIO_OUTPUT_FLAG_FAST, callback, userData,
625 newTrack->setLoop(0, frameCount, loop);
642 mAudioBufferSize = newTrack->frameCount()*newTrack->frameSize();
H A DAudioSystem.cpp255 status_t AudioSystem::getOutputFrameCount(int* frameCount, int streamType) { argument
256 return getOutputFrameCount(frameCount, (audio_stream_type_t)streamType);
259 status_t AudioSystem::getOutputFrameCount(int* frameCount, audio_stream_type_t streamType) argument
272 return getFrameCount(output, streamType, frameCount);
277 int* frameCount)
287 *frameCount = af->frameCount(output);
289 *frameCount = outputDesc->frameCount;
293 ALOGV("getFrameCount() streamType %d, output %d, frameCount
275 getFrameCount(audio_io_handle_t output, audio_stream_type_t streamType, int* frameCount) argument
[all...]
H A DAudioTrack.cpp53 int* frameCount,
57 if (frameCount == NULL) return BAD_VALUE;
60 *frameCount = 0;
85 *frameCount = (sampleRate == 0) ? afFrameCount * minBufCount :
88 *frameCount, afFrameCount, minBufCount, afSampleRate, afLatency);
107 int frameCount,
119 frameCount, flags, cbf, user, notificationFrames,
129 int frameCount,
141 frameCount, (audio_output_flags_t)flags, cbf, user, notificationFrames,
162 0 /*frameCount*/, flag
52 getMinFrameCount( int* frameCount, audio_stream_type_t streamType, uint32_t sampleRate) argument
102 AudioTrack( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, audio_output_flags_t flags, callback_t cbf, void* user, int notificationFrames, int sessionId) argument
124 AudioTrack( int streamType, uint32_t sampleRate, int format, int channelMask, int frameCount, uint32_t flags, callback_t cbf, void* user, int notificationFrames, int sessionId) argument
186 set( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, audio_output_flags_t flags, callback_t cbf, void* user, int notificationFrames, const sp<IMemory>& sharedBuffer, bool threadCanCallJava, int sessionId) argument
352 uint32_t AudioTrack::frameCount() const function in class:android::AudioTrack
749 createTrack_l( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, audio_output_flags_t flags, const sp<IMemory>& sharedBuffer, audio_io_handle_t output) argument
1514 stepUser(uint32_t frameCount) argument
1552 stepServer(uint32_t frameCount) argument
[all...]
H A DIAudioFlinger.cpp92 int frameCount,
108 data.writeInt32(frameCount);
141 int frameCount,
155 data.writeInt32(frameCount);
209 virtual size_t frameCount(audio_io_handle_t output) const function in class:android::BpAudioFlinger
779 reply->writeInt32( frameCount((audio_io_handle_t) data.readInt32()) );
86 createTrack( pid_t pid, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, track_flags_t flags, const sp<IMemory>& sharedBuffer, audio_io_handle_t output, pid_t tid, int *sessionId, status_t *status) argument
135 openRecord( pid_t pid, audio_io_handle_t input, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, track_flags_t flags, pid_t tid, int *sessionId, status_t *status) argument
/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);
/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/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...]

Completed in 355 milliseconds

12