Home
last modified time | relevance | path

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

123

/cts/tests/tests/media/decoder/src/android/media/decoder/cts/
DDecoderRenderTest.java141 (index, sampleSize, presentationTimeUs, flags) -> { in onFrameRendered_indicatesAllFramesRendered() argument
146 videoCodec.queueInputBuffer(index, 0, sampleSize, presentationTimeUs, flags); in onFrameRendered_indicatesAllFramesRendered()
168 (info.presentationTimeUs - data.previousPresentationTimeUs) * 1000L; in onFrameRendered_indicatesAllFramesRendered()
170 assertTrue(info.presentationTimeUs > data.previousPresentationTimeUs); in onFrameRendered_indicatesAllFramesRendered()
174 data.previousPresentationTimeUs = info.presentationTimeUs; in onFrameRendered_indicatesAllFramesRendered()
175 releasedFrames.add(info.presentationTimeUs); in onFrameRendered_indicatesAllFramesRendered()
180 (codec, presentationTimeUs, nanoTime) -> { in onFrameRendered_indicatesAllFramesRendered() argument
181 renderedFrames.add(presentationTimeUs); in onFrameRendered_indicatesAllFramesRendered()
278 (index, sampleSize, presentationTimeUs, flags) -> { in onFrameRendered_whenInvalidRenderTime_indicatesAllFramesRendered() argument
283 videoCodec.queueInputBuffer(index, 0, sampleSize, presentationTimeUs, flags); in onFrameRendered_whenInvalidRenderTime_indicatesAllFramesRendered()
[all …]
DAdaptivePlaybackTest.java951 public void onFrameRendered(MediaCodec codec, long presentationTimeUs, long nanoTime) {
953 if (!mRenderedTimeStamps.remove(presentationTimeUs)) {
954 warn("invalid (rendered) timestamp " + presentationTimeUs + ", rendered " +
1068 " @" + info.presentationTimeUs + "}");
1074 mRenderedTimeStamps.add(info.presentationTimeUs);
1075 if (!mTimeStamps.remove(info.presentationTimeUs)) {
1076 warn("invalid (decoded) timestamp " + info.presentationTimeUs + ", queued " +
1108 … assertTrue("Codec " + getName() + " cannot find formatchange " + info.presentationTimeUs +
1110 mFirstQueueTimestamps.remove(info.presentationTimeUs));
1116 info.presentationTimeUs, info.flags, sum);
[all …]
DDecodeOnlyTest.java287 receivedPresentationTimes.add(info.presentationTimeUs); in testNonTunneledTrickPlay()
420 videoCodec.setOnFrameRenderedListener((codec, presentationTimeUs, nanoTime) -> { in testTunneledTrickPlay() argument
421 if (presentationTimeUs == EOS_TIMESTAMP_TUNNEL_MODE) { in testTunneledTrickPlay()
424 renderedPresentationTimes.add(presentationTimeUs); in testTunneledTrickPlay()
555 videoCodec.setOnFrameRenderedListener((codec, presentationTimeUs, nanoTime) -> { in testTunneledPerfectSeek() argument
556 renderedPresentationTimes.add(presentationTimeUs); in testTunneledPerfectSeek()
557 if (presentationTimeUs >= seekTime.get() + 500 * 1000) { in testTunneledPerfectSeek()
632 videoCodec.setOnFrameRenderedListener((codec, presentationTimeUs, nanoTime) -> { in testTunneledPerfectSeek() argument
633 if (presentationTimeUs == EOS_TIMESTAMP_TUNNEL_MODE) { in testTunneledPerfectSeek()
636 renderedPresentationTimes.add(presentationTimeUs); in testTunneledPerfectSeek()
[all …]
DDecoderTestAacFormat.java216 long presentationTimeUs = 0; in decodeUpdateFormat() local
224 presentationTimeUs = extractor.getSampleTime(); in decodeUpdateFormat()
230 presentationTimeUs, in decodeUpdateFormat()
/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()
159 refSampleInfo.presentationTimeUs); in isMediaSimilar()
375 int64_t pts = currInfo.presentationTimeUs; in generateSeekTestArgs()
383 int64_t ptsMinus = prevInfo.presentationTimeUs; in generateSeekTestArgs()
394 int64_t ptsPlus = nextInfo.presentationTimeUs; in generateSeekTestArgs()
439 ALOGE(" ts exp/got: %" PRId64 " / %" PRId64 "", arg->mExpected.presentationTimeUs, in checkSeekPoints()
[all …]
/cts/tests/media/common/src/android/mediav2/common/cts/
DCodecEncoderBlockModelTestBase.java142 long infoPts = info.presentationTimeUs; in dequeueOutput()
153 + info.size + " timestamp: " + info.presentationTimeUs); in dequeueOutput()
163 copy.set(mOutputBuff.getOutStreamSize(), info.size, info.presentationTimeUs, in dequeueOutput()
182 mOutputBuff.saveOutPTS(info.presentationTimeUs); in dequeueOutput()
DCodecDecoderMultiAccessUnitTestBase.java141 mOutputBuff.saveInPTS(info.presentationTimeUs); in enqueueInput()
146 + " pts: " + info.presentationTimeUs + " flags: " + info.flags); in enqueueInput()
181 + info.presentationTimeUs); in dequeueOutputs()
184 mOutputBuff.saveOutPTS(info.presentationTimeUs); in dequeueOutputs()
DCodecDecoderBlockModelMultiAccessUnitTestBase.java134 mOutputBuff.saveInPTS(info.presentationTimeUs); in enqueueInput()
139 + " pts: " + info.presentationTimeUs + " flags: " + info.flags); in enqueueInput()
178 long framePts = frameInfo.presentationTimeUs; in dequeueOutputs()
179 long infoPts = callBackInfo.presentationTimeUs; in dequeueOutputs()
DCodecDecoderTestBase.java188 .putLong(info.presentationTimeUs); in flattenBufferInfo()
244 + info.size + " timestamp: " + info.presentationTimeUs); in enqueueInput()
246 mCodec.queueInputBuffer(bufferIndex, 0, info.size, info.presentationTimeUs, in enqueueInput()
250 mOutputBuff.saveInPTS(info.presentationTimeUs); in enqueueInput()
288 + info.size + " timestamp: " + info.presentationTimeUs); in dequeueOutput()
291 mOutputBuff.saveOutPTS(info.presentationTimeUs); in dequeueOutput()
DCodecDecoderBlockModelMultiAccessUnitDrmTestBase.java179 mOutputBuff.saveInPTS(info.presentationTimeUs); in enqueueInput()
184 + " pts: " + info.presentationTimeUs + " flags: " + info.flags); in enqueueInput()
/cts/tests/tests/media/muxer/jni/
Dnative_muxer_jni.cpp74 info.presentationTimeUs = AMediaExtractor_getSampleTime(ex); in Java_android_media_muxer_cts_NativeMuxerTest_testMuxerNative()
92 &info.presentationTimeUs)) { in Java_android_media_muxer_cts_NativeMuxerTest_testMuxerNative()
/cts/tests/tests/media/common/src/android/media/cts/
DNdkMediaCodec.java86 long presentationTimeUs, in AMediaCodecQueueInputBuffer() argument
203 info.presentationTimeUs = ret[3]; in dequeueOutputBuffer()
249 long presentationTimeUs, in queueInputBuffer() argument
252 AMediaCodecQueueInputBuffer(mNdkMediaCodec, index, offset, size, presentationTimeUs, flags); in queueInputBuffer()
DSdkMediaCodec.java128 long presentationTimeUs, in queueInputBuffer() argument
130 mCodec.queueInputBuffer(index, offset, size, presentationTimeUs, flags); in queueInputBuffer()
DMediaCodecWrapper.java68 long presentationTimeUs, in queueInputBuffer() argument
/cts/tests/media/src/android/mediav2/cts/
DDecoderDynamicColorAspectTest.java237 bufferInfo.presentationTimeUs = VNDK_IS_AT_MOST_U ? ptsOffset : 0; in createInputList()
256 bufferInfo.presentationTimeUs = ptsOffset + mExtractor.getSampleTime(); in createInputList()
257 mMaxPts = Math.max(mMaxPts, bufferInfo.presentationTimeUs); in createInputList()
265 if (!inpPtsList.contains(bufferInfo.presentationTimeUs)) { in createInputList()
266 inpPtsList.add(bufferInfo.presentationTimeUs); in createInputList()
309 mOutputBuff.saveOutPTS(info.presentationTimeUs); in dequeueOutput()
DAdaptivePlaybackTest.java236 mOutputBuff.saveOutPTS(info.presentationTimeUs); in dequeueOutput()
262 bufferInfo.presentationTimeUs = VNDK_IS_AT_MOST_U ? ptsOffset : 0; in createInputList()
281 bufferInfo.presentationTimeUs = ptsOffset + mExtractor.getSampleTime(); in createInputList()
282 mMaxPts = Math.max(mMaxPts, bufferInfo.presentationTimeUs); in createInputList()
DExtractorTest.java219 refSample.presentationTimeUs == testSample.presentationTimeUs; in isSampleInfoIdentical()
225 Math.abs(refSample.presentationTimeUs - testSample.presentationTimeUs) <= 1 && in isSampleInfoValidAndIdentical()
226 refSample.flags >= 0 && refSample.size >= 0 && refSample.presentationTimeUs >= 0; in isSampleInfoValidAndIdentical()
322 Log.d(LOG_TAG, " ts exp/got: " + refSampleInfo.presentationTimeUs in isMediaSimilar()
323 + '/' + testSampleInfo.presentationTimeUs); in isMediaSimilar()
404 + " ts: " + refSampleInfo.presentationTimeUs); in isMediaSimilar()
469 assertTrue(sampleInfo.presentationTimeUs != -1); in readAllData()
473 .putLong(sampleInfo.presentationTimeUs); in readAllData()
584 Log.d(LOG_TAG, " ts exp/got: " + refSampleInfo.presentationTimeUs + in isSeekOk()
585 '/' + testSampleInfo.presentationTimeUs); in isSeekOk()
[all …]
DMuxerUnitTest.java82 static private void insertPerFrameSubtitles(MediaMuxer muxer, long presentationTimeUs, in insertPerFrameSubtitles() argument
90 metaInfo.presentationTimeUs = presentationTimeUs; in insertPerFrameSubtitles()
553 metaInfo.presentationTimeUs = 0; in testIfWriteSampleDataRejectsNullByteBuffer()
612 metaInfo.presentationTimeUs = 0; in testIfWriteSampleDataRejectsInvalidBuffInfo()
624 metaInfo.presentationTimeUs = 0; in testIfWriteSampleDataRejectsInvalidBuffInfo()
636 metaInfo.presentationTimeUs = 0; in testIfWriteSampleDataRejectsInvalidBuffInfo()
649 metaInfo.presentationTimeUs = 0; in testIfWriteSampleDataRejectsInvalidBuffInfo()
/cts/tests/mediapc/src/android/mediapc/cts/
DCodecTranscoderTestBase.java182 long presentationTimeUs = info.presentationTimeUs; in dequeueDecoderOutput() local
184 if (presentationTimeUs > mLastPresentationTimeUs + expectedFrameDurationUs) { in dequeueDecoderOutput()
188 mLastPresentationTimeUs = presentationTimeUs; in dequeueDecoderOutput()
200 long presentationTimeUs = info.presentationTimeUs; in dequeueEncoderOutput() local
202 if (presentationTimeUs > mLastPresentationTimeUs + expectedFrameDurationUs) { in dequeueEncoderOutput()
206 mLastPresentationTimeUs = presentationTimeUs; in dequeueEncoderOutput()
638 mInputSurface.setPresentationTime(outInfo.presentationTimeUs * 1000); in doWork()
DPlaybackFrameDrop.java163 bufferInfo.presentationTimeUs = 0; in createInputList()
184 bufferInfo.presentationTimeUs = ptsOffset + mExtractor.getSampleTime(); in createInputList()
185 mInputMaxPtsUs = Math.max(mInputMaxPtsUs, bufferInfo.presentationTimeUs); in createInputList()
267 long pts = info.presentationTimeUs; in enqueueInput()
/cts/tests/tests/graphics/jni/
DMediaTestHelpers.cpp148 auto presentationTimeUs = AMediaExtractor_getSampleTime(mExtractor); in processOneInputBuffer() local
150 presentationTimeUs, 0)); in processOneInputBuffer()
/cts/tests/video/src/android/video/cts/
DCodecPerformanceTestBase.java236 bufferInfo.presentationTimeUs = extractor.getSampleTime(); in setUpDecoderInput()
237 maxPTS = Math.max(maxPTS, bufferInfo.presentationTimeUs); in setUpDecoderInput()
258 ptsOffset + tmpBufferInfo.presentationTimeUs, in setUpDecoderInput()
260 maxPTS = Math.max(maxPTS, bufferInfo.presentationTimeUs); in setUpDecoderInput()
352 mDecoder.queueInputBuffer(bufferIndex, 0, info.size, info.presentationTimeUs, info.flags); in enqueueDecoderInput()
/cts/tests/tests/media/muxer/src/android/media/muxer/cts/
DMediaMuxerTest.java799 bufferInfo.presentationTimeUs = extractor.getSampleTime(); in cloneMediaUsingMuxer()
810 "PresentationTimeUs:" + bufferInfo.presentationTimeUs + in cloneMediaUsingMuxer()
833 bufferInfo.presentationTimeUs = format.getLong(MediaFormat.KEY_DURATION, 0); in cloneMediaUsingMuxer()
834 if (bufferInfo.presentationTimeUs != 0) { in cloneMediaUsingMuxer()
1049 bufferInfo.presentationTimeUs = extractor.getSampleTime(); in simulateVideoFramesDropIssuesAndMux()
1065 bufferInfo.presentationTimeUs += OFFSET_TIME_US; in simulateVideoFramesDropIssuesAndMux()
1082 "PresentationTimeUs:" + bufferInfo.presentationTimeUs + in simulateVideoFramesDropIssuesAndMux()
1232 bufferInfo.presentationTimeUs = extractor.getSampleTime(); in cloneMediaWithSamplesDropAndStartOffsets()
1237 bufferInfo.presentationTimeUs + " Flags:" + bufferInfo.flags + in cloneMediaWithSamplesDropAndStartOffsets()
1247 bufferInfo.presentationTimeUs += videoStartOffsetUs; in cloneMediaWithSamplesDropAndStartOffsets()
[all …]
/cts/tests/tests/media/common/jni/
DNdkMediaCodec-jni.cpp279 ret[3] = info.presentationTimeUs; in Java_android_media_cts_NdkMediaCodec_AMediaCodecDequeueOutputBuffer()
311 jlong presentationTimeUs, in Java_android_media_cts_NdkMediaCodec_AMediaCodecQueueInputBuffer() argument
319 presentationTimeUs, in Java_android_media_cts_NdkMediaCodec_AMediaCodecQueueInputBuffer()
/cts/tests/tests/media/encoder/src/android/media/encoder/cts/
DVideoEncoderTest.java145 savedInfo.set(0, savedBuffer.position(), info.presentationTimeUs, info.flags); in addBuffer()
191 ix, 0, info.size, info.presentationTimeUs, info.flags); in play()
441 + info.presentationTimeUs); in fillDecoderInputBuffer()
443 ix, 0, mBuffer.limit(), info.presentationTimeUs, 0); in fillDecoderInputBuffer()
454 + ", ts=" + info.presentationTimeUs + ")"); in emptyEncoderOutputBuffer()
643 + ", ts=" + info.presentationTimeUs + ")"); in onOutputBufferAvailableLocked()
693 + ", ts=" + decBuffer.second.presentationTimeUs + ")"); in renderDecodedBuffer()
695 encBuffer, 0, mEncInputBufferSize, decBuffer.second.presentationTimeUs, in renderDecodedBuffer()
828 Log.d(TAG, "encoding frame at " + info.presentationTimeUs * 1000); in processLoop()
830 mEncSurface.setPresentationTime(info.presentationTimeUs * 1000); in processLoop()
[all …]

123