Home
last modified time | relevance | path

Searched refs:presentationTimeUs (Results 1 – 25 of 48) sorted by relevance

12

/cts/tests/tests/media/src/android/media/cts/
DCodecState.java393 mMediaTimeProvider.getRealTimeUsForMediaTime(info.presentationTimeUs); in drainOutputBuffer()
406 info.presentationTimeUs*1000); in drainOutputBuffer()
410 mPresentationTimeUs = info.presentationTimeUs; in drainOutputBuffer()
427 mPresentationTimeUs = info.presentationTimeUs; in drainOutputBuffer()
443 public void onFrameRendered(MediaCodec codec, long presentationTimeUs, long nanoTime) { in onFrameRendered() argument
447 if (presentationTimeUs == TUNNELING_EOS_PRESENTATION_TIME_US) { in onFrameRendered()
450 mPresentationTimeUs = presentationTimeUs; in onFrameRendered()
452 mRenderedVideoFrameTimestampList.add(presentationTimeUs); in onFrameRendered()
DNdkMediaCodec.java82 long presentationTimeUs, in AMediaCodecQueueInputBuffer() argument
198 info.presentationTimeUs = ret[3]; in dequeueOutputBuffer()
244 long presentationTimeUs, in queueInputBuffer() argument
247 AMediaCodecQueueInputBuffer(mNdkMediaCodec, index, offset, size, presentationTimeUs, flags); in queueInputBuffer()
DAdaptivePlaybackTest.java930 public void onFrameRendered(MediaCodec codec, long presentationTimeUs, long nanoTime) {
932 if (!mRenderedTimeStamps.remove(presentationTimeUs)) {
933 warn("invalid (rendered) timestamp " + presentationTimeUs + ", rendered " +
1030 " @" + info.presentationTimeUs + "}");
1036 mRenderedTimeStamps.add(info.presentationTimeUs);
1037 if (!mTimeStamps.remove(info.presentationTimeUs)) {
1038 warn("invalid (decoded) timestamp " + info.presentationTimeUs + ", queued " +
1070 … assertTrue("Codec " + getName() + " cannot find formatchange " + info.presentationTimeUs +
1072 mFirstQueueTimestamps.remove(info.presentationTimeUs));
1078 info.presentationTimeUs, info.flags, sum);
[all …]
DSdkMediaCodec.java127 long presentationTimeUs, in queueInputBuffer() argument
129 mCodec.queueInputBuffer(index, offset, size, presentationTimeUs, flags); in queueInputBuffer()
DDecoderTestAacFormat.java169 long presentationTimeUs = 0; in decodeUpdateFormat() local
177 presentationTimeUs = extractor.getSampleTime(); in decodeUpdateFormat()
183 presentationTimeUs, in decodeUpdateFormat()
DMediaCodecWrapper.java67 long presentationTimeUs, in queueInputBuffer() argument
DMediaMuxerTest.java781 bufferInfo.presentationTimeUs = extractor.getSampleTime(); in cloneMediaUsingMuxer()
792 "PresentationTimeUs:" + bufferInfo.presentationTimeUs + in cloneMediaUsingMuxer()
1009 bufferInfo.presentationTimeUs = extractor.getSampleTime(); in simulateVideoFramesDropIssuesAndMux()
1025 bufferInfo.presentationTimeUs += OFFSET_TIME_US; in simulateVideoFramesDropIssuesAndMux()
1042 "PresentationTimeUs:" + bufferInfo.presentationTimeUs + in simulateVideoFramesDropIssuesAndMux()
1192 bufferInfo.presentationTimeUs = extractor.getSampleTime(); in cloneMediaWithSamplesDropAndStartOffsets()
1197 bufferInfo.presentationTimeUs + " Flags:" + bufferInfo.flags + in cloneMediaWithSamplesDropAndStartOffsets()
1207 bufferInfo.presentationTimeUs += videoStartOffsetUs; in cloneMediaWithSamplesDropAndStartOffsets()
1217 bufferInfo.presentationTimeUs += audioStartOffsetUs; in cloneMediaWithSamplesDropAndStartOffsets()
1225 " PresentationTimeUs:" + bufferInfo.presentationTimeUs + in cloneMediaWithSamplesDropAndStartOffsets()
DDecoderTestAacDrc.java633 long presentationTimeUs = 0; in decodeToMemory() local
647 presentationTimeUs = extractor.getSampleTime(); in decodeToMemory()
653 presentationTimeUs, in decodeToMemory()
670 timestamps.add(info.presentationTimeUs); in decodeToMemory()
DExtractDecodeEditEncodeMuxTest.java925 + videoDecoderOutputBufferInfo.presentationTimeUs); in doExtractDecodeEditEncodeMux()
936 videoDecoderOutputBufferInfo.presentationTimeUs * 1000); in doExtractDecodeEditEncodeMux()
994 + audioDecoderOutputBufferInfo.presentationTimeUs); in doExtractDecodeEditEncodeMux()
1022 long presentationTime = audioDecoderOutputBufferInfo.presentationTimeUs; in doExtractDecodeEditEncodeMux()
1098 + videoEncoderOutputBufferInfo.presentationTimeUs); in doExtractDecodeEditEncodeMux()
1156 + audioEncoderOutputBufferInfo.presentationTimeUs); in doExtractDecodeEditEncodeMux()
DVideoEncoderTest.java101 savedInfo.set(0, savedBuffer.position(), info.presentationTimeUs, info.flags); in addBuffer()
140 ix, 0, info.size, info.presentationTimeUs, info.flags); in play()
382 + info.presentationTimeUs); in fillDecoderInputBuffer()
384 ix, 0, mBuffer.limit(), info.presentationTimeUs, 0); in fillDecoderInputBuffer()
395 + ", ts=" + info.presentationTimeUs + ")"); in emptyEncoderOutputBuffer()
583 + ", ts=" + info.presentationTimeUs + ")"); in onOutputBufferAvailableLocked()
633 + ", ts=" + decBuffer.second.presentationTimeUs + ")"); in renderDecodedBuffer()
635 encBuffer, 0, mEncInputBufferSize, decBuffer.second.presentationTimeUs, in renderDecodedBuffer()
768 Log.d(TAG, "encoding frame at " + info.presentationTimeUs * 1000); in processLoop()
770 mEncSurface.setPresentationTime(info.presentationTimeUs * 1000); in processLoop()
[all …]
DDecoderTest.java467 info.presentationTimeUs > lastPresentationTimeUsFromDecoder); in testBFrames()
469 lastPresentationTimeUsFromDecoder = info.presentationTimeUs; in testBFrames()
2182 long presentationTimeUs = 0;
2196 presentationTimeUs = extractor.getSampleTime();
2202 presentationTimeUs,
2219 timestamps.add(info.presentationTimeUs);
3120 long presentationTimeUs = extractor.getSampleTime();
3135 -1, presentationTimeUs);
3139 timestamps.add(presentationTimeUs);
3150 presentationTimeUs,
[all …]
DDecodeEditEncodeTest.java341 output.addChunk(encodedData, info.flags, info.presentationTimeUs); in generateVideoData()
547 outputData.addChunk(encodedData, info.flags, info.presentationTimeUs); in editVideoData()
598 inputSurface.setPresentationTime(info.presentationTimeUs * 1000); in editVideoData()
745 info.presentationTimeUs); in checkVideoData()
/cts/tests/media/jni/
DNativeExtractorTest.cpp48 refSample->presentationTimeUs == testSample->presentationTimeUs; in isSampleInfoIdentical()
54 abs(refSample->presentationTimeUs - testSample->presentationTimeUs) <= 1 && in isSampleInfoValidAndIdentical()
55 (int)refSample->flags >= 0 && refSample->size >= 0 && refSample->presentationTimeUs >= 0; in isSampleInfoValidAndIdentical()
62 info->presentationTimeUs = AMediaExtractor_getSampleTime(extractor); in setSampleInfo()
100 refSampleInfo.presentationTimeUs, testSampleInfo.presentationTimeUs); in isMediaSimilar()
155 refSampleInfo.presentationTimeUs); in isMediaSimilar()
371 int64_t pts = currInfo.presentationTimeUs; in generateSeekTestArgs()
379 int64_t ptsMinus = prevInfo.presentationTimeUs; in generateSeekTestArgs()
390 int64_t ptsPlus = nextInfo.presentationTimeUs; in generateSeekTestArgs()
435 ALOGE(" ts exp/got: %" PRId64 " / %" PRId64 "", arg->mExpected.presentationTimeUs, in checkSeekPoints()
[all …]
DNativeMuxerTest.cpp201 bufferInfo->presentationTimeUs = AMediaExtractor_getSampleTime(extractor); in splitMediaToMuxerParameters()
236 ALOGV("Track: %d Timestamp: %" PRId64 "", trackID, info->presentationTimeUs); in insertSampleData()
273 ALOGV("Track: %d Timestamp: %" PRId64 "", trackID, info->presentationTimeUs); in writeAFewSamplesData()
301 info->presentationTimeUs); in writeAFewSamplesDataFromTime()
302 if (info->presentationTimeUs < fromTime[trackID]) { in writeAFewSamplesDataFromTime()
425 info->presentationTimeUs); in combineMedias()
475 if (abs(thisInfo->presentationTimeUs - thatInfo->presentationTimeUs) > in isSubsetOf()
478 (long long)thisInfo->presentationTimeUs, in isSubsetOf()
479 (long long)thatInfo->presentationTimeUs); in isSubsetOf()
512 info->presentationTimeUs += tsOffsetUs; in offsetTimeStamp()
DNativeCodecEncoderSurfaceTest.cpp271 bufferInfo->presentationTimeUs, bufferInfo->flags); in dequeueDecoderOutput()
297 mOutputBuff->saveOutPTS(info->presentationTimeUs); in dequeueEncoderOutput()
302 info->presentationTimeUs, info->flags); in dequeueEncoderOutput()
/cts/tests/media/src/android/mediav2/cts/
DAdaptivePlaybackTest.java123 mOutputBuff.saveOutPTS(info.presentationTimeUs); in dequeueOutput()
135 bufferInfo.presentationTimeUs = 0; in createInputList()
154 bufferInfo.presentationTimeUs = ptsOffset + mExtractor.getSampleTime(); in createInputList()
155 mMaxPts = Math.max(mMaxPts, bufferInfo.presentationTimeUs); in createInputList()
DExtractorTest.java211 refSample.presentationTimeUs == testSample.presentationTimeUs; in isSampleInfoIdentical()
217 Math.abs(refSample.presentationTimeUs - testSample.presentationTimeUs) <= 1 && in isSampleInfoValidAndIdentical()
218 refSample.flags >= 0 && refSample.size >= 0 && refSample.presentationTimeUs >= 0; in isSampleInfoValidAndIdentical()
313 Log.d(LOG_TAG, " ts exp/got: " + refSampleInfo.presentationTimeUs + in isMediaSimilar()
314 '/' + testSampleInfo.presentationTimeUs); in isMediaSimilar()
390 " ts: " + refSampleInfo.presentationTimeUs); in isMediaSimilar()
455 assertTrue(sampleInfo.presentationTimeUs != -1); in readAllData()
459 .putLong(sampleInfo.presentationTimeUs); in readAllData()
569 Log.d(LOG_TAG, " ts exp/got: " + refSampleInfo.presentationTimeUs + in isSeekOk()
570 '/' + testSampleInfo.presentationTimeUs); in isSeekOk()
[all …]
DMuxerUnitTest.java77 static private void insertPerFrameSubtitles(MediaMuxer muxer, long presentationTimeUs, in insertPerFrameSubtitles() argument
85 metaInfo.presentationTimeUs = presentationTimeUs; in insertPerFrameSubtitles()
541 metaInfo.presentationTimeUs = 0; in testIfWriteSampleDataRejectsNullByteBuffer()
598 metaInfo.presentationTimeUs = 0; in testIfWriteSampleDataRejectsInvalidBuffInfo()
610 metaInfo.presentationTimeUs = 0; in testIfWriteSampleDataRejectsInvalidBuffInfo()
622 metaInfo.presentationTimeUs = 0; in testIfWriteSampleDataRejectsInvalidBuffInfo()
635 metaInfo.presentationTimeUs = 0; in testIfWriteSampleDataRejectsInvalidBuffInfo()
DEncodeDecodeAccuracyTest.java224 " size: " + info.size + " timestamp: " + info.presentationTimeUs); in dequeueEncoderOutput()
233 copy.set(mOutputBuffEnc.getOutStreamSize(), info.size, info.presentationTimeUs, in dequeueEncoderOutput()
246 mOutputBuffEnc.saveOutPTS(info.presentationTimeUs); in dequeueEncoderOutput()
398 info.size + " timestamp: " + info.presentationTimeUs); in dequeueOutput()
401 mOutputBuff.saveOutPTS(info.presentationTimeUs); in dequeueOutput()
/cts/tests/mediapc/src/android/mediapc/cts/
DPlaybackFrameDrop.java78 bufferInfo.presentationTimeUs = 0; in createInputList()
99 bufferInfo.presentationTimeUs = ptsOffset + mExtractor.getSampleTime(); in createInputList()
100 mInputMaxPtsUs = Math.max(mInputMaxPtsUs, bufferInfo.presentationTimeUs); in createInputList()
172 long pts = info.presentationTimeUs; in enqueueInput()
/cts/tests/video/src/android/video/cts/
DCodecPerformanceTestBase.java213 bufferInfo.presentationTimeUs = extractor.getSampleTime(); in setUpDecoderInput()
214 maxPTS = Math.max(maxPTS, bufferInfo.presentationTimeUs); in setUpDecoderInput()
235 ptsOffset + tmpBufferInfo.presentationTimeUs, in setUpDecoderInput()
237 maxPTS = Math.max(maxPTS, bufferInfo.presentationTimeUs); in setUpDecoderInput()
328 mDecoder.queueInputBuffer(bufferIndex, 0, info.size, info.presentationTimeUs, info.flags); in enqueueDecoderInput()
/cts/tests/tests/graphics/jni/
DMediaTestHelpers.cpp148 auto presentationTimeUs = AMediaExtractor_getSampleTime(mExtractor); in processOneInputBuffer() local
150 presentationTimeUs, 0)); in processOneInputBuffer()
/cts/tests/tests/media/libmediandkjni/
Dnative-mediadrm-jni.cpp423 int64_t* presentationTimeUs, bool* eosReached) { in fillDecoder() argument
437 *presentationTimeUs = AMediaExtractor_getSampleTime(extractor); in fillDecoder()
445 *presentationTimeUs, in fillDecoder()
451 *presentationTimeUs, in fillDecoder()
458 static bool drainDecoder(AMediaCodec* codec, int64_t presentationTimeUs, in drainDecoder() argument
469 *startTimeNano = getSystemNanoTime() - (presentationTimeUs * 1000); in drainDecoder()
471 int64_t delay = (*startTimeNano + presentationTimeUs * 1000) - in drainDecoder()
Dnative-media-jni.cpp225 (long long)bufferInfo->presentationTimeUs, bufferInfo->flags); in OnOutputAvailableCB()
565 int64_t presentationTimeUs = AMediaExtractor_getSampleTime(ex); in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative() local
567 AMediaCodec_queueInputBuffer(codec[t], bufidx, 0, sampleSize, presentationTimeUs, in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative()
729 int64_t presentationTimeUs = AMediaExtractor_getSampleTime(ex); in Java_android_media_cts_NativeDecoderTest_testPlaybackNative() local
731 AMediaCodec_queueInputBuffer(codec, bufidx, 0, sampleSize, presentationTimeUs, in Java_android_media_cts_NativeDecoderTest_testPlaybackNative()
812 info.presentationTimeUs = AMediaExtractor_getSampleTime(ex); in Java_android_media_cts_NativeDecoderTest_testMuxerNative()
1253 ret[3] = info.presentationTimeUs; in Java_android_media_cts_NdkMediaCodec_AMediaCodecDequeueOutputBuffer()
1285 jlong presentationTimeUs, in Java_android_media_cts_NdkMediaCodec_AMediaCodecQueueInputBuffer() argument
1293 presentationTimeUs, in Java_android_media_cts_NdkMediaCodec_AMediaCodecQueueInputBuffer()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DSoundPlayerObject.java157 long presentationTimeUs = 0; in run() local
163 presentationTimeUs = mExtractor.getSampleTime(); in run()
166 inputEosSignalled ? 0 : sampleSize, presentationTimeUs, in run()

12