Home
last modified time | relevance | path

Searched refs:paddedSize (Results 1 – 18 of 18) sorted by relevance

/frameworks/rs/toolkit/
DHistogram.cpp75 mSums(256 * paddedSize(vectorSize) * threadCount) {
102 int* sums = &mSums[256 * paddedSize(mVectorSize) * threadIndex]; in processData()
105 const uchar* inPtr = mIn + (mSizeX * y + startX) * paddedSize(mVectorSize); in processData()
145 for (uint32_t ct = 0; ct < (256 * paddedSize(mVectorSize)); ct++) { in collateSums()
148 out[ct] += mSums[ct + (256 * paddedSize(mVectorSize) * t)]; in collateSums()
199 const uchar* inPtr = mIn + (mSizeX * y + startX) * paddedSize(mVectorSize); in processData()
DConvolve3x3.cpp211 const size_t stride = paddedSize(vectorSize) * sizeX; in convolveU4()
216 size_t offset = (y * sizeX + startX) * paddedSize(vectorSize); in convolveU4()
DColorMatrix.cpp216 mOutstep = paddedSize(outputVectorSize);
217 mInstep = paddedSize(inputVectorSize);
1031 uchar* in = ((uchar*)mIn) + offset * paddedSize(mInputVectorSize);
1032 uchar* out = ((uchar*)mOut) + offset * paddedSize(mVectorSize);
DUtils.h148 inline size_t paddedSize(size_t size) { in paddedSize() function
DConvolve5x5.cpp292 const size_t stride = paddedSize(vectorSize) * sizeX; in convolveU4()
300 size_t offset = (y * sizeX + startX) * paddedSize(vectorSize); in convolveU4()
DResize.cpp94 size_t offset = (mSizeX * y + startX) * paddedSize(mVectorSize); in processData()
354 const size_t stride = mInputSizeX * paddedSize(mVectorSize); in kernelU4()
/frameworks/rs/toolkit/test/
DReferenceColorMatrix.kt35 val outputArray = ByteArray(sizeX * sizeY * paddedSize(outputVectorSize)) in <lambda>()
42 …val outUByteValue = UByteArray(paddedSize(output.vectorSize)) { unitFloatClampedToUByte(outFloatVa… in <lambda>()
DReferenceHistogram.kt42 val counts = IntArray(paddedSize(input.vectorSize) * 256) in <lambda>()
46 counts[value[i].toInt() * paddedSize(input.vectorSize) + i]++ in <lambda>()
DReferenceConvolve.kt58 var sum = FloatArray(paddedSize(inputAlloc.vectorSize)) in convolveOne()
DBufferUtils.kt168 return UByteArray(paddedSize(vectorSize)) { values[start + it] } in plus()
172 require(value.size == paddedSize(vectorSize)) { "Not the expected vector size" } in plus()
180 private fun indexOfVector(x: Int, y: Int) = ((y * sizeX) + x) * paddedSize(vectorSize) in plus()
228 private fun indexOfVector(x: Int, y: Int) = ((y * sizeX) + x) * paddedSize(vectorSize) in indexOfVector()
293 fun paddedSize(vectorSize: Int) = if (vectorSize == 3) 4 else vectorSize in indexOfVector() method
DIntrinsicResize.kt53 val intrinsicOutArray = ByteArray(outSizeX * outSizeY * paddedSize(vectorSize)) in intrinsicResize()
DIntrinsicConvolve.kt49 val intrinsicOutArray = ByteArray(sizeX * sizeY * paddedSize(vectorSize)) in intrinsicConvolve()
DIntrinsicColorMatrix.kt67 val intrinsicOutArray = ByteArray(sizeX * sizeY * paddedSize(outputVectorSize)) in intrinsicColorMatrix()
DAllTests.kt340 val inputArray = randomByteArray(0x50521f0, sizeX, sizeY, paddedSize(inputVectorSize)) in <lambda>()
473 val inputArray = randomByteArray(0x50521f0, sizeX, sizeY, paddedSize(vectorSize)) in <lambda>()
573 val inputArray = randomByteArray(0x50521f0, sizeX, sizeY, paddedSize(vectorSize)) in <lambda>()
637 val inputArray = randomByteArray(0x50521f0, sizeX, sizeY, paddedSize(vectorSize)) in <lambda>()
976 val inputArray = randomByteArray(0x50521f0, inSizeX, inSizeY, paddedSize(vectorSize)) in <lambda>()
DReferenceResize.kt38 val outArray = UByteArray(outSizeX * outSizeY * paddedSize(input.vectorSize)) in <lambda>()
DIntrinsicHistogram.kt63 val intrinsicOutArray = IntArray(256 * paddedSize(vectorSize)) in intrinsicHistogram()
/frameworks/base/core/java/android/appwidget/
DAppWidgetHostView.java404 SizeF paddedSize = new SizeF(Math.max(0.f, size.getWidth() - xPaddingDips), in updateAppWidgetSize() local
406 paddedSizes.add(paddedSize); in updateAppWidgetSize()
407 minWidth = Math.min(minWidth, paddedSize.getWidth()); in updateAppWidgetSize()
408 maxWidth = Math.max(maxWidth, paddedSize.getWidth()); in updateAppWidgetSize()
409 minHeight = Math.min(minHeight, paddedSize.getHeight()); in updateAppWidgetSize()
410 maxHeight = Math.max(maxHeight, paddedSize.getHeight()); in updateAppWidgetSize()
/frameworks/rs/toolkit/java/
DToolkit.kt368 val outputArray = ByteArray(sizeX * sizeY * paddedSize(outputVectorSize)) in colorMatrix()
582 val outputArray = IntArray(256 * paddedSize(vectorSize)) in histogram()
988 val outputArray = ByteArray(outputSizeX * outputSizeY * paddedSize(vectorSize)) in resize()
1566 internal fun paddedSize(vectorSize: Int) = if (vectorSize == 3) 4 else vectorSize method