Home
last modified time | relevance | path

Searched refs:frameIndex (Results 1 – 4 of 4) 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.java1025 private void generateFrame(int frameIndex, int colorFormat, byte[] frameData) { in generateFrame() argument
1034 frameIndex %= 8; in generateFrame()
1036 if (frameIndex < 4) { in generateFrame()
1037 startX = frameIndex * (mWidth / 4); in generateFrame()
1040 startX = (7 - frameIndex) * (mWidth / 4); in generateFrame()
1081 …private boolean checkFrame(int frameIndex, MediaFormat format, ByteBuffer frameData, Image image) { in checkFrame() argument
1153 if (i == frameIndex % 8) { in checkFrame()
1165 Log.w(TAG, "Bad frame " + frameIndex + " (rect=" + i + ": yuv=" + testY + in checkFrame()
1178 private void generateSurfaceFrame(int frameIndex) { in generateSurfaceFrame() argument
1179 frameIndex %= 8; in generateSurfaceFrame()
[all …]
DDecodeEditEncodeTest.java354 private void generateSurfaceFrame(int frameIndex) { in generateSurfaceFrame() argument
355 frameIndex %= 8; in generateSurfaceFrame()
358 if (frameIndex < 4) { in generateSurfaceFrame()
360 startX = frameIndex * (mWidth / 4); in generateSurfaceFrame()
363 startX = (7 - frameIndex) * (mWidth / 4); in generateSurfaceFrame()
742 private boolean checkSurfaceFrame(int frameIndex) { in checkSurfaceFrame() argument
764 if (i == frameIndex % 8) { in checkSurfaceFrame()
778 Log.w(TAG, "Bad frame " + frameIndex + " (rect=" + i + ": rgb=" + r + in checkSurfaceFrame()
804 private static long computePresentationTime(int frameIndex) { in computePresentationTime() argument
805 return 123 + frameIndex * 1000000 / FRAME_RATE; in computePresentationTime()
/cts/suite/cts/deviceTests/videoperf/src/com/android/cts/videoperf/
DVideoEncoderDecoderTest.java1257 private long computePresentationTime(int frameIndex) { in computePresentationTime() argument
1258 return 132 + frameIndex * 1000000L / mFrameRate; in computePresentationTime()