/frameworks/av/media/libstagefright/ |
H A D | MPEG4Writer.cpp | 366 void trackProgressStatus(int64_t timeUs, status_t err = OK); 1584 void MPEG4Writer::setStartTimestampUs(int64_t timeUs) { argument 1585 ALOGI("setStartTimestampUs: %" PRId64, timeUs); 1586 CHECK_GE(timeUs, 0ll); 1588 if (mStartTimestampUs < 0 || mStartTimestampUs > timeUs) { 1589 mStartTimestampUs = timeUs; 1879 int64_t timeUs; local 1880 if (params && params->findInt64(kKeyTrackTimeStatus, &timeUs)) { 1881 ALOGV("Receive request to track progress status for every %" PRId64 " us", timeUs); 1882 mTrackEveryTimeDurationUs = timeUs; 2516 int64_t timeUs = (driftTimeUs + prevDriftTimeUs) >> 1; local 3094 trackProgressStatus(int64_t timeUs, status_t err) argument 3105 trackProgressStatus( size_t trackId, int64_t timeUs, status_t err) argument [all...] |
H A D | MediaCodec.cpp | 1016 msg->setInt64("timeUs", presentationTimeUs); 1050 msg->setInt64("timeUs", presentationTimeUs); 1094 CHECK(response->findInt64("timeUs", presentationTimeUs)); 1372 int64_t timeUs; local 1373 CHECK(buffer->meta()->findInt64("timeUs", &timeUs)); 1375 response->setInt64("timeUs", timeUs); 2611 msg->setInt64("timeUs", 0ll); 2714 int64_t timeUs; local 3030 int64_t timeUs; local [all...] |
H A D | MediaCodecSource.cpp | 348 int64_t timeUs; local 349 if (!response->findInt64("time-us", &timeUs)) { 350 timeUs = -1ll; 352 return timeUs; 657 int64_t timeUs = 0ll; local 662 CHECK(mbuf->meta_data()->findInt64(kKeyTime, &timeUs)); 674 timeUs += mInputBufferTimeOffsetUs; 678 mDecodingTimeQueue.push_back(timeUs); 682 mFirstSampleTimeUs = timeUs; 687 driftTimeUs = timeUs 852 int64_t timeUs; local [all...] |
H A D | MediaMuxer.cpp | 150 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 D | MediaSync.cpp | 280 double timeUs = numPendingFrames * 1000000.0 local 282 if (timeUs > (double)INT64_MAX) { 288 *outTimeUs = (int64_t)timeUs;
|
H A D | MidiExtractor.cpp | 240 int64_t timeUs = 1000ll * timeMs; local 241 buffer->meta_data()->setInt64(kKeyTime, timeUs);
|
H A D | NuMediaExtractor.cpp | 439 int64_t timeUs, MediaSource::ReadOptions::SeekMode mode) { 442 ssize_t minIndex = fetchTrackSamples(timeUs, mode); 438 seekTo( int64_t timeUs, MediaSource::ReadOptions::SeekMode mode) argument
|
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...] |
H A D | StagefrightMetadataRetriever.cpp | 245 int64_t timeUs; local 338 &timeUs, 355 done = (targetTimeUs < 0ll) || (timeUs >= targetTimeUs); 356 ALOGV("Received an output buffer, timeUs=%lld", (long long)timeUs); 380 if (timeUs != thumbNailTime) { 384 ALOGV("thumbNailTime = %lld us, timeUs = %lld us, mime = %s", 385 (long long)thumbNailTime, (long long)timeUs, mime.c_str()); 473 int64_t timeUs, int option) { 475 ALOGV("getFrameAtTime: %" PRId64 " us option: %d", timeUs, optio 472 getFrameAtTime( int64_t timeUs, int option) argument [all...] |
H A D | VBRISeeker.cpp | 165 bool VBRISeeker::getOffsetForTime(int64_t *timeUs, off64_t *pos) { argument 175 while (segmentIndex < mSegments.size() && nowUs < *timeUs) { 180 ALOGV("getOffsetForTime %lld us => 0x%016llx", (long long)*timeUs, (long long)*pos); 182 *timeUs = nowUs;
|
H A D | XINGSeeker.cpp | 46 bool XINGSeeker::getOffsetForTime(int64_t *timeUs, off64_t *pos) { argument 51 float percent = (float)(*timeUs) * 100 / mDurationUs;
|
/frameworks/av/media/libstagefright/codecs/aacenc/ |
H A D | AACEncoder.cpp | 258 int64_t timeUs; local 259 if (mInputBuffer->meta_data()->findInt64(kKeyDriftTime, &timeUs)) { 260 wallClockTimeUs = timeUs; 262 if (mInputBuffer->meta_data()->findInt64(kKeyAnchorTime, &timeUs)) { 263 mAnchorTimeUs = timeUs;
|
/frameworks/av/media/libstagefright/filters/ |
H A D | MediaFilter.cpp | 237 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 D | ANetworkSession.cpp | 103 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 D | MPEG4Writer.h | 127 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 D | LiveSession.cpp | 321 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 D | PlaylistFetcher.cpp | 988 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 D | MPEG4Writer.h | 127 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 D | MatroskaExtractor.cpp | 615 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 D | ATSParser.cpp | 272 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 D | AnotherPacketSource.cpp | 142 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 D | ESQueue.cpp | 275 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 D | MPEG2PSExtractor.cpp | 691 int64_t timeUs; local 693 timeUs = (PTS * 100) / 9; 695 timeUs = 0; 698 status_t err = mQueue->appendData(data, size, timeUs);
|
H A D | MPEG2TSExtractor.cpp | 482 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 D | WGraphicBufferSource.cpp | 181 bool suspend, int64_t timeUs) { 182 return toStatus(mBase->setSuspend(suspend, timeUs)); 180 setSuspend( bool suspend, int64_t timeUs) argument
|