Home
last modified time | relevance | path

Searched refs:frameIndex (Results 1 – 9 of 9) 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.java1108 private void generateFrame(int frameIndex, int colorFormat, byte[] frameData) { in generateFrame() argument
1117 frameIndex %= 8; in generateFrame()
1119 if (frameIndex < 4) { in generateFrame()
1120 startX = frameIndex * (mWidth / 4); in generateFrame()
1123 startX = (7 - frameIndex) * (mWidth / 4); in generateFrame()
1164 …private boolean checkFrame(int frameIndex, MediaFormat format, ByteBuffer frameData, Image image) { in checkFrame() argument
1238 if (i == frameIndex % 8) { in checkFrame()
1250 Log.w(TAG, "Bad frame " + frameIndex + " (rect=" + i + ": yuv=" + testY + in checkFrame()
1263 private void generateSurfaceFrame(int frameIndex) { in generateSurfaceFrame() argument
1264 frameIndex %= 8; in generateSurfaceFrame()
[all …]
DDecodeEditEncodeTest.java355 private void generateSurfaceFrame(int frameIndex) { in generateSurfaceFrame() argument
356 frameIndex %= 8; in generateSurfaceFrame()
359 if (frameIndex < 4) { in generateSurfaceFrame()
361 startX = frameIndex * (mWidth / 4); in generateSurfaceFrame()
364 startX = (7 - frameIndex) * (mWidth / 4); in generateSurfaceFrame()
752 private boolean checkSurfaceFrame(int frameIndex) { in checkSurfaceFrame() argument
774 if (i == frameIndex % 8) { in checkSurfaceFrame()
788 Log.w(TAG, "Bad frame " + frameIndex + " (rect=" + i + ": rgb=" + r + in checkSurfaceFrame()
814 private static long computePresentationTime(int frameIndex) { in computePresentationTime() argument
815 return 123 + frameIndex * 1000000 / FRAME_RATE; in computePresentationTime()
DHeifWriterTest.java537 private long computePresentationTime(int frameIndex) { in computePresentationTime() argument
538 return 132 + (long)frameIndex * 1000000; in computePresentationTime()
541 private void fillYuvBuffer(int frameIndex, @NonNull byte[] data, int width, int height, in fillYuvBuffer() argument
546 byte[] color = TEST_YUV_COLORS[frameIndex % TEST_YUV_COLORS.length]; in fillYuvBuffer()
574 private void generateSurfaceFrame(int frameIndex, int width, int height) { in generateSurfaceFrame() argument
590 Rect r = getColorBlockRect(frameIndex, width, height); in generateSurfaceFrame()
DMediaRecorderTest.java821 private void generateSurfaceFrame(int frameIndex, int width, int height) { in generateSurfaceFrame() argument
822 frameIndex %= 8; in generateSurfaceFrame()
825 if (frameIndex < 4) { in generateSurfaceFrame()
827 startX = frameIndex * (width / 4); in generateSurfaceFrame()
830 startX = (7 - frameIndex) * (width / 4); in generateSurfaceFrame()
847 long startTimeOffset, int frameIndex, int frameRate) { in computePresentationTime() argument
848 return startTimeOffset + frameIndex * 1000000 / frameRate; in computePresentationTime()
DSurfaceEncodeTimestampTest.java437 private void generateSurfaceFrame(int frameIndex, int width, int height) { in generateSurfaceFrame() argument
453 Rect r = getColorBlockRect(frameIndex, width, height); in generateSurfaceFrame()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/
DWaveTableFloatFiller.java68 for (int frameIndex = 0; frameIndex < numFrames; frameIndex++) { in fill()
/cts/tests/tests/media/libndkaudio/
DWaveTableOscillator.cpp78 for (int frameIndex = 0; frameIndex < numFrames; frameIndex++) { in getData() local
/cts/tests/video/src/android/video/cts/
DVideoEncoderDecoderTest.java1504 private long computePresentationTime(int frameIndex) { in computePresentationTime() argument
1505 return 132 + frameIndex * 1000000L / mFrameRate; in computePresentationTime()