Home
last modified time | relevance | path

Searched refs:refSample (Results 1 – 2 of 2) sorted by relevance

/cts/tests/media/jni/
DNativeExtractorTest.cpp37 static bool isSampleInfoIdentical(AMediaCodecBufferInfo* refSample, in isSampleInfoIdentical() argument
39 return refSample->flags == testSample->flags && refSample->size == testSample->size && in isSampleInfoIdentical()
40 refSample->presentationTimeUs == testSample->presentationTimeUs; in isSampleInfoIdentical()
43 static bool isSampleInfoValidAndIdentical(AMediaCodecBufferInfo* refSample, in isSampleInfoValidAndIdentical() argument
45 return refSample->flags == testSample->flags && refSample->size == testSample->size && in isSampleInfoValidAndIdentical()
46 abs(refSample->presentationTimeUs - testSample->presentationTimeUs) <= 1 && in isSampleInfoValidAndIdentical()
47 (int)refSample->flags >= 0 && refSample->size >= 0 && refSample->presentationTimeUs >= 0; in isSampleInfoValidAndIdentical()
/cts/tests/media/src/android/mediav2/cts/
DExtractorTest.java185 private static boolean isSampleInfoIdentical(MediaCodec.BufferInfo refSample, in isSampleInfoIdentical() argument
187 return refSample.flags == testSample.flags && refSample.size == testSample.size && in isSampleInfoIdentical()
188 refSample.presentationTimeUs == testSample.presentationTimeUs; in isSampleInfoIdentical()
191 private static boolean isSampleInfoValidAndIdentical(MediaCodec.BufferInfo refSample, in isSampleInfoValidAndIdentical() argument
193 return refSample.flags == testSample.flags && refSample.size == testSample.size && in isSampleInfoValidAndIdentical()
194 Math.abs(refSample.presentationTimeUs - testSample.presentationTimeUs) <= 1 && in isSampleInfoValidAndIdentical()
195 refSample.flags >= 0 && refSample.size >= 0 && refSample.presentationTimeUs >= 0; in isSampleInfoValidAndIdentical()