Searched defs:timeUs (Results 1 - 25 of 73) sorted by last modified time

123

/frameworks/base/media/java/android/media/
H A DMediaExtractor.java586 public native void seekTo(long timeUs, @SeekMode int mode); argument
H A DMediaMetadataRetriever.java230 * @param timeUs The time position where the frame will be retrieved.
233 * When this happens, a frame nearby will be returned. If timeUs is
239 * that has a timestamp earlier than or the same as timeUs. Use
241 * that has a timestamp later than or the same as timeUs. Use
243 * that has a timestamp closest to or the same as timeUs. Use
245 * or may not be a sync frame but is closest to or the same as timeUs.
247 * to the other options if there is no sync frame located at timeUs.
252 public Bitmap getFrameAtTime(long timeUs, int option) { argument
258 return _getFrameAtTime(timeUs, option);
269 * @param timeUs Th
281 getFrameAtTime(long timeUs) argument
303 _getFrameAtTime(long timeUs, int option) argument
[all...]
H A DMediaPlayer.java5260 long timeUs = getCurrentTimeUs(true, false);
5261 if (DEBUG) Log.d(TAG, "onSeekComplete at " + timeUs);
5267 listener.onSeek(timeUs);
5319 long timeUs, MediaTimeProvider.OnMediaTimeListener listener) {
5321 if (DEBUG) Log.d(TAG, "notifyAt " + timeUs);
5322 mTimes[registerListener(listener)] = timeUs;
5318 notifyAt( long timeUs, MediaTimeProvider.OnMediaTimeListener listener) argument
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
H A DSubtitleTrack.java227 public void onTimedEvent(long timeUs) { argument
228 if (DEBUG) Log.d(TAG, "onTimedEvent " + timeUs);
230 long timeMs = timeUs / 1000;
242 public void onSeek(long timeUs) { argument
243 if (DEBUG) Log.d(TAG, "onSeek " + timeUs);
245 long timeMs = timeUs / 1000;
/frameworks/base/media/jni/
H A Dandroid_media_MediaCodec.cpp332 size_t offset, size_t size, int64_t timeUs, uint32_t flags,
335 index, offset, size, timeUs, flags, errorDetailMsg);
362 int64_t timeUs; local
365 index, &offset, &size, &timeUs, &flags, timeoutUs);
375 env->CallVoidMethod(bufferInfo, method, (jint)offset, (jint)size, timeUs, flags);
545 if (!input && buffer->meta()->findInt64("timeUs", &timestamp)) {
701 int64_t timeUs; local
705 CHECK(msg->findInt64("timeUs", &timeUs));
724 env->CallVoidMethod(obj, method, (jint)offset, (jint)size, timeUs, flag
330 queueInputBuffer( size_t index, size_t offset, size_t size, int64_t timeUs, uint32_t flags, AString *errorDetailMsg) argument
[all...]
H A Dandroid_media_MediaExtractor.cpp133 int64_t timeUs, MediaSource::ReadOptions::SeekMode mode) {
134 return mImpl->seekTo(timeUs, mode);
381 JNIEnv *env, jobject thiz, jlong timeUs, jint mode) {
395 extractor->seekTo(timeUs, (MediaSource::ReadOptions::SeekMode)mode);
132 seekTo( int64_t timeUs, MediaSource::ReadOptions::SeekMode mode) argument
380 android_media_MediaExtractor_seekTo( JNIEnv *env, jobject thiz, jlong timeUs, jint mode) argument
H A Dandroid_media_MediaMetadataRetriever.cpp247 static jobject android_media_MediaMetadataRetriever_getFrameAtTime(JNIEnv *env, jobject thiz, jlong timeUs, jint option) argument
249 ALOGV("getFrameAtTime: %lld us option: %d", (long long)timeUs, option);
258 sp<IMemory> frameMemory = retriever->getFrameAtTime(timeUs, option);
H A Dandroid_media_MediaMuxer.cpp78 jobject byteBuf, jint offset, jint size, jlong timeUs, jint flags) {
124 status_t err = muxer->writeSampleData(buffer, trackIndex, timeUs, flags);
76 android_media_MediaMuxer_writeSampleData( JNIEnv *env, jclass , jlong nativeObject, jint trackIndex, jobject byteBuf, jint offset, jint size, jlong timeUs, jint flags) argument
/frameworks/av/include/media/stagefright/
H A DMPEG4Writer.h127 void setStartTimestampUs(int64_t timeUs);
141 Chunk(Track *track, int64_t timeUs, List<MediaBuffer *> samples) argument
142 : mTrack(track), mTimeStampUs(timeUs), mSamples(samples) {
215 void trackProgressStatus(size_t trackId, int64_t timeUs, status_t err = OK);
/frameworks/av/media/libstagefright/filters/
H A DMediaFilter.cpp237 info.mData->meta()->setInt64("timeUs", 0);
356 int64_t timeUs; local
357 CHECK(inputInfo->mData->meta()->findInt64("timeUs", &timeUs));
358 outputInfo->mData->meta()->setInt64("timeUs", timeUs);
714 inputInfo->mData->meta()->setInt64("timeUs", item.mTimestamp / 1000);
/frameworks/av/media/libstagefright/foundation/
H A DANetworkSession.cpp103 const void *data, ssize_t size, bool timeValid, int64_t timeUs);
692 const void *data, ssize_t size, bool timeValid, int64_t timeUs) {
770 frag.mTimeUs = timeUs;
1207 bool timeValid, int64_t timeUs) {
1218 status_t err = session->sendRequest(data, size, timeValid, timeUs);
691 sendRequest( const void *data, ssize_t size, bool timeValid, int64_t timeUs) argument
1205 sendRequest( int32_t sessionID, const void *data, ssize_t size, bool timeValid, int64_t timeUs) argument
/frameworks/av/media/libstagefright/foundation/include/
H A DMPEG4Writer.h127 void setStartTimestampUs(int64_t timeUs);
141 Chunk(Track *track, int64_t timeUs, List<MediaBuffer *> samples) argument
142 : mTrack(track), mTimeStampUs(timeUs), mSamples(samples) {
215 void trackProgressStatus(size_t trackId, int64_t timeUs, status_t err = OK);
/frameworks/av/media/libstagefright/httplive/
H A DLiveSession.cpp321 int64_t firstTimeUs, int64_t timeUs, int32_t discontinuitySeq) {
322 if (timeUs >= firstTimeUs) {
323 timeUs -= firstTimeUs;
325 timeUs = 0;
327 timeUs += mLastSeekTimeUs;
329 timeUs += mDiscontinuityOffsetTimesUs.valueFor(discontinuitySeq);
331 return timeUs;
383 int64_t timeUs, originalTimeUs; local
386 CHECK((*accessUnit)->meta()->findInt64("timeUs", &timeUs));
320 calculateMediaTimeUs( int64_t firstTimeUs, int64_t timeUs, int32_t discontinuitySeq) argument
453 int64_t timeUs = calculateMediaTimeUs(firstTimeUs, mdTime.mTimeUs, mdTime.mSeq); local
523 seekTo(int64_t timeUs, MediaPlayerSeekMode mode) argument
1228 resumeFetcher( const AString &uri, uint32_t streamMask, int64_t timeUs, bool newUri) argument
1455 int64_t timeUs; local
1536 changeConfiguration( int64_t timeUs, ssize_t bandwidthIndex, bool pickTrack) argument
1667 int64_t timeUs; local
1780 int64_t timeUs; local
[all...]
H A DPlaylistFetcher.cpp988 CHECK(meta->findInt64("timeUs", &tmpUs));
1616 int32_t PlaylistFetcher::getSeqNumberForTime(int64_t timeUs) const {
1627 if (timeUs < segmentStartUs + itemDurationUs) {
1664 bool PlaylistFetcher::isStartTimeReached(int64_t timeUs) { argument
1666 mFirstTimeUs = timeUs;
1671 FLOGV("startTimeUsRelative, timeUs (%lld) - %lld = %lld",
1672 (long long)timeUs,
1674 (long long)(timeUs - mFirstTimeUs));
1675 timeUs -= mFirstTimeUs;
1676 if (timeUs <
1749 int64_t timeUs; local
1816 int64_t timeUs; local
2078 int64_t timeUs = (PTS * 100ll) / 9ll; local
[all...]
/frameworks/av/media/libstagefright/include/
H A DMPEG4Writer.h127 void setStartTimestampUs(int64_t timeUs);
141 Chunk(Track *track, int64_t timeUs, List<MediaBuffer *> samples) argument
142 : mTrack(track), mTimeStampUs(timeUs), mSamples(samples) {
215 void trackProgressStatus(size_t trackId, int64_t timeUs, status_t err = OK);
/frameworks/av/media/libstagefright/matroska/
H A DMatroskaExtractor.cpp615 int64_t timeUs = mBlockIter.blockTimeUs(); local
632 mbuf->meta_data()->setInt64(kKeyTime, timeUs);
783 int64_t timeUs; local
784 CHECK(frame->meta_data()->findInt64(kKeyTime, &timeUs));
788 buffer->meta_data()->setInt64(kKeyTime, timeUs);
/frameworks/av/media/libstagefright/mpeg2ts/
H A DATSParser.cpp272 int64_t timeUs, SourceType type) {
276 mTimeUs = timeUs;
679 int64_t timeUs = (PTS * 100) / 9; local
682 timeUs += mParser->mAbsoluteTimeAnchorUs;
686 timeUs += mParser->mTimeOffsetUs;
689 return timeUs;
1488 int64_t timeUs = 0ll; // no presentation timestamp available. local
1490 timeUs = mProgram->convertPTSToTimestamp(PTS);
1494 data, size, timeUs, payloadOffset, PES_scrambling_control);
1548 int64_t timeUs; local
271 init(off64_t offset, const sp<MediaSource> &source, int64_t timeUs, SourceType type) argument
1672 int64_t timeUs; local
[all...]
H A DAnotherPacketSource.cpp142 int64_t timeUs; local
144 CHECK(mLatestDequeuedMeta->findInt64("timeUs", &timeUs));
145 if (timeUs > seg.mMaxDequeTimeUs) {
146 seg.mMaxDequeTimeUs = timeUs;
198 int64_t timeUs; local
199 CHECK(buffer->meta()->findInt64("timeUs", &timeUs));
202 if (timeUs > seg.mMaxDequeTimeUs) {
203 seg.mMaxDequeTimeUs = timeUs;
475 int64_t timeUs = 0; local
490 nextBufferTime(int64_t *timeUs) argument
551 int64_t timeUs; local
[all...]
H A DESQueue.cpp275 const void *data, size_t size, int64_t timeUs,
480 info.mTimestampUs = timeUs;
487 ALOGI("size = %zu, timeUs = %.2f secs", size, timeUs / 1E6);
538 int64_t timeUs = fetchTimestamp(nextScan, &pesOffset, &pesScramblingControl); local
539 if (timeUs < 0ll) {
540 ALOGE("Negative timeUs");
591 scrambledAccessUnit->meta()->setInt64("timeUs", timeUs);
610 ALOGV("[stream %d] dequeued scrambled AU: timeUs
274 appendData( const void *data, size_t size, int64_t timeUs, int32_t payloadOffset, uint32_t pesScramblingControl) argument
702 int64_t timeUs = fetchTimestamp(syncStartPos + payloadSize); local
775 int64_t timeUs = fetchTimestamp(payloadSize + 4); local
940 int64_t timeUs = fetchTimestamp(offset); local
957 int64_t timeUs = -1; local
1153 int64_t timeUs = fetchTimestamp(nextScan); local
1233 int64_t timeUs = fetchTimestamp(frameSize); local
1439 int64_t timeUs = fetchTimestamp(offset); local
1631 int64_t timeUs = fetchTimestamp(offset); local
1696 int64_t timeUs = fetchTimestamp(size); local
[all...]
H A DMPEG2PSExtractor.cpp691 int64_t timeUs; local
693 timeUs = (PTS * 100) / 9;
695 timeUs = 0;
698 status_t err = mQueue->appendData(data, size, timeUs);
H A DMPEG2TSExtractor.cpp482 int64_t timeUs = mSeekSyncPoints->keyAt(index); local
483 if (timeUs > seekTimeUs) {
602 int64_t timeUs; local
603 while ((err = impl->nextBufferTime(&timeUs)) == OK) {
604 if (timeUs < syncTimeUs) {
/frameworks/av/media/libstagefright/omx/1.0/
H A DWGraphicBufferSource.cpp181 bool suspend, int64_t timeUs) {
182 return toStatus(mBase->setSuspend(suspend, timeUs));
180 setSuspend( bool suspend, int64_t timeUs) argument
/frameworks/av/media/libstagefright/omx/
H A DBWGraphicBufferSource.cpp134 bool suspend, int64_t timeUs) {
135 return Status::fromStatusT(mBase->setSuspend(suspend, timeUs));
133 setSuspend( bool suspend, int64_t timeUs) argument
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));

Completed in 334 milliseconds

123