Home
last modified time | relevance | path

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

/cts/tests/tests/media/codec/src/android/media/codec/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.java1006 private void generateFrame(int frameIndex, int colorFormat, byte[] frameData) { in generateFrame() argument
1015 frameIndex %= 8; in generateFrame()
1017 if (frameIndex < 4) { in generateFrame()
1018 startX = frameIndex * (mWidth / 4); in generateFrame()
1021 startX = (7 - frameIndex) * (mWidth / 4); in generateFrame()
1062 …private boolean checkFrame(int frameIndex, MediaFormat format, ByteBuffer frameData, Image image) { in checkFrame() argument
1136 if (i == frameIndex % 8) { in checkFrame()
1148 Log.w(TAG, "Bad frame " + frameIndex + " (rect=" + i + ": yuv=" + testY + in checkFrame()
1161 private void generateSurfaceFrame(int frameIndex) { in generateSurfaceFrame() argument
1162 frameIndex %= 8; in generateSurfaceFrame()
[all …]
DDecodeEditEncodeTest.java522 private void generateSurfaceFrame(int frameIndex) { in generateSurfaceFrame() argument
523 frameIndex %= 8; in generateSurfaceFrame()
526 if (frameIndex < 4) { in generateSurfaceFrame()
528 startX = frameIndex * (mWidth / 4); in generateSurfaceFrame()
531 startX = (7 - frameIndex) * (mWidth / 4); in generateSurfaceFrame()
933 private boolean checkSurfaceFrame(int frameIndex) { in checkSurfaceFrame() argument
937 int maxDelta = frameIndex < INITIAL_TOLERANCE_FRAME_LIMIT ? INITIAL_TOLERANCE : TOLERANCE; in checkSurfaceFrame()
970 if (i == frameIndex % 8) { in checkSurfaceFrame()
984 Log.w(TAG, "Bad frame " + frameIndex + " (rect=" + i + ": rgb=" + r + in checkSurfaceFrame()
1009 private static long computePresentationTime(int frameIndex) {
[all …]
DMediaCodecBlockModelTest.java338 int frameIndex = 0; in runEncodeShortVideo() local
374 (byte)(frameIndex * 4)); in runEncodeShortVideo()
383 long timestampUs = 1000000l * frameIndex / kFrameRate; in runEncodeShortVideo()
384 ++frameIndex; in runEncodeShortVideo()
385 if (frameIndex >= 32) { in runEncodeShortVideo()
/cts/apps/CtsVerifier/src/org/hyphonate/megaaudio/player/sources/
DSparseChannelAudioSource.java57 for (int frameIndex = 0; frameIndex < numFrames; frameIndex++) { in pull()
DWaveTableSource.java118 for (int frameIndex = 0; frameIndex < numFrames; frameIndex++) { in pull()
/cts/tests/tests/media/audio/jni/
DWaveTableOscillator.cpp78 for (int frameIndex = 0; frameIndex < numFrames; frameIndex++) { in getData() local
/cts/apps/CtsVerifier/jni/megaaudio/player/
DWaveTableSource.cpp62 for (int frameIndex = 0; frameIndex < numFrames; frameIndex++) { in pull() local
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/analyzers/
DBaseSineAnalyzer.java325 for (int frameIndex = 0; frameIndex < numFrames; frameIndex++) { in analyzeBuffer()
/cts/tests/media/src/android/mediav2/cts/
DAv1FilmGrainValidationTest.java67 FrameMetadata(int frameIndex, double varWithoutFilmGrain, double varWithFilmGrain) { in FrameMetadata() argument
68 mFrameIndex = frameIndex; in FrameMetadata()
DEncodeDecodeAccuracyTest.java410 private long computePresentationTime(int frameIndex) { in computePresentationTime() argument
411 return frameIndex * 1000000L / mEncCfgParams.mFrameRate; in computePresentationTime()
435 private boolean checkSurfaceFrame(int frameIndex) { in checkSurfaceFrame() argument
460 Log.w(LOG_TAG, "Bad frame " + frameIndex + " (rect={" + x + " " + y + "} :rgb=" + in checkSurfaceFrame()
DEncoderColorAspectsTest.java209 private long computePresentationTime(int frameIndex) { in computePresentationTime() argument
210 return frameIndex * 1000000L / mActiveEncCfg.mFrameRate; in computePresentationTime()
DDecodeGlAccuracyTest.java472 private boolean checkSurfaceFrame(int frameIndex) { in checkSurfaceFrame() argument
494 Log.w(LOG_TAG, "Bad frame " + frameIndex + " (rect={" + x + " " + y + "} :rgb=" + in checkSurfaceFrame()
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DHeifWriterTest.java611 private long computePresentationTime(int frameIndex) { in computePresentationTime() argument
612 return 132 + (long)frameIndex * 1000000; in computePresentationTime()
615 private void fillYuvBuffer(int frameIndex, @NonNull byte[] data, int width, int height, in fillYuvBuffer() argument
620 byte[] color = TEST_YUV_COLORS[frameIndex % TEST_YUV_COLORS.length]; in fillYuvBuffer()
648 private void generateSurfaceFrame(int frameIndex, int width, int height) { in generateSurfaceFrame() argument
664 Rect r = getColorBlockRect(frameIndex, width, height); in generateSurfaceFrame()
/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/mediapc/src/android/mediapc/cts/
DPlaybackFrameDrop.java278 private long getRenderTimeUs(int frameIndex) { in getRenderTimeUs() argument
279 return mRenderStartTimeUs + frameIndex * mEachFrameTimeIntervalUs; in getRenderTimeUs()
/cts/tests/tests/media/encoder/src/android/media/encoder/cts/
DSurfaceEncodeTimestampTest.java525 private void generateSurfaceFrame(int frameIndex, int width, int height) { in generateSurfaceFrame() argument
541 Rect r = getColorBlockRect(frameIndex, width, height); in generateSurfaceFrame()
/cts/tests/tests/media/recorder/src/android/media/recorder/cts/
DMediaRecorderTest.java893 private void generateSurfaceFrame(int frameIndex, int width, int height) { in generateSurfaceFrame() argument
894 frameIndex %= 8; in generateSurfaceFrame()
897 if (frameIndex < 4) { in generateSurfaceFrame()
899 startX = frameIndex * (width / 4); in generateSurfaceFrame()
902 startX = (7 - frameIndex) * (width / 4); in generateSurfaceFrame()
919 long startTimeOffset, int frameIndex, int frameRate) { in computePresentationTime() argument
920 return startTimeOffset + frameIndex * 1000000 / frameRate; in computePresentationTime()
/cts/tests/tests/nativemedia/aaudio/jni/
Dtest_aaudio.cpp138 const int64_t frameIndex = isOutput() ? AAudioStream_getFramesWritten(stream()) in getLatency() local
141 const int64_t frameIndexDelta = frameIndex - presentationPosition; in getLatency()
/cts/tests/video/src/android/video/cts/
DVideoEncoderDecoderTest.java1214 private long computePresentationTime(int frameIndex) { in computePresentationTime() argument
1215 return TIMESTAMP_OFFSET + frameIndex * 1000000L / mFrameRate; in computePresentationTime()