/cts/tests/media/common/src/android/mediav2/common/cts/ |
D | RawResource.java | 33 public final int mBytesPerSample; field in RawResource 41 || builder.mBytesPerSample <= 0)) { in RawResource() 45 || builder.mBytesPerSample <= 0)) { in RawResource() 55 mBytesPerSample = builder.mBytesPerSample; in RawResource() 67 private int mBytesPerSample; field in RawResource.Builder 98 this.mBytesPerSample = bytesPerSample; in setBytesPerSample()
|
D | VideoErrorManager.java | 62 || mRefYuv.mBytesPerSample != mTestYuv.mBytesPerSample) { in VideoErrorManager() 67 mRefYuv.mWidth, mRefYuv.mHeight, mRefYuv.mBytesPerSample, mTestYuv.mWidth, in VideoErrorManager() 68 mTestYuv.mHeight, mTestYuv.mBytesPerSample); in VideoErrorManager() 72 (mRefYuv.mBytesPerSample != 1) && (mRefYuv.mBytesPerSample != 2))) { in VideoErrorManager() 76 mRefYuv.mWidth, mRefYuv.mHeight, mRefYuv.mBytesPerSample); in VideoErrorManager() 180 int ySize = mRefYuv.mWidth * mRefYuv.mHeight * mRefYuv.mBytesPerSample; in generateErrorStats() 196 double curYMSE = computeMSE(yRef, yTest, mRefYuv.mBytesPerSample, mRefYuv.mWidth, in generateErrorStats() 207 double curUMSE = computeMSE(uvRef, uvTest, mRefYuv.mBytesPerSample, in generateErrorStats() 218 double curVMSE = computeMSE(uvRef, uvTest, mRefYuv.mBytesPerSample, in generateErrorStats() 223 double yFramePSNR = computePSNR(curYMSE, mRefYuv.mBytesPerSample); in generateErrorStats() [all …]
|
D | CompareStreams.java | 195 if (mRefYuv.mBytesPerSample != bytesPerSample) { in dequeueOutput() 199 + " %d", mRefYuv.mBytesPerSample, bytesPerSample); in dequeueOutput() 207 mRefYuv.mWidth, mRefYuv.mHeight, mRefYuv.mBytesPerSample, width, in dequeueOutput() 213 mFrameSize = mRefYuv.mWidth * mRefYuv.mHeight * mRefYuv.mBytesPerSample * 3 / 2; in dequeueOutput() 221 YUVImage yuvRefImage = fillByteArray(width, height, mRefYuv.mBytesPerSample, in dequeueOutput() 274 double curYMSE = computeMSE(yRef, yTest, mRefYuv.mBytesPerSample, imgWidth, imgHeight, in updateErrorStats() 283 double curUMSE = computeMSE(uRef, uTest, mRefYuv.mBytesPerSample, imgWidth / 2, in updateErrorStats() 287 double curVMSE = computeMSE(vRef, vTest, mRefYuv.mBytesPerSample, imgWidth / 2, in updateErrorStats() 291 double yCurrCropRectPSNR = computePSNR(curYMSE, mRefYuv.mBytesPerSample); in updateErrorStats() 292 double uCurrCropRectPSNR = computePSNR(curUMSE, mRefYuv.mBytesPerSample); in updateErrorStats() [all …]
|
D | CodecEncoderTestBase.java | 363 mActiveRawRes.mBytesPerSample); in fillImage() 441 offset + (k + j) * width * mActiveRawRes.mBytesPerSample in fillByteBuffer() 442 + i * mActiveRawRes.mBytesPerSample); in fillByteBuffer() 444 frmOffset + j * tileWidth * mActiveRawRes.mBytesPerSample, in fillByteBuffer() 445 colsToCopy * mActiveRawRes.mBytesPerSample); in fillByteBuffer() 449 offset += width * height * mActiveRawRes.mBytesPerSample; in fillByteBuffer() 450 frmOffset += tileWidth * tileHeight * mActiveRawRes.mBytesPerSample; in fillByteBuffer() 466 pts += mNumBytesSubmitted * 1000000L / ((long) mActiveRawRes.mBytesPerSample in enqueueInput() 469 assertEquals(0, size % ((long) mActiveRawRes.mBytesPerSample in enqueueInput() 482 size = mActiveRawRes.mBytesPerSample * mActiveEncCfg.mWidth * mActiveEncCfg.mHeight in enqueueInput() [all …]
|
D | CodecEncoderBlockModelTestBase.java | 100 int frameSize = mActiveRawRes.mBytesPerSample * mActiveEncCfg.mChannelCount; in enqueueInput() 107 pts += mNumBytesSubmitted * 1000000L / ((long) mActiveRawRes.mBytesPerSample in enqueueInput() 112 size % ((long) mActiveRawRes.mBytesPerSample * mActiveEncCfg.mChannelCount)); in enqueueInput()
|
D | DecodeStreamToYuv.java | 54 private int mBytesPerSample; field in DecodeStreamToYuv 106 .setBytesPerSample(mBytesPerSample) in getDecodedYuv() 157 mBytesPerSample = (ImageFormat.getBitsPerPixel(imgFormat) * 2) / (8 * 3); in dequeueOutput()
|
D | HDREncoderTestBase.java | 126 / (mActiveRawRes.mWidth * mActiveRawRes.mHeight * mActiveRawRes.mBytesPerSample); in validateHDRInfo()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | SoundRecorderObject.java | 38 private final int mBytesPerSample = 2; //pcm int16 field in SoundRecorderObject 120 mMinRecordBufferSizeInSamples = minRecordBuffSizeInBytes / mBytesPerSample; in initRecord()
|
/cts/tests/videocodec/src/android/videocodec/cts/ |
D | VideoEncoderValidationTestBase.java | 164 int frmSize = 3 * mActiveRawRes.mBytesPerSample * mActiveRawRes.mWidth in enqueueInput() 187 int size = mActiveRawRes.mBytesPerSample * mActiveEncCfg.mWidth in enqueueInput()
|
D | VideoDecodeEditEncodeTest.java | 680 assertEquals("has support for 8 bit clips only", 1, yuv.mBytesPerSample); in computeVariance()
|
/cts/tests/media/jni/ |
D | NativeCodecTestBase.h | 172 int mBytesPerSample; variable
|
D | NativeCodecDecoderTestCommon.cpp | 124 mBytesPerSample = (colorFormat == COLOR_FormatYUVP010) ? 2 : 1; in setUpExtractor() 267 mOutputBuff->updateChecksum(buf, info, width, height, stride, mBytesPerSample); in dequeueOutput()
|
D | NativeCodecTestBase.cpp | 398 mBytesPerSample = mIsAudio ? 2 : 1; in CodecTestBase()
|
/cts/tests/media/src/android/mediav2/cts/ |
D | AudioEncoderTest.java | 193 * mActiveEncCfg.mChannelCount * mActiveRawRes.mBytesPerSample / 1000; in encodeAndValidate()
|
D | CodecEncoderMultiAccessUnitTest.java | 311 int frameSize = mActiveRawRes.mBytesPerSample * mActiveEncCfg.mChannelCount; in testSimpleEncode()
|
D | CodecEncoderBlockModelMultiAccessUnitTest.java | 330 int frameSize = mActiveRawRes.mBytesPerSample * mActiveEncCfg.mChannelCount; in testSimpleEncode()
|