Searched refs:frames (Results 1 - 25 of 85) sorted by relevance

1234

/frameworks/av/media/libaaudio/src/utility/
H A DLinearRamp.cpp31 bool LinearRamp::nextSegment(int32_t frames, float *levelFrom, float *levelTo) { argument
36 if (frames >= mRemaining) {
41 level = mLevelFrom + (frames * (mLevelTo - mLevelFrom) / mRemaining);
42 mRemaining -= frames;
H A DLinearRamp.h37 void setLengthInFrames(int32_t frames) { argument
38 mLengthInFrames = frames;
77 * @param frames number of frames in the segment
82 bool nextSegment(int32_t frames, float *levelFrom, float *levelTo);
/frameworks/av/media/libaudioprocessing/
H A DRecordBufferConverter.cpp78 AudioBufferProvider *provider, size_t frames)
90 for (size_t i = frames; i > 0; ) {
94 frames -= i; // cannot fill request.
109 if (mBufFrameSize != 0 && mBufFrames < frames) {
111 mBufFrames = frames;
115 memset(mBuf, 0, frames * mBufFrameSize);
116 frames = mResampler->resample((int32_t*)mBuf, frames, provider);
118 convertResampler(dst, mBuf, frames);
120 return frames;
77 convert(void *dst, AudioBufferProvider *provider, size_t frames) argument
219 convertNoResampler( void *dst, const void *src, size_t frames) argument
259 convertResampler( void *dst, void *src, size_t frames) argument
[all...]
H A DBufferProviders.cpp276 void DownmixerBufferProvider::copyFrames(void *dst, const void *src, size_t frames) argument
279 mInBuffer->setFrameCount(frames);
280 mInBuffer->update(mInFrameSize * frames);
281 mOutBuffer->setFrameCount(frames);
286 mOutBuffer->update(mOutFrameSize * frames);
291 mOutBuffer->commit(mOutFrameSize * frames);
353 void RemixBufferProvider::copyFrames(void *dst, const void *src, size_t frames) argument
356 src, mInputChannels, mIdxAry, mSampleSize, frames);
374 void ReformatBufferProvider::copyFrames(void *dst, const void *src, size_t frames) argument
376 memcpy_by_audio_format(dst, mOutputFormat, src, mInputFormat, frames * mChannelCoun
389 copyFrames(void *dst, const void *src, size_t frames) argument
[all...]
/frameworks/av/media/libaaudio/src/legacy/
H A DAudioStreamLegacy.h41 * The value1 parameter will be the number of frames.
78 virtual int64_t incrementClientFrameCounter(int32_t frames) = 0;
124 int64_t incrementFramesWritten(int32_t frames) { argument
125 return mFramesWritten.increment(frames);
128 int64_t incrementFramesRead(int32_t frames) { argument
129 return mFramesRead.increment(frames);
H A DAudioStreamRecord.h75 int64_t incrementClientFrameCounter(int32_t frames) override {
76 return incrementFramesRead(frames);
H A DAudioStreamTrack.h86 int64_t incrementClientFrameCounter(int32_t frames) override {
87 return incrementFramesWritten(frames);
/frameworks/av/media/libstagefright/rtsp/
H A DARTPAssembler.h53 const List<sp<ABuffer> > &frames);
56 const List<sp<ABuffer> > &frames);
H A DARTPAssembler.cpp76 const List<sp<ABuffer> > &frames) {
78 for (List<sp<ABuffer> >::const_iterator it = frames.begin();
79 it != frames.end(); ++it) {
86 for (List<sp<ABuffer> >::const_iterator it = frames.begin();
87 it != frames.end(); ++it) {
116 CopyTimes(accessUnit, *frames.begin());
72 MakeADTSCompoundFromAACFrames( unsigned profile, unsigned samplingFreqIndex, unsigned channelConfig, const List<sp<ABuffer> > &frames) argument
/frameworks/av/media/libstagefright/bqhelper/tests/
H A DFrameDropper_test.cpp99 void RunTest(const TestFrame* frames, size_t size) { argument
102 int64_t testTimeUs = frames[i].timeUs + jitter;
104 (long long)frames[i].timeUs, (long long)testTimeUs, jitter);
105 EXPECT_EQ(frames[i].shouldDrop, mFrameDropper->shouldDrop(testTimeUs));
/frameworks/av/include/media/
H A DRecordBufferConverter.h59 * frames: number of frames to convert
61 * Returns the number of frames converted.
63 size_t convert(void *dst, AudioBufferProvider *provider, size_t frames);
83 void convertNoResampler(void *dst, const void *src, size_t frames);
86 void convertResampler(void *dst, /*not-a-const*/ void *src, size_t frames);
H A DBufferProviders.h68 // Use a private buffer of bufferFrameCount frames (each frame is outputFrameSize bytes).
83 // #frames in the *src pointer to the *dst pointer. It is public because
86 virtual void copyFrames(void *dst, const void *src, size_t frames) = 0;
107 virtual void copyFrames(void *dst, const void *src, size_t frames);
139 virtual void copyFrames(void *dst, const void *src, size_t frames);
156 virtual void copyFrames(void *dst, const void *src, size_t frames);
169 virtual void copyFrames(void *dst, const void *src, size_t frames);
192 // processes frames
194 // dstFrames [in/out] is the desired frames (return with actual placed in buffer)
196 // srcFrames [in/out] is the available source frames (retur
[all...]
H A DIMediaMetadataRetriever.h52 std::vector<sp<IMemory> > *frames,
H A DMediaMetadataRetrieverInterface.h53 std::vector<sp<IMemory> >* frames,
/frameworks/av/media/libmedia/include/media/
H A DRecordBufferConverter.h59 * frames: number of frames to convert
61 * Returns the number of frames converted.
63 size_t convert(void *dst, AudioBufferProvider *provider, size_t frames);
83 void convertNoResampler(void *dst, const void *src, size_t frames);
86 void convertResampler(void *dst, /*not-a-const*/ void *src, size_t frames);
H A DBufferProviders.h68 // Use a private buffer of bufferFrameCount frames (each frame is outputFrameSize bytes).
83 // #frames in the *src pointer to the *dst pointer. It is public because
86 virtual void copyFrames(void *dst, const void *src, size_t frames) = 0;
107 virtual void copyFrames(void *dst, const void *src, size_t frames);
139 virtual void copyFrames(void *dst, const void *src, size_t frames);
156 virtual void copyFrames(void *dst, const void *src, size_t frames);
169 virtual void copyFrames(void *dst, const void *src, size_t frames);
192 // processes frames
194 // dstFrames [in/out] is the desired frames (return with actual placed in buffer)
196 // srcFrames [in/out] is the available source frames (retur
[all...]
/frameworks/av/services/audioflinger/
H A DAudioStreamOut.h57 status_t getRenderPosition(uint32_t *frames);
59 virtual status_t getRenderPosition(uint64_t *frames);
61 virtual status_t getPresentationPosition(uint64_t *frames, struct timespec *timestamp);
H A DAudioStreamOut.cpp54 status_t AudioStreamOut::getRenderPosition(uint64_t *frames) argument
75 *frames = mRenderPosition / mRateMultiplier;
81 status_t AudioStreamOut::getRenderPosition(uint32_t *frames) argument
86 *frames = (uint32_t)position64;
91 status_t AudioStreamOut::getPresentationPosition(uint64_t *frames, struct timespec *timestamp) argument
103 // Adjust for standby using HAL rate frames.
104 // Only apply this correction if the HAL is getting PCM frames.
109 *frames = adjustedPosition / mRateMultiplier;
112 *frames = halPosition;
/frameworks/av/media/libstagefright/webm/
H A DWebmFrameThread.cpp100 // frames:
101 // sequence of input audio/video frames received from the source.
105 // frame since frames are ordered by timestamp.
113 List<const sp<WebmFrame> >& frames,
116 CHECK(!frames.empty() && children.empty());
118 const sp<WebmFrame> f = *(frames.begin());
135 // Write out (possibly multiple) webm cluster(s) from frames split on video key frames.
139 void WebmFrameSinkThread::flushFrames(List<const sp<WebmFrame> >& frames, bool last) { argument
140 if (frames
112 initCluster( List<const sp<WebmFrame> >& frames, uint64_t& clusterTimecodeL, List<sp<WebmElement> >& children) argument
[all...]
/frameworks/av/media/libaudioprocessing/tests/
H A Dtest_utils.h101 TestProvider(void* addr, size_t frames, size_t frameSize, argument
104 mNumFrames(frames),
138 ALOGV("getNextBuffer() requested %zu frames out of %zu frames available"
139 " and returned %zu frames",
154 ALOGE("releaseBuffer() released %zu frames but only %zu available "
160 ALOGV("releaseBuffer() released %zu frames out of %zu frames available "
182 size_t mNumFrames; // total frames
185 size_t mUnrel; // number of frames no
193 createSine(void *vbuffer, size_t frames, size_t channels, double sampleRate, double freq) argument
217 createChirp(void *vbuffer, size_t frames, size_t channels, double sampleRate, double minfreq, double maxfreq) argument
290 createBufferByFrames(size_t channels, uint32_t sampleRate, size_t frames) argument
[all...]
/frameworks/base/core/java/android/speech/tts/
H A DSynthesisPlaybackQueueItem.java212 // The index in frames of this marker.
213 public final int frames; field in class:SynthesisPlaybackQueueItem.ProgressMarker
219 public ProgressMarker(int frames, int start, int end) { argument
220 this.frames = frames;
232 int markerInFrames = marker.frames == 0 ? 1 : marker.frames;
251 getDispatcher().dispatchOnRangeStart(marker.start, marker.end, marker.frames);
/frameworks/wilhelm/tools/permute/
H A Dpermute.c75 /** Split the specified range of frames, using the allowed budget of segments.
202 switch (sfinfo_in.frames) {
205 fprintf(stderr, "%s: unsupported frames %d\n", path_in, (int) sfinfo_in.frames);
212 double durationSeconds = (double) sfinfo_in.frames / (double) sfinfo_in.samplerate;
224 used = split(&s, 0, sfinfo_in.frames, s.mSegmentMax);
241 void *ptr = malloc(sfinfo_in.frames * frameSizeRead);
244 count = sf_readf_short(sf_in, ptr, sfinfo_in.frames);
245 if (count != sfinfo_in.frames) {
246 fprintf(stderr, "%s: expected to read %d frames bu
[all...]
/frameworks/native/opengl/tests/hwc/
H A DhwcStress.cpp199 static vector <vector <sp<GraphicBuffer> > > frames; variable
396 // Regenerate a new set of test frames when this pass is
413 list = hwcTestCreateLayerList(testRandMod(frames.size()) + 1);
419 // Prandomly select a subset of frames to be used by this pass.
421 selectedFrames = vectorRandSelect(frames, list->numHwLayers);
545 * named frames. The graphic buffers are contained within a vector of
562 frames.clear();
563 frames.resize(rows);
566 // All frames within a row have to have the same format and
591 frames[ro
[all...]
/frameworks/av/media/libaaudio/src/core/
H A DAAudioStreamParameters.h79 void setBufferCapacity(int32_t frames) { argument
80 mBufferCapacity = frames;
/frameworks/av/media/extractors/mp3/
H A DXINGSeeker.cpp138 int32_t frames = U32_AT(buffer); local
143 if (frames) {
144 seeker->mDurationUs = (int64_t)frames * samples_per_frame * 1000000LL / sampling_rate;

Completed in 720 milliseconds

1234