Home
last modified time | relevance | path

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

/cts/tests/tests/media/src/android/media/cts/
DVideoCodecTestBase.java465 private static byte[] imageScale(byte[] src, int srcWidth, int srcHeight, in imageScale() argument
467 int srcYSize = srcWidth * srcHeight; in imageScale()
470 if (dstWidth == 2 * srcWidth && dstHeight <= 2 * srcHeight) { in imageScale()
473 imageUpscale1To2(src, 0, srcWidth, in imageScale()
475 imageUpscale1To2(src, srcYSize, srcWidth / 2, in imageScale()
477 imageUpscale1To2(src, srcYSize * 5 / 4, srcWidth / 2, in imageScale()
479 } else if (dstWidth == 4 * srcWidth && dstHeight <= 4 * srcHeight) { in imageScale()
481 int midWidth = 2 * srcWidth; in imageScale()
483 byte[] midBuffer = imageScale(src, srcWidth, srcHeight, midWidth, midHeight); in imageScale()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/
DMockTvInputService.java307 int srcWidth = b.getWidth(); in draw() local
312 c.drawBitmap(b, new Rect(0, 0, srcWidth, srcHeight), in draw()