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

123

/frameworks/base/media/java/android/media/
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;
H A DMediaExtractor.java494 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.java3678 long timeUs = getCurrentTimeUs(true, false);
3679 if (DEBUG) Log.d(TAG, "onSeekComplete at " + timeUs);
3685 listener.onSeek(timeUs);
3737 long timeUs, MediaTimeProvider.OnMediaTimeListener listener) {
3739 if (DEBUG) Log.d(TAG, "notifyAt " + timeUs);
3740 mTimes[registerListener(listener)] = timeUs;
3736 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
/frameworks/base/media/jni/
H A Dandroid_media_MediaCodec.cpp325 size_t offset, size_t size, int64_t timeUs, uint32_t flags,
328 index, offset, size, timeUs, flags, errorDetailMsg);
355 int64_t timeUs; local
358 index, &offset, &size, &timeUs, &flags, timeoutUs);
368 env->CallVoidMethod(bufferInfo, method, (jint)offset, (jint)size, timeUs, flags);
537 if (!input && buffer->meta()->findInt64("timeUs", &timestamp)) {
687 int64_t timeUs; local
691 CHECK(msg->findInt64("timeUs", &timeUs));
710 env->CallVoidMethod(obj, method, (jint)offset, (jint)size, timeUs, flag
323 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.cpp127 int64_t timeUs, MediaSource::ReadOptions::SeekMode mode) {
128 return mImpl->seekTo(timeUs, mode);
368 JNIEnv *env, jobject thiz, jlong timeUs, jint mode) {
382 extractor->seekTo(timeUs, (MediaSource::ReadOptions::SeekMode)mode);
126 seekTo( int64_t timeUs, MediaSource::ReadOptions::SeekMode mode) argument
367 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.cpp75 jobject byteBuf, jint offset, jint size, jlong timeUs, jint flags) {
121 status_t err = muxer->writeSampleData(buffer, trackIndex, timeUs, flags);
73 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/
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/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);
/frameworks/av/media/libmedia/
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);
267 int64_t timeUs = data.readInt64(); local
269 ALOGV("getTimeAtTime: time(%" PRId64 " us) and option(%d)", timeUs, option);
273 sp<IMemory> bitmap = getFrameAtTime(timeUs, option);
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);
/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)", (long long)timeUs, option);
206 VideoFrame *frame = mRetriever->getFrameAtTime(timeUs, option);
H A DStagefrightRecorder.cpp417 status_t StagefrightRecorder::setParamMaxFileDurationUs(int64_t timeUs) { argument
418 ALOGV("setParamMaxFileDurationUs: %lld us", (long long)timeUs);
421 if (timeUs <= 0) {
423 (long long)timeUs);
424 timeUs = 0; // Disable the duration limit for zero or negative values.
425 } else if (timeUs <= 100000LL) { // XXX: 100 milli-seconds
426 ALOGE("Max file duration is too short: %lld us", (long long)timeUs);
430 if (timeUs <= 15 * 1000000LL) {
431 ALOGW("Target duration (%lld us) too short to be respected", (long long)timeUs);
433 mMaxFileDurationUs = timeUs;
584 int64_t timeUs = (int64_t) (1000000.0 / fps + 0.5f); local
[all...]
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DGenericSource.cpp661 int64_t timeUs, actualTimeUs; local
664 timeUs = mAudioLastDequeueTimeUs;
666 timeUs = mVideoLastDequeueTimeUs;
668 readBuffer(trackType, timeUs, &actualTimeUs, formatChange);
670 ALOGV("timeUs %lld actualTimeUs %lld", (long long)timeUs, (long long)actualTimeUs);
758 int64_t timeUs; local
759 CHECK(msg->findInt64("timeUs", &timeUs));
762 readBuffer(type, timeUs,
924 int64_t timeUs; local
1066 selectTrack(size_t trackIndex, bool select, int64_t timeUs) argument
1084 int64_t timeUs; local
1098 doSelectTrack(size_t trackIndex, bool select, int64_t timeUs) argument
1287 int64_t timeUs; local
1443 int64_t timeUs; local
1567 updateQueuedTime(bool isAudio, int64_t timeUs) argument
[all...]
H A DHTTPLiveSource.cpp162 status_t NuPlayer::HTTPLiveSource::selectTrack(size_t trackIndex, bool select, int64_t /*timeUs*/) {
226 int64_t timeUs, baseUs, delayUs; local
228 CHECK(buffer->meta()->findInt64("timeUs", &timeUs));
229 delayUs = baseUs + timeUs - ALooper::GetNowUs();
H A DNuPlayer.cpp581 int64_t timeUs; local
584 CHECK(msg->findInt64("timeUs", &timeUs));
598 err = mSource->selectTrack(trackIndex, select, timeUs);
1852 status_t NuPlayer::selectTrack(size_t trackIndex, bool select, int64_t timeUs) { argument
1856 msg->setInt64("timeUs", timeUs);
2277 int64_t timeUs, posUs; local
2280 CHECK(buffer->meta()->findInt64("timeUs", &timeUs));
2352 int64_t timeUs, durationUs; local
2369 int64_t timeUs; local
2384 int64_t timeUs; local
[all...]
H A DNuPlayerCCDecoder.cpp216 int64_t timeUs; local
217 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs));
225 timeUs, accessUnit->data() + nal->nalOffset, nal->nalSize);
232 bool NuPlayer::CCDecoder::parseSEINalUnit(int64_t timeUs, const uint8_t *data, size_t size) { argument
280 trackAdded |= parseMPEGCCData(timeUs, br.data(), br.numBitsLeft() / 8);
303 int64_t timeUs; local
304 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs));
312 timeUs, accessUni
319 parseMPEGUserDataUnit(int64_t timeUs, const uint8_t *data, size_t size) argument
333 parseMPEGCCData(int64_t timeUs, const uint8_t *data, size_t size) argument
423 parseDTVCCPacket(int64_t timeUs, const uint8_t *data, size_t size) argument
498 display(int64_t timeUs) argument
[all...]
H A DNuPlayerDecoder.cpp138 int64_t timeUs; local
144 CHECK(msg->findInt64("timeUs", &timeUs));
147 handleAnOutputBuffer(index, offset, size, timeUs, flags);
557 int64_t timeUs,
573 buffer->meta()->setInt64("timeUs", timeUs);
588 if (timeUs < mSkipRenderingUntilMediaTimeUs) {
590 mComponentName.c_str(), (long long)timeUs);
758 CHECK(accessUnit->meta()->findInt64("timeUs",
553 handleAnOutputBuffer( size_t index, size_t offset, size_t size, int64_t timeUs, int32_t flags) argument
854 int64_t timeUs = 0; local
909 int64_t timeUs; local
[all...]
H A DNuPlayerDecoderPassThrough.cpp182 int64_t timeUs; local
184 bool smallTimestampValid = accessUnit->meta()->findInt64("timeUs", &timeUs);
185 bool bigTimestampValid = mAggregateBuffer->meta()->findInt64("timeUs", &dummy);
201 mAggregateBuffer->meta()->setInt64("timeUs", timeUs);
276 CHECK(accessUnit->meta()->findInt64("timeUs", &mediaTimeUs));
323 int64_t timeUs = 0; local
324 CHECK(buffer->meta()->findInt64("timeUs", &timeUs));
[all...]
H A DRTSPSource.cpp290 msg->setInt64("timeUs", seekTimeUs);
398 CHECK(msg->findInt64("timeUs", &seekTimeUs));
466 int64_t timeUs; local
467 CHECK(msg->findInt64("time", &timeUs));
468 mHandler->continueSeekAfterPause(timeUs);
547 accessUnit->meta()->setInt64("timeUs", nptUs);
H A DStreamingSource.cpp259 int64_t timeUs; local
260 CHECK((*accessUnit)->meta()->findInt64("timeUs", &timeUs));
261 ALOGV("dequeueAccessUnit timeUs=%lld us", timeUs);
/frameworks/av/media/libstagefright/
H A DACodec.cpp257 int64_t timeUs,
5517 int64_t timeUs; local
5522 CHECK(msg->findInt64("timestamp", &timeUs));
5529 timeUs,
5724 int64_t timeUs; local
5725 CHECK(buffer->meta()->findInt64("timeUs", &timeUs));
5772 mCodec->mComponentName.c_str(), bufferID, (long long)timeUs);
5775 mCodec->mComponentName.c_str(), bufferID, (long long)timeUs);
5783 mCodec->mBufferStats.add(timeUs, stat
5931 onOMXFillBufferDone( IOMX::buffer_id bufferID, size_t rangeOffset, size_t rangeLength, OMX_U32 flags, int64_t timeUs, int fenceFd) argument
[all...]
H A DAVIExtractor.cpp175 int64_t timeUs; local
177 mTrackIndex, mSampleIndex, &offset, &size, &isKey, &timeUs);
196 out->meta_data()->setInt64(kKeyTime, timeUs);
353 int64_t timeUs = mBaseTimeUs + (mNumSamplesRead * 1000000ll) / sampleRate; local
356 mbuf->meta_data()->setInt64(kKeyTime, timeUs);
848 int64_t timeUs; local
849 status_t err = getSampleInfo(0, 0, &offset, &size, &isKey, &timeUs);
853 err = getSampleInfo(0, 0, &offset, &size, &isKey, &timeUs);
1005 int64_t timeUs; local
1007 getSampleInfo(trackIndex, 0, &offset, &size, &isKey, &timeUs);
1053 int64_t timeUs; local
1172 getSampleIndexAtTime( size_t trackIndex, int64_t timeUs, MediaSource::ReadOptions::SeekMode mode, size_t *sampleIndex) const argument
[all...]

Completed in 204 milliseconds

123