Home
last modified time | relevance | path

Searched refs:frameIndex (Results 1 – 14 of 14) sorted by relevance

/cts/tests/tests/media/src/android/media/cts/
DIvfReader.java104 public byte[] readFrame(int frameIndex) throws IOException { in readFrame() argument
105 if (frameIndex > mFrameCount || frameIndex < 0){ in readFrame()
108 int frameSize = mFrameSizes[frameIndex]; in readFrame()
109 int frameHead = mFrameHeads[frameIndex]; in readFrame()
DEncodeDecodeTest.java1119 private void generateFrame(int frameIndex, int colorFormat, byte[] frameData) { in generateFrame() argument
1128 frameIndex %= 8; in generateFrame()
1130 if (frameIndex < 4) { in generateFrame()
1131 startX = frameIndex * (mWidth / 4); in generateFrame()
1134 startX = (7 - frameIndex) * (mWidth / 4); in generateFrame()
1175 …private boolean checkFrame(int frameIndex, MediaFormat format, ByteBuffer frameData, Image image) { in checkFrame() argument
1249 if (i == frameIndex % 8) { in checkFrame()
1261 Log.w(TAG, "Bad frame " + frameIndex + " (rect=" + i + ": yuv=" + testY + in checkFrame()
1274 private void generateSurfaceFrame(int frameIndex) { in generateSurfaceFrame() argument
1275 frameIndex %= 8; in generateSurfaceFrame()
[all …]
DDecodeEditEncodeTest.java367 private void generateSurfaceFrame(int frameIndex) { in generateSurfaceFrame() argument
368 frameIndex %= 8; in generateSurfaceFrame()
371 if (frameIndex < 4) { in generateSurfaceFrame()
373 startX = frameIndex * (mWidth / 4); in generateSurfaceFrame()
376 startX = (7 - frameIndex) * (mWidth / 4); in generateSurfaceFrame()
765 private boolean checkSurfaceFrame(int frameIndex) { in checkSurfaceFrame() argument
769 int maxDelta = frameIndex < INITIAL_TOLERANCE_FRAME_LIMIT ? INITIAL_TOLERANCE : TOLERANCE; in checkSurfaceFrame()
788 if (i == frameIndex % 8) { in checkSurfaceFrame()
802 Log.w(TAG, "Bad frame " + frameIndex + " (rect=" + i + ": rgb=" + r + in checkSurfaceFrame()
827 private static long computePresentationTime(int frameIndex) {
[all …]
DHeifWriterTest.java582 private long computePresentationTime(int frameIndex) { in computePresentationTime() argument
583 return 132 + (long)frameIndex * 1000000; in computePresentationTime()
586 private void fillYuvBuffer(int frameIndex, @NonNull byte[] data, int width, int height, in fillYuvBuffer() argument
591 byte[] color = TEST_YUV_COLORS[frameIndex % TEST_YUV_COLORS.length]; in fillYuvBuffer()
619 private void generateSurfaceFrame(int frameIndex, int width, int height) { in generateSurfaceFrame() argument
635 Rect r = getColorBlockRect(frameIndex, width, height); in generateSurfaceFrame()
DMediaCodecBlockModelTest.java805 int frameIndex = 0; in runEncodeShortVideo() local
841 (byte)(frameIndex * 4)); in runEncodeShortVideo()
850 long timestampUs = 1000000l * frameIndex / kFrameRate; in runEncodeShortVideo()
851 ++frameIndex; in runEncodeShortVideo()
852 if (frameIndex >= 32) { in runEncodeShortVideo()
DSurfaceEncodeTimestampTest.java478 private void generateSurfaceFrame(int frameIndex, int width, int height) { in generateSurfaceFrame() argument
494 Rect r = getColorBlockRect(frameIndex, width, height); in generateSurfaceFrame()
DMediaRecorderTest.java852 private void generateSurfaceFrame(int frameIndex, int width, int height) { in generateSurfaceFrame() argument
853 frameIndex %= 8; in generateSurfaceFrame()
856 if (frameIndex < 4) { in generateSurfaceFrame()
858 startX = frameIndex * (width / 4); in generateSurfaceFrame()
861 startX = (7 - frameIndex) * (width / 4); in generateSurfaceFrame()
878 long startTimeOffset, int frameIndex, int frameRate) { in computePresentationTime() argument
879 return startTimeOffset + frameIndex * 1000000 / frameRate; in computePresentationTime()
/cts/tests/tests/media/libndkaudio/
DWaveTableOscillator.cpp78 for (int frameIndex = 0; frameIndex < numFrames; frameIndex++) { in getData() local
/cts/apps/CtsVerifier/src/org/hyphonate/megaaudio/player/sources/
DWaveTableSource.java116 for (int frameIndex = 0; frameIndex < numFrames; frameIndex++) { in pull()
/cts/tests/mediapc/src/android/mediapc/cts/
DPlaybackFrameDrop.java183 private long getRenderTimeUs(int frameIndex) { in getRenderTimeUs() argument
184 return mRenderStartTimeUs + frameIndex * mEachFrameTimeIntervalUs; in getRenderTimeUs()
/cts/tests/media/src/android/mediav2/cts/
DEncodeDecodeAccuracyTest.java347 private long computePresentationTime(int frameIndex) { in computePresentationTime() argument
348 return frameIndex * 1000000 / mFrameRate; in computePresentationTime()
371 private boolean checkSurfaceFrame(int frameIndex) { in checkSurfaceFrame() argument
383 Log.w(LOG_TAG, "Bad frame " + frameIndex + " (rect={" + x + " " + y + "} :rgb=" + in checkSurfaceFrame()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0213/
Dpoc.cpp97 virtual void onInputBufferDone(uint64_t frameIndex, size_t arrayIndex) override { in onInputBufferDone()
98 (void)frameIndex; in onInputBufferDone()
283 work->input.ordinal.frameIndex.peeku()); in workDone()
336 work->input.ordinal.frameIndex = frameID; in decodeNFrames()
/cts/tests/tests/nativemedia/aaudio/jni/
Dtest_aaudio.cpp137 const int64_t frameIndex = isOutput() ? AAudioStream_getFramesWritten(stream()) in getLatency() local
140 const int64_t frameIndexDelta = frameIndex - presentationPosition; in getLatency()
/cts/tests/video/src/android/video/cts/
DVideoEncoderDecoderTest.java1478 private long computePresentationTime(int frameIndex) { in computePresentationTime() argument
1479 return 132 + frameIndex * 1000000L / mFrameRate; in computePresentationTime()