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

12

/frameworks/av/media/libstagefright/omx/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/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/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.cpp48 status_t AudioStreamOut::getRenderPosition(uint64_t *frames) argument
69 *frames = mRenderPosition / mRateMultiplier;
75 status_t AudioStreamOut::getRenderPosition(uint32_t *frames) argument
80 *frames = (uint32_t)position64;
85 status_t AudioStreamOut::getPresentationPosition(uint64_t *frames, struct timespec *timestamp) argument
97 // Adjust for standby using HAL rate frames.
98 // Only apply this correction if the HAL is getting PCM frames.
103 *frames = adjustedPosition / mRateMultiplier;
106 *frames = halPosition;
H A DBufferProviders.h59 // Use a private buffer of bufferFrameCount frames (each frame is outputFrameSize bytes).
74 // #frames in the *src pointer to the *dst pointer. It is public because
77 virtual void copyFrames(void *dst, const void *src, size_t frames) = 0;
98 virtual void copyFrames(void *dst, const void *src, size_t frames);
125 virtual void copyFrames(void *dst, const void *src, size_t frames);
142 virtual void copyFrames(void *dst, const void *src, size_t frames);
167 // processes frames
169 // dstFrames [in/out] is the desired frames (return with actual placed in buffer)
171 // srcFrames [in/out] is the available source frames (return with consumed)
H A Dtest-resample.cpp60 fprintf(stderr," -O # frames output per call to resample() in CSV format\n");
61 fprintf(stderr," -P # frames provided per call to resample() in CSV format\n");
218 input_size = info.frames * info.channels * sizeof(short);
220 (void) sf_readf_short(sf, (short *) input_vaddr, info.frames);
262 const size_t mNumFrames; // total frames
265 size_t mUnrel; // number of frames not yet released
266 const Vector<int> mPvalues; // number of frames provided per call
269 Provider(const void* addr, size_t frames, size_t frameSize, const Vector<int>& Pvalues) argument
271 mNumFrames(frames),
291 printf("getNextBuffer() requested %zu frames ou
[all...]
H A DBufferProviders.cpp235 void DownmixerBufferProvider::copyFrames(void *dst, const void *src, size_t frames) argument
237 mDownmixConfig.inputCfg.buffer.frameCount = frames;
239 mDownmixConfig.outputCfg.buffer.frameCount = frames;
298 void RemixBufferProvider::copyFrames(void *dst, const void *src, size_t frames) argument
301 src, mInputChannels, mIdxAry, mSampleSize, frames);
319 void ReformatBufferProvider::copyFrames(void *dst, const void *src, size_t frames) argument
321 memcpy_by_audio_format(dst, mOutputFormat, src, mInputFormat, frames * mChannelCount);
446 LOG_ALWAYS_FATAL("Releasing more frames(%zu) than available(%zu)",
475 // Note dstFrames is the required number of frames.
481 // rate, actual frames processe
[all...]
H A DPlaybackTracks.h146 size_t mPresentationCompleteFrames; // number of frames written to the
198 bool write(void* data, uint32_t frames);
/frameworks/av/media/libstagefright/webm/
H A DWebmFrameThread.cpp94 // frames:
95 // sequence of input audio/video frames received from the source.
99 // frame since frames are ordered by timestamp.
107 List<const sp<WebmFrame> >& frames,
110 CHECK(!frames.empty() && children.empty());
112 const sp<WebmFrame> f = *(frames.begin());
129 // Write out (possibly multiple) webm cluster(s) from frames split on video key frames.
133 void WebmFrameSinkThread::flushFrames(List<const sp<WebmFrame> >& frames, bool last) { argument
134 if (frames
106 initCluster( List<const sp<WebmFrame> >& frames, uint64_t& clusterTimecodeL, List<sp<WebmElement> >& children) argument
[all...]
H A DWebmFrameThread.h90 List<const sp<WebmFrame> >& frames,
94 void flushFrames(List<const sp<WebmFrame> >& frames, bool last);
/frameworks/av/services/audioflinger/tests/
H A Dtest_utils.h95 TestProvider(void* addr, size_t frames, size_t frameSize, argument
98 mNumFrames(frames),
132 ALOGV("getNextBuffer() requested %zu frames out of %zu frames available"
133 " and returned %zu frames",
148 ALOGE("releaseBuffer() released %zu frames but only %zu available "
154 ALOGV("releaseBuffer() released %zu frames out of %zu frames available "
176 size_t mNumFrames; // total frames
179 size_t mUnrel; // number of frames no
187 createSine(void *vbuffer, size_t frames, size_t channels, double sampleRate, double freq) argument
211 createChirp(void *vbuffer, size_t frames, size_t channels, double sampleRate, double minfreq, double maxfreq) argument
284 createBufferByFrames(size_t channels, uint32_t sampleRate, size_t frames) argument
[all...]
H A Dtest-mixer.cpp48 fprintf(stderr, " -P # frames provided per call to resample() in CSV format\n");
55 uint32_t sampleRate, uint32_t channels, size_t frames, bool isBufferFloat) {
61 info.frames = 0;
65 printf("saving file:%s channels:%u samplerate:%u frames:%zu\n",
66 filename, info.channels, info.samplerate, frames);
73 (void) sf_writef_float(sf, (float*)buffer, frames);
75 (void) sf_writef_short(sf, (short*)buffer, frames);
210 // calculate the number of output frames
312 outputFrames = i; // reset output frames to the data actually produced.
54 writeFile(const char *filename, const void *buffer, uint32_t sampleRate, uint32_t channels, size_t frames, bool isBufferFloat) argument
/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/libstagefright/
H A DXINGSeeker.cpp139 int32_t frames = U32_AT(buffer); local
144 if (frames) {
145 seeker->mDurationUs = (int64_t)frames * samples_per_frame * 1000000LL / sampling_rate;
/frameworks/av/media/libnbaio/
H A DLibsndfileSource.cpp29 mEstimatedFramesUntilEOF(sfinfo.frames),
55 // Detect EOF by zero frames read, not by mFramesUntilEOF as it could be inaccurate
62 // We didn't read any frames during the current loop cycle, so disable
/frameworks/av/media/libmedia/
H A DMemoryLeakTrackUtil.cpp46 extern std::string backtrace_string(const uintptr_t* frames, size_t frame_count);
/frameworks/base/cmds/bootanimation/
H A DBootAnimation.h92 int pause; // The number of frames to pause for at the end of this part
97 SortedVector<Frame> frames; member in struct:android::BootAnimation::Animation::Part
H A DBootAnimation.cpp642 part.frames.add(frame);
657 for (size_t frameIdx = 0; frameIdx < part.frames.size(); frameIdx++) {
668 Animation::Frame& frame(part.frames.editItemAt(frameIdx));
724 // Blend required to draw time on top of animation frames.
775 const size_t fcount = part.frames.size();
804 const Animation::Frame& frame(part.frames[j]);
874 const size_t fcount = part.frames.size();
876 const Animation::Frame& frame(part.frames[j]);
/frameworks/base/core/java/android/view/
H A DPointerIcon.java432 final int frames = animationDrawable.getNumberOfFrames();
434 if (frames == 1) {
440 mBitmapFrames = new Bitmap[frames - 1];
443 for (int i = 1; i < frames; ++i) {
452 + "is different. All frames should have the exact same size and "
/frameworks/wilhelm/tests/sandbox/
H A Dplaybq.c249 fprintf(stderr, " -f# frames per buffer (default 512)\n");
498 sf_count_t frames = framesPerBuffer; local
502 count = sf_readf_float(sndfile, (float *) buffer, frames);
505 count = sf_readf_int(sndfile, (int *) buffer, frames);
508 count = sf_readf_int(sndfile, (int *) buffer, frames);
512 count = sf_readf_short(sndfile, (short *) buffer, frames);
H A Dplaybq.cpp249 fprintf(stderr, " -f# frames per buffer (default 512)\n");
498 sf_count_t frames = framesPerBuffer; local
502 count = sf_readf_float(sndfile, (float *) buffer, frames);
505 count = sf_readf_int(sndfile, (int *) buffer, frames);
508 count = sf_readf_int(sndfile, (int *) buffer, frames);
512 count = sf_readf_short(sndfile, (short *) buffer, frames);
/frameworks/base/media/java/android/media/
H A DTtmlRenderer.java139 String frames = matcher.group(5);
140 durationSeconds += (frames != null) ? ((double)Long.parseLong(frames)) / frameRate : 0;
341 * <li>time-clock-with-frames
343 * <li>time-offset-with-frames
/frameworks/wilhelm/src/desktop/
H A DSndFile.c261 thiz->mPlay.mDuration = (SLmillisecond) (((long long) thiz->mSndFile.mSfInfo.frames *

Completed in 494 milliseconds

12