/frameworks/av/media/libstagefright/bqhelper/ |
H A D | FrameDropper.cpp | 50 bool FrameDropper::shouldDrop(int64_t timeUs) { argument 56 mDesiredMinTimeUs = timeUs + mMinIntervalUs; 58 (long long)timeUs, (long long)mDesiredMinTimeUs); 62 if (timeUs < (mDesiredMinTimeUs - kMaxJitterUs)) { 64 (long long)timeUs, (long long)mDesiredMinTimeUs, 65 (long long)(mDesiredMinTimeUs - timeUs)); 69 int64_t n = (timeUs - mDesiredMinTimeUs + kMaxJitterUs) / mMinIntervalUs; 72 (long long)timeUs, (long long)mDesiredMinTimeUs, 73 (long long)(mDesiredMinTimeUs - timeUs));
|
/frameworks/av/packages/MediaComponents/src/com/android/media/subtitle/ |
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 71 * @param timeUs current media time 73 void onTimedEvent(long timeUs); argument 78 * @param timeUs current media time 80 void onSeek(long timeUs); argument
|
/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 | 238 * @param timeUs The time position where the frame will be retrieved. 241 * When this happens, a frame nearby will be returned. If timeUs is 247 * that has a timestamp earlier than or the same as timeUs. Use 249 * that has a timestamp later than or the same as timeUs. Use 251 * that has a timestamp closest to or the same as timeUs. Use 253 * or may not be a sync frame but is closest to or the same as timeUs. 255 * to the other options if there is no sync frame located at timeUs. 260 public Bitmap getFrameAtTime(long timeUs, @Option int option) { argument 266 return _getFrameAtTime(timeUs, option, -1 /*dst_width*/, -1 /*dst_height*/); 278 * @param timeUs Th 304 getScaledFrameAtTime( long timeUs, @Option int option, int dstWidth, int dstHeight) argument 344 getFrameAtTime(long timeUs) argument 370 _getFrameAtTime(long timeUs, int option, int width, int height) argument [all...] |
/frameworks/support/media/src/main/java/androidx/media/subtitle/ |
H A D | MediaTimeProvider.java | 37 * registers the listener to get seek and stop notifications. If timeUs is 41 * is larger than or equal to timeUs. 43 * @param timeUs presentation time to get timed event callback at (or 46 void notifyAt(long timeUs, OnMediaTimeListener listener); argument 82 * @param timeUs current media time 84 void onTimedEvent(long timeUs); argument 89 * @param timeUs current media time 91 void onSeek(long timeUs); argument
|
/frameworks/av/media/extractors/mp3/ |
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 | 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;
|
/frameworks/av/media/libmediaplayer2/nuplayer2/ |
H A D | NuPlayer2CCDecoder.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 | NuPlayer2CCDecoder.cpp | 217 int64_t timeUs; local 218 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); 226 timeUs, accessUnit->data() + nal->nalOffset, nal->nalSize); 233 bool NuPlayer2::CCDecoder::parseSEINalUnit(int64_t timeUs, const uint8_t *data, size_t size) { argument 287 trackAdded |= parseMPEGCCData(timeUs, br.data(), br.numBitsLeft() / 8); 310 int64_t timeUs; local 311 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); 319 timeUs, accessUni 326 parseMPEGUserDataUnit(int64_t timeUs, const uint8_t *data, size_t size) argument 340 parseMPEGCCData(int64_t timeUs, const uint8_t *data, size_t size) argument 430 parseDTVCCPacket(int64_t timeUs, const uint8_t *data, size_t size) argument 505 display(int64_t timeUs) argument [all...] |
H A D | NuPlayer2DecoderPassThrough.cpp | 177 int64_t timeUs; local 179 bool smallTimestampValid = accessUnit->meta()->findInt64("timeUs", &timeUs); 180 bool bigTimestampValid = mAggregateBuffer->meta()->findInt64("timeUs", &dummy); 196 mAggregateBuffer->meta()->setInt64("timeUs", timeUs); 271 CHECK(accessUnit->meta()->findInt64("timeUs", &mediaTimeUs)); 320 int64_t timeUs = 0; local 321 CHECK(buffer->meta()->findInt64("timeUs", &timeUs)); [all...] |
H A D | GenericSource2.cpp | 613 int64_t timeUs, actualTimeUs; local 616 timeUs = mAudioLastDequeueTimeUs; 618 timeUs = mVideoLastDequeueTimeUs; 620 readBuffer(trackType, timeUs, MediaPlayer2SeekMode::SEEK_PREVIOUS_SYNC /* mode */, 624 ALOGV("timeUs %lld actualTimeUs %lld", (long long)timeUs, (long long)actualTimeUs); 675 int64_t timeUs; local 676 CHECK(msg->findInt64("timeUs", &timeUs)); 679 readBuffer(type, timeUs, MediaPlayer2SeekMod 860 int64_t timeUs; local 973 selectTrack(size_t trackIndex, bool select, int64_t timeUs) argument 1179 int64_t timeUs; local 1337 int64_t timeUs = extractor->getSampleTime(); local [all...] |
/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 | 218 int64_t timeUs; local 219 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); 227 timeUs, accessUnit->data() + nal->nalOffset, nal->nalSize); 234 bool NuPlayer::CCDecoder::parseSEINalUnit(int64_t timeUs, const uint8_t *data, size_t size) { argument 288 trackAdded |= parseMPEGCCData(timeUs, br.data(), br.numBitsLeft() / 8); 311 int64_t timeUs; local 312 CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); 320 timeUs, accessUni 327 parseMPEGUserDataUnit(int64_t timeUs, const uint8_t *data, size_t size) argument 341 parseMPEGCCData(int64_t timeUs, const uint8_t *data, size_t size) argument 431 parseDTVCCPacket(int64_t timeUs, const uint8_t *data, size_t size) argument 506 display(int64_t timeUs) argument [all...] |
H A D | NuPlayerDecoderPassThrough.cpp | 178 int64_t timeUs; local 180 bool smallTimestampValid = accessUnit->meta()->findInt64("timeUs", &timeUs); 181 bool bigTimestampValid = mAggregateBuffer->meta()->findInt64("timeUs", &dummy); 197 mAggregateBuffer->meta()->setInt64("timeUs", timeUs); 272 CHECK(accessUnit->meta()->findInt64("timeUs", &mediaTimeUs)); 321 int64_t timeUs = 0; local 322 CHECK(buffer->meta()->findInt64("timeUs", &timeUs)); [all...] |
/frameworks/av/media/libstagefright/bqhelper/include/media/stagefright/bqhelper/ |
H A D | FrameDropper.h | 36 bool shouldDrop(int64_t timeUs);
|
/frameworks/av/media/libstagefright/ |
H A D | AudioSource.cpp | 267 int64_t timeUs; local 268 CHECK(buffer->meta_data().findInt64(kKeyTime, &timeUs)); 269 int64_t elapsedTimeUs = timeUs - mStartTimeUs; 291 timeUs *= (int64_t)mSampleRate / (int64_t)mOutSampleRate; 292 buffer->meta_data().setInt64(kKeyTime, timeUs); 325 int64_t timeUs, position, timeNs; local 334 timeUs = timeNs / 1000 - 340 timeUs = systemTime() / 1000ll; 344 timeUs -= mRecord->latency() * 1000LL; 347 ALOGV("dataCallbackTimestamp: %" PRId64 " us", timeUs); 427 queueInputBuffer_l(MediaBuffer *buffer, int64_t timeUs) argument [all...] |
H A D | MediaCodecSource.cpp | 373 int64_t timeUs; local 374 if (!response->findInt64("time-us", &timeUs)) { 375 timeUs = -1ll; 377 return timeUs; 690 int64_t timeUs = 0ll; local 695 CHECK(mbuf->meta_data().findInt64(kKeyTime, &timeUs)); 707 timeUs += mInputBufferTimeOffsetUs; 711 mDecodingTimeQueue.push_back(timeUs); 715 mFirstSampleTimeUs = timeUs; 720 driftTimeUs = timeUs 886 int64_t timeUs; local [all...] |
/frameworks/av/media/libstagefright/bqhelper/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/media/libstagefright/mpeg2ts/ |
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; 474 int64_t timeUs = 0; local 489 nextBufferTime(int64_t *timeUs) argument 550 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 705 int64_t timeUs = fetchTimestamp(syncStartPos + payloadSize); local 778 int64_t timeUs = fetchTimestamp(payloadSize + 4); local 949 int64_t timeUs = fetchTimestamp(offset); local 966 int64_t timeUs = -1; local 1162 int64_t timeUs = fetchTimestamp(nextScan); local 1247 int64_t timeUs = fetchTimestamp(frameSize); local 1453 int64_t timeUs = fetchTimestamp(offset); local 1650 int64_t timeUs = fetchTimestamp(offset); local 1715 int64_t timeUs = fetchTimestamp(size); local [all...] |
/frameworks/av/cmds/stagefright/ |
H A D | muxer.cpp | 179 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/media/libmedia/omx/1.0/ |
H A D | WGraphicBufferSource.cpp | 42 bool suspend, int64_t timeUs) { 43 return toBinderStatus(mBase->setSuspend(suspend, timeUs)); 41 setSuspend( bool suspend, int64_t timeUs) argument
|
/frameworks/av/media/libstagefright/include/ |
H A D | StagefrightMetadataRetriever.h | 46 int64_t timeUs, int option, int colorFormat, bool metaOnly); 73 int64_t timeUs, int numFrames, int option, int colorFormat, bool metaOnly,
|