Home
last modified time | relevance | path

Searched refs:pts (Results 1 – 15 of 15) sorted by relevance

/cts/tests/media/src/android/mediav2/cts/
DCodecDecoderSurfaceTest.java96 private void decodeAndSavePts(String file, String decoder, long pts, int mode, int frameLimit) in decodeAndSavePts() argument
103 mExtractor.seekTo(pts, mode); in decodeAndSavePts()
200 final long pts = 0; in testSimpleDecodeToSurface() local
203 decodeAndSavePts(mTestFile, decoder, pts, mode, Integer.MAX_VALUE); in testSimpleDecodeToSurface()
216 mExtractor.seekTo(pts, mode); in testSimpleDecodeToSurface()
258 final long pts = 500000; in testFlush() local
263 decodeAndSavePts(mTestFile, decoder, pts, mode, Integer.MAX_VALUE); in testFlush()
299 mExtractor.seekTo(pts, mode); in testFlush()
312 mExtractor.seekTo(pts, mode); in testFlush()
347 final long pts = 500000; in testReconfigure() local
[all …]
DCodecDecoderTest.java98 long pts = mExtractor.getSampleTime(); in createSubFrames() local
106 info.presentationTimeUs = pts; in createSubFrames()
356 final long pts = 500000; in testFlush() local
361 decodeToMemory(mTestFile, decoder, pts, mode, Integer.MAX_VALUE); in testFlush()
412 mExtractor.seekTo(pts, mode); in testFlush()
425 mExtractor.seekTo(pts, mode); in testFlush()
484 final long pts = 500000; in testReconfigure() local
489 decodeToMemory(mTestFile, decoder, pts, mode, Integer.MAX_VALUE); in testReconfigure()
491 decodeToMemory(mReconfigFile, decoder, pts, mode, Integer.MAX_VALUE); in testReconfigure()
548 mExtractor.seekTo(pts, mode); in testReconfigure()
[all …]
DCodecTestBase.java221 void saveInPTS(long pts) { in saveInPTS() argument
223 if (!inpPtsList.contains(pts)) { in saveInPTS()
224 inpPtsList.add(pts); in saveInPTS()
228 void saveOutPTS(long pts) { in saveOutPTS() argument
229 outPtsList.add(pts); in saveOutPTS()
907 long pts = mExtractor.getSampleTime(); in enqueueInput() local
921 Log.v(LOG_TAG, "input: id: " + bufferIndex + " size: " + size + " pts: " + pts + in enqueueInput()
924 mCodec.queueInputBuffer(bufferIndex, 0, size, pts, codecFlags); in enqueueInput()
927 mOutputBuff.saveInPTS(pts); in enqueueInput()
1036 void decodeToMemory(String file, String decoder, long pts, int mode, int frameLimit) in decodeToMemory() argument
[all …]
DExtractorTest.java444 long pts = (long) (randNum.nextDouble() * maxEstDuration); in isSeekOk() local
447 refExtractor.seekTo(pts, mode); in isSeekOk()
448 testExtractor.seekTo(pts, mode); in isSeekOk()
458 Log.d(LOG_TAG, " mode/pts/trackId:" + mode + "/" + pts + "/" + trackID); in isSeekOk()
751 long pts = (long) (mRandNum.nextDouble() * maxEstDuration);
755 extractor.seekTo(pts, mode);
758 testArgs.add(new SeekTestParams(currInfo, pts, mode));
786 long pts = currInfo.presentationTimeUs;
788 new SeekTestParams(currInfo, pts, MediaExtractor.SEEK_TO_CLOSEST_SYNC));
790 new SeekTestParams(currInfo, pts, MediaExtractor.SEEK_TO_NEXT_SYNC));
[all …]
DExtractorUnitTest.java256 long pts = 33000; in testSeekToForInvalidMode() local
258 extractor.seekTo(pts, (int) pts); in testSeekToForInvalidMode()
259 fail("seekTo() succeeds for invalid mode: " + pts); in testSeekToForInvalidMode()
DCodecEncoderSurfaceTest.java241 long pts = mExtractor.getSampleTime(); in enqueueDecoderInput() local
255 Log.v(LOG_TAG, "input: id: " + bufferIndex + " size: " + size + " pts: " + pts + in enqueueDecoderInput()
258 mDecoder.queueInputBuffer(bufferIndex, 0, size, pts, codecFlags); in enqueueDecoderInput()
261 mOutputBuff.saveInPTS(pts); in enqueueDecoderInput()
/cts/tests/tests/media/src/android/media/cts/
DNonBlockingAudioTrack.java39 long pts; field in NonBlockingAudioTrack.QueueElement
150 AudioTrack.WRITE_NON_BLOCKING, element.pts); in process()
173 public void write(ByteBuffer data, int size, long pts) { in write() argument
177 element.pts = pts; in write()
/cts/tests/media/jni/
DNativeCodecTestBase.h95 void saveInPTS(int64_t pts) { in saveInPTS() argument
97 if(0 == std::count(inpPtsArray.begin(), inpPtsArray.end(), pts)) { in saveInPTS()
98 inpPtsArray.push_back(pts); in saveInPTS()
101 void saveOutPTS(int64_t pts) { outPtsArray.push_back(pts); } in saveOutPTS() argument
DNativeExtractorTest.cpp328 long pts = (long)(r * maxEstDuration); in generateSeekTestArgs() local
332 AMediaExtractor_seekTo(extractor, pts, (SeekMode)mode); in generateSeekTestArgs()
335 testArgs.push_back((new SeekTestParams(currInfo, pts, (SeekMode)mode))); in generateSeekTestArgs()
366 int64_t pts = currInfo.presentationTimeUs; in generateSeekTestArgs() local
368 (new SeekTestParams(currInfo, pts, AMEDIAEXTRACTOR_SEEK_CLOSEST_SYNC))); in generateSeekTestArgs()
369 testArgs.push_back((new SeekTestParams(currInfo, pts, AMEDIAEXTRACTOR_SEEK_NEXT_SYNC))); in generateSeekTestArgs()
371 (new SeekTestParams(currInfo, pts, AMEDIAEXTRACTOR_SEEK_PREVIOUS_SYNC))); in generateSeekTestArgs()
375 ptsMinus = pts - ((pts - ptsMinus) >> 3); in generateSeekTestArgs()
386 ptsPlus = pts + ((ptsPlus - pts) >> 3); in generateSeekTestArgs()
476 long pts = (long)(r * maxEstDuration); in isSeekOk() local
[all …]
DNativeCodecDecoderTest.cpp53 OutputManager* ref, int64_t pts, SeekMode mode);
194 int64_t pts = AMediaExtractor_getSampleTime(mExtractor); in enqueueInput() local
207 CHECK_STATUS(AMediaCodec_queueInputBuffer(mCodec, bufferIndex, 0, size, pts, flags), in enqueueInput()
209 ALOGV("input: id: %zu size: %zu pts: %d flags: %d", bufferIndex, size, (int)pts, flags); in enqueueInput()
211 mOutputBuff->saveInPTS(pts); in enqueueInput()
265 OutputManager* ref, int64_t pts, SeekMode mode) { in decodeToMemory() argument
268 AMediaExtractor_seekTo(mExtractor, pts, mode); in decodeToMemory()
390 const int64_t pts = 500000; in testFlush() local
393 if (!decodeToMemory(decoder, mInpDecFormat, INT32_MAX, ref, pts, mode)) { in testFlush()
456 AMediaExtractor_seekTo(mExtractor, pts, mode); in testFlush()
[all …]
DNativeCodecEncoderSurfaceTest.cpp231 int64_t pts = AMediaExtractor_getSampleTime(mExtractor); in enqueueDecoderInput() local
244 CHECK_STATUS(AMediaCodec_queueInputBuffer(mDecoder, bufferIndex, 0, size, pts, flags), in enqueueDecoderInput()
246 ALOGV("input: id: %zu size: %zu pts: %d flags: %d", bufferIndex, size, (int)pts, flags); in enqueueDecoderInput()
248 mOutputBuff->saveInPTS(pts); in enqueueDecoderInput()
DNativeCodecEncoderTest.cpp269 int64_t pts = mInputOffsetPts; in enqueueInput() local
273 pts += mNumBytesSubmitted * 1000000L / (2 * mChannels * mSampleRate); in enqueueInput()
282 pts += mInputCount * 1000000L / mDefFrameRate; in enqueueInput()
304 CHECK_STATUS(AMediaCodec_queueInputBuffer(mCodec, bufferIndex, 0, size, pts, flags), in enqueueInput()
306 ALOGV("input: id: %zu size: %d pts: %d flags: %d", bufferIndex, size, (int)pts, flags); in enqueueInput()
307 mOutputBuff->saveInPTS(pts); in enqueueInput()
DNativeMuxerUnitTest.cpp37 static media_status_t insertPerFrameSubtitles(AMediaMuxer* muxer, long pts, size_t trackID) { in insertPerFrameSubtitles() argument
42 info->presentationTimeUs = pts; in insertPerFrameSubtitles()
/cts/tools/cts-api-coverage/proto/
Dcts_report.proto131 // cts/suite/pts/lib/commonutil/src/com/android/pts/util/ResultType.java
140 // cts/suite/pts/lib/commonutil/src/com/android/pts/util/ResultUnit.java
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DExactCanvasTests.java126 float[] pts = { in testDrawLine() local
129 canvas.drawLines(pts, p); in testDrawLine()