/cts/tests/media/jni/ |
D | NativeExtractorTest.cpp | 40 refSample->presentationTimeUs == testSample->presentationTimeUs; in isSampleInfoIdentical() 46 abs(refSample->presentationTimeUs - testSample->presentationTimeUs) <= 1 && in isSampleInfoValidAndIdentical() 47 (int)refSample->flags >= 0 && refSample->size >= 0 && refSample->presentationTimeUs >= 0; in isSampleInfoValidAndIdentical() 86 info->presentationTimeUs = AMediaExtractor_getSampleTime(extractor); in setSampleInfo() 123 ALOGD(" ts exp/got: %d / %d ", (int)refSampleInfo.presentationTimeUs, in isMediaSimilar() 124 (int)testSampleInfo.presentationTimeUs); in isMediaSimilar() 181 (int)refSampleInfo.presentationTimeUs); in isMediaSimilar() 366 int64_t pts = currInfo.presentationTimeUs; in generateSeekTestArgs() 374 int64_t ptsMinus = prevInfo.presentationTimeUs; in generateSeekTestArgs() 385 int64_t ptsPlus = nextInfo.presentationTimeUs; in generateSeekTestArgs() [all …]
|
D | NativeMuxerTest.cpp | 173 bufferInfo->presentationTimeUs = AMediaExtractor_getSampleTime(extractor); in splitMediaToMuxerParameters() 208 ALOGV("Track: %d Timestamp: %d", trackID, (int)info->presentationTimeUs); in insertSampleData() 254 (int)info->presentationTimeUs); in combineMedias() 298 if (abs(thisInfo->presentationTimeUs - thatInfo->presentationTimeUs) > in isSubsetOf() 320 info->presentationTimeUs += tsOffset; in offsetTimeStamp()
|
D | NativeCodecEncoderSurfaceTest.cpp | 264 (int)bufferInfo->presentationTimeUs, bufferInfo->flags); in dequeueDecoderOutput() 290 mOutputBuff->saveOutPTS(info->presentationTimeUs); in dequeueEncoderOutput() 295 (int)info->presentationTimeUs, info->flags); in dequeueEncoderOutput()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | CodecState.java | 335 mMediaTimeProvider.getRealTimeUsForMediaTime(info.presentationTimeUs); in drainOutputBuffer() 348 info.presentationTimeUs*1000); in drainOutputBuffer() 352 mPresentationTimeUs = info.presentationTimeUs; in drainOutputBuffer() 369 mPresentationTimeUs = info.presentationTimeUs; in drainOutputBuffer() 385 public void onFrameRendered(MediaCodec codec, long presentationTimeUs, long nanoTime) { in onFrameRendered() argument 389 if (presentationTimeUs == TUNNELING_EOS_PRESENTATION_TIME_US) { in onFrameRendered() 392 mPresentationTimeUs = presentationTimeUs; in onFrameRendered()
|
D | NdkMediaCodec.java | 74 long presentationTimeUs, in AMediaCodecQueueInputBuffer() argument 162 info.presentationTimeUs = ret[3]; in dequeueOutputBuffer() 208 long presentationTimeUs, in queueInputBuffer() argument 211 AMediaCodecQueueInputBuffer(mNdkMediaCodec, index, offset, size, presentationTimeUs, flags); in queueInputBuffer()
|
D | AdaptivePlaybackTest.java | 914 public void onFrameRendered(MediaCodec codec, long presentationTimeUs, long nanoTime) { 916 if (!mRenderedTimeStamps.remove(presentationTimeUs)) { 917 warn("invalid timestamp " + presentationTimeUs + ", queued " + 1009 " @" + info.presentationTimeUs + "}"); 1035 mRenderedTimeStamps.add(info.presentationTimeUs); 1036 if (!mTimeStamps.remove(info.presentationTimeUs)) { 1037 warn("invalid timestamp " + info.presentationTimeUs + ", queued " + 1043 info.presentationTimeUs, info.flags, sum); 1066 long presentationTimeUs = adjustTimeUs; 1070 presentationTimeUs += frame.presentationTimeUs; [all …]
|
D | SdkMediaCodec.java | 121 long presentationTimeUs, in queueInputBuffer() argument 123 mCodec.queueInputBuffer(index, offset, size, presentationTimeUs, flags); in queueInputBuffer()
|
D | MediaMuxerTest.java | 550 bufferInfo.presentationTimeUs = extractor.getSampleTime(); in cloneMediaUsingMuxer() 561 "PresentationTimeUs:" + bufferInfo.presentationTimeUs + in cloneMediaUsingMuxer() 777 bufferInfo.presentationTimeUs = extractor.getSampleTime(); in simulateVideoFramesDropIssuesAndMux() 793 bufferInfo.presentationTimeUs += OFFSET_TIME_US; in simulateVideoFramesDropIssuesAndMux() 810 "PresentationTimeUs:" + bufferInfo.presentationTimeUs + in simulateVideoFramesDropIssuesAndMux() 959 bufferInfo.presentationTimeUs = extractor.getSampleTime(); in cloneMediaWithSamplesDropAndStartOffsets() 969 bufferInfo.presentationTimeUs += videoStartOffsetUs; in cloneMediaWithSamplesDropAndStartOffsets() 979 bufferInfo.presentationTimeUs += audioStartOffsetUs; in cloneMediaWithSamplesDropAndStartOffsets() 987 " PresentationTimeUs:" + bufferInfo.presentationTimeUs + in cloneMediaWithSamplesDropAndStartOffsets()
|
D | DecoderTestAacDrc.java | 466 long presentationTimeUs = 0; in decodeToMemory() local 480 presentationTimeUs = extractor.getSampleTime(); in decodeToMemory() 486 presentationTimeUs, in decodeToMemory() 503 timestamps.add(info.presentationTimeUs); in decodeToMemory()
|
D | MediaCodecWrapper.java | 64 long presentationTimeUs, in queueInputBuffer() argument
|
D | VideoEncoderTest.java | 94 savedInfo.set(0, savedBuffer.position(), info.presentationTimeUs, info.flags); in addBuffer() 127 ix, 0, info.size, info.presentationTimeUs, info.flags); in play() 355 + info.presentationTimeUs); in fillDecoderInputBuffer() 357 ix, 0, mBuffer.limit(), info.presentationTimeUs, 0); in fillDecoderInputBuffer() 368 + ", ts=" + info.presentationTimeUs + ")"); in emptyEncoderOutputBuffer() 556 + ", ts=" + info.presentationTimeUs + ")"); in onOutputBufferAvailableLocked() 606 + ", ts=" + decBuffer.second.presentationTimeUs + ")"); in renderDecodedBuffer() 608 encBuffer, 0, mEncInputBufferSize, decBuffer.second.presentationTimeUs, in renderDecodedBuffer() 733 Log.d(TAG, "encoding frame at " + info.presentationTimeUs * 1000); in processLoop() 735 mEncSurface.setPresentationTime(info.presentationTimeUs * 1000); in processLoop() [all …]
|
D | ExtractDecodeEditEncodeMuxTest.java | 917 + videoDecoderOutputBufferInfo.presentationTimeUs); in doExtractDecodeEditEncodeMux() 928 videoDecoderOutputBufferInfo.presentationTimeUs * 1000); in doExtractDecodeEditEncodeMux() 986 + audioDecoderOutputBufferInfo.presentationTimeUs); in doExtractDecodeEditEncodeMux() 1014 long presentationTime = audioDecoderOutputBufferInfo.presentationTimeUs; in doExtractDecodeEditEncodeMux() 1090 + videoEncoderOutputBufferInfo.presentationTimeUs); in doExtractDecodeEditEncodeMux() 1148 + audioEncoderOutputBufferInfo.presentationTimeUs); in doExtractDecodeEditEncodeMux()
|
D | DecodeEditEncodeTest.java | 329 output.addChunk(encodedData, info.flags, info.presentationTimeUs); in generateVideoData() 535 outputData.addChunk(encodedData, info.flags, info.presentationTimeUs); in editVideoData() 586 inputSurface.setPresentationTime(info.presentationTimeUs * 1000); in editVideoData() 733 info.presentationTimeUs); in checkVideoData()
|
D | DecoderTestXheAac.java | 896 long presentationTimeUs = 0; 911 presentationTimeUs = extractor.getSampleTime(); 918 presentationTimeUs, 935 timestamps.add(info.presentationTimeUs);
|
D | DecoderTest.java | 408 info.presentationTimeUs > lastPresentationTimeUsFromDecoder); in testBFrames() 410 lastPresentationTimeUsFromDecoder = info.presentationTimeUs; in testBFrames() 1741 long presentationTimeUs = 0; 1755 presentationTimeUs = extractor.getSampleTime(); 1761 presentationTimeUs, 1778 timestamps.add(info.presentationTimeUs); 2724 long presentationTimeUs = extractor.getSampleTime(); 2739 -1, presentationTimeUs); 2743 timestamps.add(presentationTimeUs); 2754 presentationTimeUs, [all …]
|
/cts/tests/tests/media/libmediandkjni/ |
D | native_media_utils.cpp | 84 return l.presentationTimeUs < r.presentationTimeUs; in comparePTS() 97 int64_t duration = (*std::max_element(from, to, comparePTS)).presentationTimeUs in getBitrateAverage() 98 - (*std::min_element(from, to, comparePTS)).presentationTimeUs; in getBitrateAverage() 122 int64_t duration = mInfos[frameNumTo].presentationTimeUs - in getBitratePeak() 123 mInfos[frameNumFrom].presentationTimeUs; in getBitratePeak()
|
D | native-mediadrm-jni.cpp | 386 int64_t* presentationTimeUs, bool* eosReached) { in fillDecoder() argument 400 *presentationTimeUs = AMediaExtractor_getSampleTime(extractor); in fillDecoder() 408 *presentationTimeUs, in fillDecoder() 414 *presentationTimeUs, in fillDecoder() 421 static bool drainDecoder(AMediaCodec* codec, int64_t presentationTimeUs, in drainDecoder() argument 432 *startTimeNano = getSystemNanoTime() - (presentationTimeUs * 1000); in drainDecoder() 434 int64_t delay = (*startTimeNano + presentationTimeUs * 1000) - in drainDecoder()
|
D | native-media-jni.cpp | 225 (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() 1234 ret[3] = info.presentationTimeUs; in Java_android_media_cts_NdkMediaCodec_AMediaCodecDequeueOutputBuffer() 1266 jlong presentationTimeUs, in Java_android_media_cts_NdkMediaCodec_AMediaCodecQueueInputBuffer() argument 1274 presentationTimeUs, in Java_android_media_cts_NdkMediaCodec_AMediaCodecQueueInputBuffer()
|
/cts/tests/media/src/android/mediav2/cts/ |
D | ExtractorTest.java | 188 refSample.presentationTimeUs == testSample.presentationTimeUs; in isSampleInfoIdentical() 194 Math.abs(refSample.presentationTimeUs - testSample.presentationTimeUs) <= 1 && in isSampleInfoValidAndIdentical() 195 refSample.flags >= 0 && refSample.size >= 0 && refSample.presentationTimeUs >= 0; in isSampleInfoValidAndIdentical() 282 Log.d(LOG_TAG, " ts exp/got: " + refSampleInfo.presentationTimeUs + in isMediaSimilar() 283 '/' + testSampleInfo.presentationTimeUs); in isMediaSimilar() 359 " ts: " + refSampleInfo.presentationTimeUs); in isMediaSimilar() 464 Log.d(LOG_TAG, " ts exp/got: " + refSampleInfo.presentationTimeUs + in isSeekOk() 465 '/' + testSampleInfo.presentationTimeUs); in isSeekOk() 786 long pts = currInfo.presentationTimeUs; 796 long ptsMinus = prevInfo.presentationTimeUs; [all …]
|
D | MuxerUnitTest.java | 76 static private void insertPerFrameSubtitles(MediaMuxer muxer, long presentationTimeUs, in insertPerFrameSubtitles() argument 84 metaInfo.presentationTimeUs = presentationTimeUs; in insertPerFrameSubtitles() 543 metaInfo.presentationTimeUs = 0; in testIfWriteSampleDataRejectsNullByteBuffer() 600 metaInfo.presentationTimeUs = 0; in testIfWriteSampleDataRejectsInvalidBuffInfo() 612 metaInfo.presentationTimeUs = 0; in testIfWriteSampleDataRejectsInvalidBuffInfo() 624 metaInfo.presentationTimeUs = 0; in testIfWriteSampleDataRejectsInvalidBuffInfo() 637 metaInfo.presentationTimeUs = 0; in testIfWriteSampleDataRejectsInvalidBuffInfo()
|
D | MuxerTest.java | 137 bufferInfo.presentationTimeUs = extractor.getSampleTime(); in splitMediaToMuxerParameters() 167 Log.v(LOG_TAG, "Track: " + index + " Timestamp: " + bufferInfo.presentationTimeUs); in insertSampleData() 214 bufInfo.presentationTimeUs); in combineMedias() 253 bufferInfo.presentationTimeUs += tsOffset; in offsetTimeStamp() 303 thisInfo.presentationTimeUs - thatInfo.presentationTimeUs) > in isSubsetOf()
|
D | CodecTestBase.java | 941 info.size + " timestamp: " + info.presentationTimeUs); in enqueueInput() 943 mCodec.queueInputBuffer(bufferIndex, 0, info.size, info.presentationTimeUs, in enqueueInput() 947 mOutputBuff.saveInPTS(info.presentationTimeUs); in enqueueInput() 973 info.size + " timestamp: " + info.presentationTimeUs); in dequeueOutput() 976 mOutputBuff.saveOutPTS(info.presentationTimeUs); in dequeueOutput() 1304 info.size + " timestamp: " + info.presentationTimeUs); in dequeueOutput() 1315 mOutputBuff.saveOutPTS(info.presentationTimeUs); in dequeueOutput()
|
D | CodecEncoderSurfaceTest.java | 273 info.size + " timestamp: " + info.presentationTimeUs); in dequeueDecoderOutput() 284 " size: " + info.size + " timestamp: " + info.presentationTimeUs); in dequeueEncoderOutput() 302 mOutputBuff.saveOutPTS(info.presentationTimeUs); in dequeueEncoderOutput()
|
/cts/tests/tests/graphics/jni/ |
D | MediaTestHelpers.cpp | 148 auto presentationTimeUs = AMediaExtractor_getSampleTime(mExtractor); in processOneInputBuffer() local 150 presentationTimeUs, 0)); in processOneInputBuffer()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | SoundPlayerObject.java | 157 long presentationTimeUs = 0; in run() local 163 presentationTimeUs = mExtractor.getSampleTime(); in run() 166 inputEosSignalled ? 0 : sampleSize, presentationTimeUs, in run()
|