Home
last modified time | relevance | path

Searched refs:mBytesPerSample (Results 1 – 16 of 16) sorted by relevance

/cts/tests/media/common/src/android/mediav2/common/cts/
DRawResource.java33 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()
DVideoErrorManager.java62 || 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 …]
DCompareStreams.java195 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 …]
DCodecEncoderTestBase.java363 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 …]
DCodecEncoderBlockModelTestBase.java100 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()
DDecodeStreamToYuv.java54 private int mBytesPerSample; field in DecodeStreamToYuv
106 .setBytesPerSample(mBytesPerSample) in getDecodedYuv()
157 mBytesPerSample = (ImageFormat.getBitsPerPixel(imgFormat) * 2) / (8 * 3); in dequeueOutput()
DHDREncoderTestBase.java126 / (mActiveRawRes.mWidth * mActiveRawRes.mHeight * mActiveRawRes.mBytesPerSample); in validateHDRInfo()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DSoundRecorderObject.java38 private final int mBytesPerSample = 2; //pcm int16 field in SoundRecorderObject
120 mMinRecordBufferSizeInSamples = minRecordBuffSizeInBytes / mBytesPerSample; in initRecord()
/cts/tests/videocodec/src/android/videocodec/cts/
DVideoEncoderValidationTestBase.java164 int frmSize = 3 * mActiveRawRes.mBytesPerSample * mActiveRawRes.mWidth in enqueueInput()
187 int size = mActiveRawRes.mBytesPerSample * mActiveEncCfg.mWidth in enqueueInput()
DVideoDecodeEditEncodeTest.java680 assertEquals("has support for 8 bit clips only", 1, yuv.mBytesPerSample); in computeVariance()
/cts/tests/media/jni/
DNativeCodecTestBase.h172 int mBytesPerSample; variable
DNativeCodecDecoderTestCommon.cpp124 mBytesPerSample = (colorFormat == COLOR_FormatYUVP010) ? 2 : 1; in setUpExtractor()
267 mOutputBuff->updateChecksum(buf, info, width, height, stride, mBytesPerSample); in dequeueOutput()
DNativeCodecTestBase.cpp398 mBytesPerSample = mIsAudio ? 2 : 1; in CodecTestBase()
/cts/tests/media/src/android/mediav2/cts/
DAudioEncoderTest.java193 * mActiveEncCfg.mChannelCount * mActiveRawRes.mBytesPerSample / 1000; in encodeAndValidate()
DCodecEncoderMultiAccessUnitTest.java311 int frameSize = mActiveRawRes.mBytesPerSample * mActiveEncCfg.mChannelCount; in testSimpleEncode()
DCodecEncoderBlockModelMultiAccessUnitTest.java330 int frameSize = mActiveRawRes.mBytesPerSample * mActiveEncCfg.mChannelCount; in testSimpleEncode()