Home
last modified time | relevance | path

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

12

/cts/tests/tests/media/libmediandkjni/
Dnative_media_utils.cpp84 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()
Dnative-mediadrm-jni.cpp333 int64_t* presentationTimeUs, bool* eosReached) { in fillDecoder() argument
347 *presentationTimeUs = AMediaExtractor_getSampleTime(extractor); in fillDecoder()
355 *presentationTimeUs, in fillDecoder()
361 *presentationTimeUs, in fillDecoder()
368 static bool drainDecoder(AMediaCodec* codec, int64_t presentationTimeUs, in drainDecoder() argument
379 *startTimeNano = getSystemNanoTime() - (presentationTimeUs * 1000); in drainDecoder()
381 int64_t delay = (*startTimeNano + presentationTimeUs * 1000) - in drainDecoder()
Dnative-media-jni.cpp222 (long long)bufferInfo->presentationTimeUs, bufferInfo->flags); in OnOutputAvailableCB()
518 int64_t presentationTimeUs = AMediaExtractor_getSampleTime(ex); in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative() local
520 AMediaCodec_queueInputBuffer(codec[t], bufidx, 0, sampleSize, presentationTimeUs, in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative()
682 int64_t presentationTimeUs = AMediaExtractor_getSampleTime(ex); in Java_android_media_cts_NativeDecoderTest_testPlaybackNative() local
684 AMediaCodec_queueInputBuffer(codec, bufidx, 0, sampleSize, presentationTimeUs, in Java_android_media_cts_NativeDecoderTest_testPlaybackNative()
765 info.presentationTimeUs = AMediaExtractor_getSampleTime(ex); in Java_android_media_cts_NativeDecoderTest_testMuxerNative()
1146 ret[3] = info.presentationTimeUs; in Java_android_media_cts_NdkMediaCodec_AMediaCodecDequeueOutputBuffer()
1178 jlong presentationTimeUs, in Java_android_media_cts_NdkMediaCodec_AMediaCodecQueueInputBuffer() argument
1186 presentationTimeUs, in Java_android_media_cts_NdkMediaCodec_AMediaCodecQueueInputBuffer()
Dnative_media_decoder_source.cpp166 info.size, (long long)info.presentationTimeUs); in run()
Dnative_media_encoder_jni.cpp234 nFrameCount, info.size, (long long)info.presentationTimeUs, info.flags); in run()
/cts/tests/tests/media/src/android/media/cts/
DNdkMediaCodec.java74 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()
DSdkMediaCodec.java121 long presentationTimeUs, in queueInputBuffer() argument
123 mCodec.queueInputBuffer(index, offset, size, presentationTimeUs, flags); in queueInputBuffer()
DCodecState.java333 mMediaTimeProvider.getRealTimeUsForMediaTime(info.presentationTimeUs); in drainOutputBuffer()
346 mAudioTrack.write(audioBuffer, info.size, info.presentationTimeUs*1000); in drainOutputBuffer()
350 mPresentationTimeUs = info.presentationTimeUs; in drainOutputBuffer()
367 mPresentationTimeUs = info.presentationTimeUs; in drainOutputBuffer()
DAdaptivePlaybackTest.java864 public void onFrameRendered(MediaCodec codec, long presentationTimeUs, long nanoTime) {
866 if (!mRenderedTimeStamps.remove(presentationTimeUs)) {
867 warn("invalid timestamp " + presentationTimeUs + ", queued " +
959 " @" + info.presentationTimeUs + "}");
985 mRenderedTimeStamps.add(info.presentationTimeUs);
986 if (!mTimeStamps.remove(info.presentationTimeUs)) {
987 warn("invalid timestamp " + info.presentationTimeUs + ", queued " +
993 info.presentationTimeUs, info.flags, sum);
1016 long presentationTimeUs = adjustTimeUs;
1020 presentationTimeUs += frame.presentationTimeUs;
[all …]
DMediaCodecWrapper.java64 long presentationTimeUs, in queueInputBuffer() argument
DDecoderTestAacDrc.java467 long presentationTimeUs = 0; in decodeToMemory() local
481 presentationTimeUs = extractor.getSampleTime(); in decodeToMemory()
487 presentationTimeUs, in decodeToMemory()
504 timestamps.add(info.presentationTimeUs); in decodeToMemory()
DVideoEncoderTest.java91 savedInfo.set(0, savedBuffer.position(), info.presentationTimeUs, info.flags); in addBuffer()
124 ix, 0, info.size, info.presentationTimeUs, info.flags); in play()
352 + info.presentationTimeUs); in fillDecoderInputBuffer()
354 ix, 0, mBuffer.limit(), info.presentationTimeUs, 0); in fillDecoderInputBuffer()
365 + ", ts=" + info.presentationTimeUs + ")"); in emptyEncoderOutputBuffer()
553 + ", ts=" + info.presentationTimeUs + ")"); in onOutputBufferAvailableLocked()
603 + ", ts=" + decBuffer.second.presentationTimeUs + ")"); in renderDecodedBuffer()
605 encBuffer, 0, mEncInputBufferSize, decBuffer.second.presentationTimeUs, in renderDecodedBuffer()
730 Log.d(TAG, "encoding frame at " + info.presentationTimeUs * 1000); in processLoop()
732 mEncSurface.setPresentationTime(info.presentationTimeUs * 1000); in processLoop()
[all …]
DExtractDecodeEditEncodeMuxTest.java921 + videoDecoderOutputBufferInfo.presentationTimeUs); in doExtractDecodeEditEncodeMux()
932 videoDecoderOutputBufferInfo.presentationTimeUs * 1000); in doExtractDecodeEditEncodeMux()
990 + audioDecoderOutputBufferInfo.presentationTimeUs); in doExtractDecodeEditEncodeMux()
1018 long presentationTime = audioDecoderOutputBufferInfo.presentationTimeUs; in doExtractDecodeEditEncodeMux()
1094 + videoEncoderOutputBufferInfo.presentationTimeUs); in doExtractDecodeEditEncodeMux()
1152 + audioEncoderOutputBufferInfo.presentationTimeUs); in doExtractDecodeEditEncodeMux()
DDecoderTestXheAac.java868 long presentationTimeUs = 0;
883 presentationTimeUs = extractor.getSampleTime();
890 presentationTimeUs,
907 timestamps.add(info.presentationTimeUs);
DDecodeEditEncodeTest.java328 output.addChunk(encodedData, info.flags, info.presentationTimeUs); in generateVideoData()
526 outputData.addChunk(encodedData, info.flags, info.presentationTimeUs); in editVideoData()
577 inputSurface.setPresentationTime(info.presentationTimeUs * 1000); in editVideoData()
723 info.presentationTimeUs); in checkVideoData()
DMediaSyncTest.java788 info.presentationTimeUs); in onOutputBufferAvailable()
790 && info.presentationTimeUs >= mStartingAudioTimestampUs) { in onOutputBufferAvailable()
795 codec.releaseOutputBuffer(index, info.presentationTimeUs * 1000); in onOutputBufferAvailable()
DEncodeDecodeTest.java765 info.presentationTimeUs, info.flags); in doEncodeDecodeVideoFromBuffer()
834 info.presentationTimeUs); in doEncodeDecodeVideoFromBuffer()
867 info.presentationTimeUs); in doEncodeDecodeVideoFromBuffer()
996 info.presentationTimeUs); in doEncodeDecodeVideoFromSurfaceToSurface()
1062 info.presentationTimeUs, info.flags); in doEncodeDecodeVideoFromSurfaceToSurface()
DMediaMuxerTest.java333 bufferInfo.presentationTimeUs = extractor.getSampleTime(); in cloneMediaUsingMuxer()
344 "PresentationTimeUs:" + bufferInfo.presentationTimeUs + in cloneMediaUsingMuxer()
DImageReaderDecoderTest.java504 long presentationTimeUs = 0; in decodeFramesToImage() local
511 presentationTimeUs = extractor.getSampleTime(); in decodeFramesToImage()
518 presentationTimeUs, in decodeFramesToImage()
DVpxCodecTestBase.java643 outPresentationTimeUs = bufferInfo.presentationTimeUs; in decode()
899 mOutPresentationTimeUs = info.presentationTimeUs;
1136 mOutPresentationTimeUs = mBufferInfo.presentationTimeUs; in getOutputInternal()
1798 currentSecond = (int)(info.presentationTimeUs / 1000000); in computeEncodingStatistics()
1801 nextSecond = (int)(bufferInfos.get(j+1).presentationTimeUs / 1000000); in computeEncodingStatistics()
1828 int duration = (int)(bufferInfos.get(bufferInfos.size() - 1).presentationTimeUs / 1000); in computeEncodingStatistics()
DNativeDecoderTest.java339 long presentationTimeUs = ex.getSampleTime(); in getDecodedData() local
341 codec[t].queueInputBuffer(bufidx, 0, sampleSize, presentationTimeUs, in getDecodedData()
DVideoDecoderPerfTest.java209 long presentationTimeUs = (long)((inputNum + sample.second) * 1e6 / frameRate); in doDecode() local
222 presentationTimeUs, in doDecode()
DEncodeVirtualDisplayTest.java436 info.presentationTimeUs, info.flags); in doTestEncodeVirtual()
/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/
DVideoEncoderDecoderTest.java1094 savedInfo.set(0, l, info.presentationTimeUs, info.flags); in dequeueOutputBufferEncoder()
1149 srcInfo.presentationTimeUs, in runDecoder()

12