/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 | 333 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()
|
D | native-media-jni.cpp | 222 (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()
|
D | native_media_decoder_source.cpp | 166 info.size, (long long)info.presentationTimeUs); in run()
|
D | native_media_encoder_jni.cpp | 234 nFrameCount, info.size, (long long)info.presentationTimeUs, info.flags); in run()
|
/cts/tests/tests/media/src/android/media/cts/ |
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 | SdkMediaCodec.java | 121 long presentationTimeUs, in queueInputBuffer() argument 123 mCodec.queueInputBuffer(index, offset, size, presentationTimeUs, flags); in queueInputBuffer()
|
D | CodecState.java | 333 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()
|
D | AdaptivePlaybackTest.java | 864 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 …]
|
D | MediaCodecWrapper.java | 64 long presentationTimeUs, in queueInputBuffer() argument
|
D | DecoderTestAacDrc.java | 467 long presentationTimeUs = 0; in decodeToMemory() local 481 presentationTimeUs = extractor.getSampleTime(); in decodeToMemory() 487 presentationTimeUs, in decodeToMemory() 504 timestamps.add(info.presentationTimeUs); in decodeToMemory()
|
D | VideoEncoderTest.java | 91 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 …]
|
D | ExtractDecodeEditEncodeMuxTest.java | 921 + 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()
|
D | DecoderTestXheAac.java | 868 long presentationTimeUs = 0; 883 presentationTimeUs = extractor.getSampleTime(); 890 presentationTimeUs, 907 timestamps.add(info.presentationTimeUs);
|
D | DecodeEditEncodeTest.java | 328 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()
|
D | MediaSyncTest.java | 788 info.presentationTimeUs); in onOutputBufferAvailable() 790 && info.presentationTimeUs >= mStartingAudioTimestampUs) { in onOutputBufferAvailable() 795 codec.releaseOutputBuffer(index, info.presentationTimeUs * 1000); in onOutputBufferAvailable()
|
D | EncodeDecodeTest.java | 765 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()
|
D | MediaMuxerTest.java | 333 bufferInfo.presentationTimeUs = extractor.getSampleTime(); in cloneMediaUsingMuxer() 344 "PresentationTimeUs:" + bufferInfo.presentationTimeUs + in cloneMediaUsingMuxer()
|
D | ImageReaderDecoderTest.java | 504 long presentationTimeUs = 0; in decodeFramesToImage() local 511 presentationTimeUs = extractor.getSampleTime(); in decodeFramesToImage() 518 presentationTimeUs, in decodeFramesToImage()
|
D | VpxCodecTestBase.java | 643 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()
|
D | NativeDecoderTest.java | 339 long presentationTimeUs = ex.getSampleTime(); in getDecodedData() local 341 codec[t].queueInputBuffer(bufidx, 0, sampleSize, presentationTimeUs, in getDecodedData()
|
D | VideoDecoderPerfTest.java | 209 long presentationTimeUs = (long)((inputNum + sample.second) * 1e6 / frameRate); in doDecode() local 222 presentationTimeUs, in doDecode()
|
D | EncodeVirtualDisplayTest.java | 436 info.presentationTimeUs, info.flags); in doTestEncodeVirtual()
|
/cts/tests/tests/graphics/jni/ |
D | MediaTestHelpers.cpp | 148 auto presentationTimeUs = AMediaExtractor_getSampleTime(mExtractor); in processOneInputBuffer() local 150 presentationTimeUs, 0)); in processOneInputBuffer()
|
/cts/tests/video/src/android/video/cts/ |
D | VideoEncoderDecoderTest.java | 1094 savedInfo.set(0, l, info.presentationTimeUs, info.flags); in dequeueOutputBufferEncoder() 1149 srcInfo.presentationTimeUs, in runDecoder()
|