/frameworks/av/media/libstagefright/omx/ |
H A D | FrameDropper.cpp | 46 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));
|
H A D | FrameDropper.h | 36 bool shouldDrop(int64_t timeUs);
|
/frameworks/base/media/java/android/media/ |
H A D | MediaTimeProvider.java | 29 * 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 D | MediaMetadataRetriever.java | 230 * @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...] |
/frameworks/av/media/libstagefright/include/ |
H A D | MP3Seeker.h | 31 // Given a request seek time in "*timeUs", find the byte offset closest 32 // to that position and return it in "*pos". Update "*timeUs" to reflect 34 virtual bool getOffsetForTime(int64_t *timeUs, off64_t *pos) = 0;
|
H A D | VBRISeeker.h | 34 virtual bool getOffsetForTime(int64_t *timeUs, off64_t *pos);
|
H A D | XINGSeeker.h | 32 virtual bool getOffsetForTime(int64_t *timeUs, off64_t *pos);
|
H A D | StagefrightMetadataRetriever.h | 43 virtual VideoFrame *getFrameAtTime(int64_t timeUs, int option);
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | NuPlayerCCDecoder.h | 43 void display(int64_t timeUs); 82 bool parseSEINalUnit(int64_t timeUs, const uint8_t *data, size_t size); 86 bool parseMPEGUserDataUnit(int64_t timeUs, const uint8_t *data, size_t size); 89 bool parseMPEGCCData(int64_t timeUs, const uint8_t *data, size_t size); 90 bool parseDTVCCPacket(int64_t timeUs, const uint8_t *data, size_t size);
|
H A D | NuPlayerCCDecoder.cpp | 216 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 D | NuPlayerDecoderPassThrough.cpp | 182 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 D | GenericSource.cpp | 661 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 1451 int64_t timeUs; local 1575 updateQueuedTime(bool isAudio, int64_t timeUs) argument [all...] |
/frameworks/av/media/libstagefright/ |
H A D | AudioSource.cpp | 256 int64_t timeUs; local 257 CHECK(buffer->meta_data()->findInt64(kKeyTime, &timeUs)); 258 int64_t elapsedTimeUs = timeUs - mStartTimeUs; 281 mFirstSampleTimeUs = timeUs; 283 timeUs = mFirstSampleTimeUs + (timeUs - mFirstSampleTimeUs) 285 buffer->meta_data()->setInt64(kKeyTime, timeUs); 303 int64_t timeUs = systemTime() / 1000ll; local 307 timeUs -= mRecord->latency() * 1000LL; 309 ALOGV("dataCallbackTimestamp: %" PRId64 " us", timeUs); 379 queueInputBuffer_l(MediaBuffer *buffer, int64_t timeUs) argument [all...] |
H A D | VBRISeeker.cpp | 151 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 D | MediaCodecSource.cpp | 349 int64_t timeUs; local 350 if (!response->findInt64("time-us", &timeUs)) { 351 timeUs = -1ll; 353 return timeUs; 656 int64_t timeUs = 0ll; local 661 CHECK(mbuf->meta_data()->findInt64(kKeyTime, &timeUs)); 673 timeUs += mInputBufferTimeOffsetUs; 677 mDecodingTimeQueue.push_back(timeUs); 681 mFirstSampleTimeUs = timeUs; 686 driftTimeUs = timeUs 839 int64_t timeUs; local [all...] |
H A D | OggExtractor.cpp | 83 status_t seekToTime(int64_t timeUs); 279 int64_t timeUs; 280 if (packet->meta_data()->findInt64(kKeyTime, &timeUs)) { 281 ALOGI("found time = %lld us", timeUs); 413 status_t MyOggExtractor::seekToTime(int64_t timeUs) { argument 414 timeUs -= mSeekPreRollUs; 415 if (timeUs < 0) { 416 timeUs = 0; 426 off64_t pos = timeUs * bps / 8000000ll; 439 if (timeUs < entr 614 int64_t timeUs = getTimeUsOfGranule(mCurGranulePosition); local 672 int64_t timeUs = -1; local [all...] |
/frameworks/av/media/libstagefright/omx/tests/ |
H A D | FrameDropper_test.cpp | 29 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/include/media/ |
H A D | MediaMetadataRetrieverInterface.h | 45 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/mpeg2ts/ |
H A D | ESQueue.cpp | 249 const void *data, size_t size, int64_t timeUs) { 453 info.mTimestampUs = timeUs; 458 ALOGI("size = %zu, timeUs = %.2f secs", size, timeUs / 1E6); 477 accessUnit->meta()->setInt64("timeUs", info.mTimestampUs); 547 int64_t timeUs = fetchTimestamp(syncStartPos + payloadSize); local 548 if (timeUs < 0ll) { 549 ALOGE("negative timeUs"); 552 accessUnit->meta()->setInt64("timeUs", timeUs); 248 appendData( const void *data, size_t size, int64_t timeUs) argument 610 int64_t timeUs = fetchTimestamp(payloadSize + 4); local 739 int64_t timeUs = fetchTimestamp(offset); local 755 int64_t timeUs = -1; local 900 int64_t timeUs = fetchTimestamp(nextScan); local 968 int64_t timeUs = fetchTimestamp(frameSize); local 1155 int64_t timeUs = fetchTimestamp(offset); local 1347 int64_t timeUs = fetchTimestamp(offset); local 1412 int64_t timeUs = fetchTimestamp(size); local [all...] |
H A D | AnotherPacketSource.cpp | 141 int64_t timeUs; local 143 CHECK(mLatestDequeuedMeta->findInt64("timeUs", &timeUs)); 144 if (timeUs > seg.mMaxDequeTimeUs) { 145 seg.mMaxDequeTimeUs = timeUs; 197 int64_t timeUs; local 198 CHECK(buffer->meta()->findInt64("timeUs", &timeUs)); 201 if (timeUs > seg.mMaxDequeTimeUs) { 202 seg.mMaxDequeTimeUs = timeUs; 434 nextBufferTime(int64_t *timeUs) argument 495 int64_t timeUs; local [all...] |
/frameworks/av/media/libstagefright/wifi-display/source/ |
H A D | Converter.cpp | 532 int64_t timeUs; local 533 CHECK(buffer->meta()->findInt64("timeUs", &timeUs)); 536 timeUs += copyUs; 537 buffer->meta()->setInt64("timeUs", timeUs); 578 int64_t timeUs; local 579 CHECK(buffer->meta()->findInt64("timeUs", &timeUs)); 581 partialAudioAU->meta()->setInt64("timeUs", timeU 617 int64_t timeUs = 0ll; local 658 int64_t timeUs; local 688 int64_t timeUs; local [all...] |
/frameworks/av/cmds/stagefright/ |
H A D | muxer.cpp | 180 int64_t timeUs; local 181 err = extractor->getSampleTime(&timeUs); 195 if (enableTrim && timeUs > trimStartTimeUs && 196 timeUs <= trimEndTimeUs) { 198 trimOffsetTimeUs = timeUs; 204 if (enableTrim && timeUs > trimEndTimeUs) { 211 timeUs - trimOffsetTimeUs, sampleFlags);
|
/frameworks/av/include/media/stagefright/ |
H A D | MPEG4Writer.h | 112 void setStartTimestampUs(int64_t timeUs); 126 Chunk(Track *track, int64_t timeUs, List<MediaBuffer *> samples) argument 127 : mTrack(track), mTimeStampUs(timeUs), mSamples(samples) { 197 void trackProgressStatus(size_t trackId, int64_t timeUs, status_t err = OK);
|
/frameworks/av/media/libstagefright/wifi-display/ |
H A D | MediaSender.cpp | 233 int64_t timeUs; local 235 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); 237 if (minTrackIndex < 0 || timeUs < minTimeUs) { 239 minTimeUs = timeUs; 260 int64_t timeUs; local 261 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); 262 tsPackets->meta()->setInt64("timeUs", timeUs); 496 int64_t timeUs = ALooper::GetNowUs(); local [all...] |
/frameworks/av/media/libstagefright/httplive/ |
H A D | LiveSession.cpp | 326 int64_t firstTimeUs, int64_t timeUs, int32_t discontinuitySeq) { 327 if (timeUs >= firstTimeUs) { 328 timeUs -= firstTimeUs; 330 timeUs = 0; 332 timeUs += mLastSeekTimeUs; 334 timeUs += mDiscontinuityOffsetTimesUs.valueFor(discontinuitySeq); 336 return timeUs; 388 int64_t timeUs, originalTimeUs; local 391 CHECK((*accessUnit)->meta()->findInt64("timeUs", &timeUs)); 325 calculateMediaTimeUs( int64_t firstTimeUs, int64_t timeUs, int32_t discontinuitySeq) argument 458 int64_t timeUs = calculateMediaTimeUs(firstTimeUs, mdTime.mTimeUs, mdTime.mSeq); local 521 seekTo(int64_t timeUs) argument 1216 resumeFetcher( const AString &uri, uint32_t streamMask, int64_t timeUs, bool newUri) argument 1443 int64_t timeUs; local 1521 changeConfiguration( int64_t timeUs, ssize_t bandwidthIndex, bool pickTrack) argument 1652 int64_t timeUs; local 1765 int64_t timeUs; local [all...] |