Searched defs:timeUs (Results 1 - 25 of 76) sorted by relevance

1234

/frameworks/av/include/media/
H A DMediaMetadataRetrieverInterface.h45 virtual VideoFrame* getFrameAtTime(int64_t timeUs, int option) = 0;
57 virtual VideoFrame* getFrameAtTime(int64_t timeUs, int option) { return NULL; } argument
/frameworks/av/media/libstagefright/omx/
H A DFrameDropper.cpp46 bool FrameDropper::shouldDrop(int64_t timeUs) { argument
52 mDesiredMinTimeUs = timeUs + mMinIntervalUs;
54 (long long)timeUs, (long long)mDesiredMinTimeUs);
58 if (timeUs < (mDesiredMinTimeUs - kMaxJitterUs)) {
60 (long long)timeUs, (long long)mDesiredMinTimeUs,
61 (long long)(mDesiredMinTimeUs - timeUs));
65 int64_t n = (timeUs - mDesiredMinTimeUs + kMaxJitterUs) / mMinIntervalUs;
68 (long long)timeUs, (long long)mDesiredMinTimeUs,
69 (long long)(mDesiredMinTimeUs - timeUs));
/frameworks/base/media/java/android/media/
H A DMediaTimeProvider.java29 * registers the listener to get seek and stop notifications. If timeUs is
33 * is larger than or equal to timeUs.
35 * @param timeUs presentation time to get timed event callback at (or
38 public void notifyAt(long timeUs, OnMediaTimeListener listener); argument
72 * @param timeUs current media time
74 void onTimedEvent(long timeUs); argument
79 * @param timeUs current media time
81 void onSeek(long timeUs); argument
/frameworks/av/media/libstagefright/rtsp/
H A Drtp_test.cpp213 int64_t timeUs; local
214 CHECK(buffer->meta_data()->findInt64(kKeyTime, &timeUs));
217 buffer->range_length(), timeUs / 1E6);
/frameworks/av/media/libstagefright/
H A DMediaMuxer.cpp150 int64_t timeUs, uint32_t flags) {
174 sampleMetaData->setInt64(kKeyTime, timeUs);
176 sampleMetaData->setInt64(kKeyDecodingTime, timeUs);
149 writeSampleData(const sp<ABuffer> &buffer, size_t trackIndex, int64_t timeUs, uint32_t flags) argument
H A DVBRISeeker.cpp151 bool VBRISeeker::getOffsetForTime(int64_t *timeUs, off64_t *pos) { argument
161 while (segmentIndex < mSegments.size() && nowUs < *timeUs) {
166 ALOGV("getOffsetForTime %lld us => 0x%016llx", (long long)*timeUs, (long long)*pos);
168 *timeUs = nowUs;
H A DXINGSeeker.cpp46 bool XINGSeeker::getOffsetForTime(int64_t *timeUs, off64_t *pos) { argument
51 float percent = (float)(*timeUs) * 100 / mDurationUs;
H A DAudioSource.cpp245 int64_t timeUs; local
246 CHECK(buffer->meta_data()->findInt64(kKeyTime, &timeUs));
247 int64_t elapsedTimeUs = timeUs - mStartTimeUs;
270 mFirstSampleTimeUs = timeUs;
272 timeUs = mFirstSampleTimeUs + (timeUs - mFirstSampleTimeUs)
274 buffer->meta_data()->setInt64(kKeyTime, timeUs);
292 int64_t timeUs = systemTime() / 1000ll; local
294 ALOGV("dataCallbackTimestamp: %" PRId64 " us", timeUs);
302 if (mNumFramesReceived == 0 && timeUs < mStartTimeU
364 queueInputBuffer_l(MediaBuffer *buffer, int64_t timeUs) argument
[all...]
H A DMidiExtractor.cpp239 int64_t timeUs = 1000ll * timeMs; local
240 buffer->meta_data()->setInt64(kKeyTime, timeUs);
/frameworks/av/media/libstagefright/omx/tests/
H A DFrameDropper_test.cpp29 int64_t timeUs; member in struct:android::TestFrame
102 int64_t testTimeUs = frames[i].timeUs + jitter;
104 (long long)frames[i].timeUs, (long long)testTimeUs, jitter);
/frameworks/av/media/libstagefright/timedtext/
H A DTimedText3GPPSource.cpp66 int64_t timeUs, const MediaBuffer *textBuffer, Parcel *parcel) {
82 (const uint8_t *)data, size, flag, timeUs / 1000, parcel);
65 extractAndAppendLocalDescriptions( int64_t timeUs, const MediaBuffer *textBuffer, Parcel *parcel) argument
H A DTimedTextDriver.cpp166 status_t TimedTextDriver::seekToAsync(int64_t timeUs) { argument
173 mPlayer->seekToAsync(timeUs);
178 mPlayer->seekToAsync(timeUs);
182 mPlayer->seekToAsync(timeUs);
H A DTimedTextPlayer.cpp70 void TimedTextPlayer::seekToAsync(int64_t timeUs) { argument
72 msg->setInt64("seekTimeUs", timeUs);
260 void TimedTextPlayer::postTextEvent(const sp<ParcelEvent>& parcel, int64_t timeUs) { argument
261 int64_t delayUs = delayUsFromCurrentTime(timeUs);
267 msg->setInt64("fireTimeUs", timeUs);
/frameworks/av/media/libstagefright/wifi-display/source/
H A DMediaPuller.cpp165 int64_t timeUs; local
166 CHECK(mbuf->meta_data()->findInt64(kKeyTime, &timeUs));
174 accessUnit->meta()->setInt64("timeUs", timeUs);
/frameworks/av/media/libmedia/
H A Dmediametadataretriever.cpp144 sp<IMemory> MediaMetadataRetriever::getFrameAtTime(int64_t timeUs, int option) argument
146 ALOGV("getFrameAtTime: time(%" PRId64 " us) option(%d)", timeUs, option);
152 return mRetriever->getFrameAtTime(timeUs, option);
H A DIMediaMetadataRetriever.cpp139 sp<IMemory> getFrameAtTime(int64_t timeUs, int option) argument
141 ALOGV("getTimeAtTime: time(%" PRId64 " us) and option(%d)", timeUs, option);
144 data.writeInt64(timeUs);
258 int64_t timeUs = data.readInt64(); local
260 ALOGV("getTimeAtTime: time(%" PRId64 " us) and option(%d)", timeUs, option);
264 sp<IMemory> bitmap = getFrameAtTime(timeUs, option);
/frameworks/av/media/libmediaplayerservice/
H A DMetadataRetrieverClient.cpp196 sp<IMemory> MetadataRetrieverClient::getFrameAtTime(int64_t timeUs, int option) argument
198 ALOGV("getFrameAtTime: time(%lld us) option(%d)", timeUs, option);
206 VideoFrame *frame = mRetriever->getFrameAtTime(timeUs, option);
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DStreamingSource.cpp249 int64_t timeUs; local
250 CHECK((*accessUnit)->meta()->findInt64("timeUs", &timeUs));
251 ALOGV("dequeueAccessUnit timeUs=%lld us", timeUs);
H A DHTTPLiveSource.cpp157 status_t NuPlayer::HTTPLiveSource::selectTrack(size_t trackIndex, bool select, int64_t /*timeUs*/) {
221 int64_t timeUs, baseUs, delayUs; local
223 CHECK(buffer->meta()->findInt64("timeUs", &timeUs));
224 delayUs = baseUs + timeUs - ALooper::GetNowUs();
H A DNuPlayerCCDecoder.cpp195 int64_t timeUs; local
196 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs));
204 timeUs, accessUnit->data() + nal->nalOffset, nal->nalSize);
212 int64_t timeUs, const uint8_t *nalStart, size_t nalSize) {
303 mCCMap.add(timeUs, ccBuf);
352 void NuPlayer::CCDecoder::display(int64_t timeUs) { argument
358 ssize_t index = mCCMap.indexOfKey(timeUs);
360 ALOGV("cc for timestamp %" PRId64 " not found", timeUs);
372 ccBuf->meta()->setInt64("timeUs", timeU
211 parseSEINalUnit( int64_t timeUs, const uint8_t *nalStart, size_t nalSize) argument
[all...]
H A DNuPlayerDecoderPassThrough.cpp183 int64_t timeUs; local
185 bool smallTimestampValid = accessUnit->meta()->findInt64("timeUs", &timeUs);
186 bool bigTimestampValid = mAggregateBuffer->meta()->findInt64("timeUs", &dummy);
202 mAggregateBuffer->meta()->setInt64("timeUs", timeUs);
272 CHECK(accessUnit->meta()->findInt64("timeUs", &mediaTimeUs));
319 int64_t timeUs = 0; local
320 CHECK(buffer->meta()->findInt64("timeUs", &timeUs));
[all...]
/frameworks/av/cmds/stagefright/
H A DSimplePlayer.cpp491 int64_t timeUs; local
492 CHECK_EQ(mExtractor->getSampleTime(&timeUs), (status_t)OK);
498 timeUs,
H A Dcodec.cpp182 int64_t timeUs; local
183 err = extractor->getSampleTime(&timeUs);
192 timeUs,
218 0ll /* timeUs */,
H A Dmuxer.cpp179 int64_t timeUs; local
180 err = extractor->getSampleTime(&timeUs);
194 if (enableTrim && timeUs > trimStartTimeUs &&
195 timeUs <= trimEndTimeUs) {
197 trimOffsetTimeUs = timeUs;
203 if (enableTrim && timeUs > trimEndTimeUs) {
210 timeUs - trimOffsetTimeUs, sampleFlags);
/frameworks/av/include/media/stagefright/
H A DMPEG4Writer.h111 void setStartTimestampUs(int64_t timeUs);
125 Chunk(Track *track, int64_t timeUs, List<MediaBuffer *> samples) argument
126 : mTrack(track), mTimeStampUs(timeUs), mSamples(samples) {
195 void trackProgressStatus(size_t trackId, int64_t timeUs, status_t err = OK);

Completed in 267 milliseconds

1234