/frameworks/rs/toolkit/java/ |
D | Toolkit.kt | 81 sizeY: Int, in blend() 84 require(sourceArray.size >= sizeX * sizeY * 4) { in blend() 86 "$sizeX*$sizeY*4 < ${sourceArray.size}." in blend() 88 require(destArray.size >= sizeX * sizeY * 4) { in blend() 90 "$sizeX*$sizeY*4 < ${sourceArray.size}." in blend() 92 validateRestriction("blend", sizeX, sizeY, restriction) in blend() 94 nativeBlend(nativeHandle, mode.value, sourceArray, destArray, sizeX, sizeY, restriction) in blend() 180 sizeY: Int, in blur() 187 require(inputArray.size >= sizeX * sizeY * vectorSize) { in blur() 189 "$sizeX*$sizeY*$vectorSize < ${inputArray.size}." in blur() [all …]
|
/frameworks/rs/toolkit/test/ |
D | AllTests.kt | 35 val sizeY: Int, in <lambda>() constant in com.example.testapp.TestLayout 121 commonLayoutsToTry.all { (sizeX, sizeY, restriction) -> in <lambda>() method 122 testOneRandomBlend(timer, sizeX, sizeY, mode, restriction) in <lambda>() 131 sizeY: Int, in <lambda>() 135 val sourceArray = randomByteArray(0x50521f0, sizeX, sizeY, 4) in <lambda>() 136 val destArray = randomByteArray(0x2932147, sizeX, sizeY, 4) in <lambda>() 144 renderscriptContext, mode, sourceArray, intrinsicDestArray, sizeX, sizeY, in <lambda>() 149 toolkit.blend(mode, sourceArray, toolkitDestArray, sizeX, sizeY, restriction) in <lambda>() 154 referenceBlend(mode, sourceArray, referenceDestArray, sizeX, sizeY, restriction) in <lambda>() 160 println("blend $mode ($sizeX, $sizeY) $restriction") in <lambda>() [all …]
|
D | ReferenceYuvToRgb.kt | 26 fun referenceYuvToRgb(inputSignedArray: ByteArray, sizeX: Int, sizeY: Int, format: YuvFormat): Byte… in referenceYuvToRgb() 30 val outputArray = ByteArray(sizeX * sizeY * 4) in referenceYuvToRgb() 31 val output = Vector2dArray(outputArray.asUByteArray(), 4, sizeX, sizeY) in referenceYuvToRgb() 36 val startU = sizeX * sizeY + 1 in referenceYuvToRgb() 37 val startV = sizeX * sizeY in referenceYuvToRgb() 39 for (y in 0 until sizeY) { in referenceYuvToRgb() 63 val startU = strideX * sizeY in referenceYuvToRgb() 64 val startV = startU + strideUV * sizeY / 2 in referenceYuvToRgb() 66 for (y in 0 until sizeY) { in referenceYuvToRgb()
|
D | BufferUtils.kt | 102 data class Dimension(val sizeX: Int, val sizeY: Int, val sizeZ: Int) constant in com.example.testapp.Dimension 149 val sizeY: Int in plus() constant in com.example.testapp.Vector2dArray 163 fixedY = min(max(y, 0), sizeY - 1) in plus() 165 require(x in 0 until sizeX && y in 0 until sizeY) { "Out of bounds" } in plus() 173 require(x in 0 until sizeX && y in 0 until sizeY) { "Out of bounds" } in plus() 182 fun createSameSized() = Vector2dArray(UByteArray(values.size), vectorSize, sizeX, sizeY) in plus() 185 forEachCell(sizeX, sizeY, restriction, work) in plus() 198 val sizeY: Int constant in com.example.testapp.FloatVector2dArray 212 fixedY = min(max(y, 0), sizeY - 1) in get() 214 require(x in 0 until sizeX && y in 0 until sizeY) { "Out of bounds" } in get() [all …]
|
D | ReferenceColorMatrix.kt | 28 sizeY: Int, in <lambda>() 34 val input = Vector2dArray(inputArray.asUByteArray(), inputVectorSize, sizeX, sizeY) in <lambda>() 35 val outputArray = ByteArray(sizeX * sizeY * paddedSize(outputVectorSize)) in <lambda>() 36 val output = Vector2dArray(outputArray.asUByteArray(), outputVectorSize, sizeX, sizeY) in <lambda>()
|
D | ReferenceHistogram.kt | 37 sizeY: Int, in <lambda>() 40 val input = Vector2dArray(inputArray.asUByteArray(), vectorSize, sizeX, sizeY) in <lambda>() 63 sizeY: Int, in referenceHistogramDot() 68 val input = Vector2dArray(inputArray.asUByteArray(), vectorSize, sizeX, sizeY) in referenceHistogramDot()
|
D | IntrinsicYuvToRgb.kt | 34 sizeY: Int, in intrinsicYuvToRgb() 43 inputBuilder.setY(sizeY) in intrinsicYuvToRgb() 54 outputBuilder.setY(sizeY) in intrinsicYuvToRgb() 57 val intrinsicOutArray = ByteArray(sizeX * sizeY * 4) in intrinsicYuvToRgb()
|
D | IntrinsicLut3d.kt | 35 sizeY: Int, in intrinsicLut3d() 47 builder.setY(sizeY) in intrinsicLut3d() 52 val intrinsicOutArray = ByteArray(sizeX * sizeY * 4) in intrinsicLut3d() 57 cubeTypeBuilder.setY(cubeSize.sizeY) in intrinsicLut3d() 100 cubeTypeBuilder.setY(cubeSize.sizeY) in intrinsicLut3d()
|
D | IntrinsicColorMatrix.kt | 38 sizeY: Int, in intrinsicColorMatrix() 52 inputBuilder.setY(sizeY) in intrinsicColorMatrix() 62 outputBuilder.setY(sizeY) in intrinsicColorMatrix() 67 val intrinsicOutArray = ByteArray(sizeX * sizeY * paddedSize(outputVectorSize)) in intrinsicColorMatrix()
|
D | ReferenceLut.kt | 29 sizeY: Int, in <lambda>() 33 val input = Vector2dArray(inputArray.asUByteArray(), 4, sizeX, sizeY) in <lambda>()
|
D | IntrinsicBlur.kt | 36 sizeY: Int, in intrinsicBlur() 50 builder.setY(sizeY) in intrinsicBlur() 56 val intrinsicOutArray = ByteArray(sizeX * sizeY * vectorSize) in intrinsicBlur()
|
D | ReferenceLut3d.kt | 29 sizeY: Int, in <lambda>() 33 val input = Vector2dArray(inputArray.asUByteArray(), 4, sizeX, sizeY) in <lambda>() 45 val maxIndex = Int4(cube.sizeX - 1, cube.sizeY - 1, cube.sizeZ - 1, 0) in lookup()
|
D | ReferenceBlend.kt | 33 sizeY: Int, in <lambda>() 36 val source = Rgba2dArray(sourceArray, sizeX, sizeY) in <lambda>() 37 val dest = Rgba2dArray(destArray, sizeX, sizeY) in <lambda>()
|
D | ReferenceConvolve.kt | 29 sizeY: Int, in <lambda>() 33 val input = Vector2dArray(inputArray.asUByteArray(), vectorSize, sizeX, sizeY) in <lambda>()
|
D | ReferenceBlur.kt | 32 sizeY: Int, in <lambda>() 42 val inputInFloat = FloatVector2dArray(inputValues, vectorSize, sizeX, sizeY) in <lambda>() 68 min(restriction.endY + radius, input.sizeY) in horizontalBlur()
|
/frameworks/rs/toolkit/ |
D | RenderScriptToolkit.h | 193 size_t sizeX, size_t sizeY, const Restriction* _Nullable restriction = nullptr); 223 void blur(const uint8_t* _Nonnull in, uint8_t* _Nonnull out, size_t sizeX, size_t sizeY, 316 size_t outputVectorSize, size_t sizeX, size_t sizeY, 350 size_t sizeY, const float* _Nonnull coefficients, 354 size_t sizeY, const float* _Nonnull coefficients, 381 void histogram(const uint8_t* _Nonnull in, int32_t* _Nonnull out, size_t sizeX, size_t sizeY, 412 void histogramDot(const uint8_t* _Nonnull in, int32_t* _Nonnull out, size_t sizeX, size_t sizeY, 442 void lut(const uint8_t* _Nonnull in, uint8_t* _Nonnull out, size_t sizeX, size_t sizeY, 475 void lut3d(const uint8_t* _Nonnull in, uint8_t* _Nonnull out, size_t sizeX, size_t sizeY, 533 void yuvToRgb(const uint8_t* _Nonnull in, uint8_t* _Nonnull out, size_t sizeX, size_t sizeY,
|
D | TestTaskProcessor.cpp | 15 SimpleTask(uint8_t* buffer, size_t vectorSize, size_t sizeX, size_t sizeY, uint8_t delta) in SimpleTask() argument 16 : Task{sizeX, sizeY, vectorSize, false, nullptr}, mBuffer{buffer}, mDelta{delta} {} in SimpleTask() 45 size_t sizeY, uint8_t delta) { in verifyAllTheSame() argument 46 for (size_t y = 0; y < sizeY; y++) { in verifyAllTheSame() 67 size_t sizeX, size_t sizeY) { in testOne() argument 68 std::vector<uint8_t> buffer(sizeX * sizeY * vectorSize); in testOne() 70 SimpleTask task{buffer.data(), vectorSize, sizeX, sizeY, delta}; in testOne() 73 if (verifyAllTheSame(buffer, vectorSize, sizeX, sizeY, delta)) { in testOne()
|
D | Utils.cpp | 48 bool validRestriction(const char* tag, size_t sizeX, size_t sizeY, const Restriction* restriction) { in validRestriction() argument 58 if (restriction->startY >= sizeY && restriction->endY > sizeY) { in validRestriction() 61 tag, sizeY, restriction->startY, restriction->endY); in validRestriction()
|
D | Lut.cpp | 41 LutTask(const uint8_t* input, uint8_t* output, size_t sizeX, size_t sizeY, const uint8_t* red, in LutTask() argument 44 : Task{sizeX, sizeY, 4, true, restriction}, in LutTask() 68 void RenderScriptToolkit::lut(const uint8_t* input, uint8_t* output, size_t sizeX, size_t sizeY, in lut() argument 72 if (!validRestriction(LOG_TAG, sizeX, sizeY, restriction)) { in lut() 77 LutTask task(input, output, sizeX, sizeY, red, green, blue, alpha, restriction); in lut()
|
D | Convolve3x3.cpp | 41 void convolveU4(const uchar* pin, uchar* pout, size_t vectorSize, size_t sizeX, size_t sizeY, 49 Convolve3x3Task(const void* in, void* out, size_t vectorSize, size_t sizeX, size_t sizeY, in Convolve3x3Task() argument 51 : Task{sizeX, sizeY, vectorSize, false, restriction}, mIn{in}, mOut{out} { in Convolve3x3Task() 172 uint32_t currentY, size_t sizeX, size_t sizeY, in RsdCpuScriptIntrinsicConvolve3x3_kernelF() argument 177 uint32_t y1 = std::min((int32_t)currentY + 1, (int32_t)(sizeY - 1)); in RsdCpuScriptIntrinsicConvolve3x3_kernelF() 190 static void convolveU(const uchar* pin, uchar* pout, size_t vectorSize, size_t sizeX, size_t sizeY, in convolveU() argument 194 uint32_t y1 = std::min((int32_t)y + 1, (int32_t)(sizeY - 1)); in convolveU() 209 size_t sizeY, size_t startX, size_t startY, size_t endX, in convolveU4() argument 213 uint32_t y1 = std::min((int32_t)y + 1, (int32_t)(sizeY - 1)); in convolveU4() 247 size_t sizeY, const float* coefficients, in convolve3x3() argument [all …]
|
D | Histogram.cpp | 44 HistogramTask(const uint8_t* in, size_t sizeX, size_t sizeY, size_t vectorSize, 62 HistogramDotTask(const uint8_t* in, size_t sizeX, size_t sizeY, size_t vectorSize, 71 HistogramTask::HistogramTask(const uchar* in, size_t sizeX, size_t sizeY, size_t vectorSize, in HistogramTask() argument 73 : Task{sizeX, sizeY, vectorSize, true, restriction}, in HistogramTask() 153 HistogramDotTask::HistogramDotTask(const uchar* in, size_t sizeX, size_t sizeY, size_t vectorSize, in HistogramDotTask() argument 156 : Task{sizeX, sizeY, vectorSize, true, restriction}, mIn{in}, mSums(256 * threadCount, 0) { in HistogramDotTask() 247 void RenderScriptToolkit::histogram(const uint8_t* in, int32_t* out, size_t sizeX, size_t sizeY, in histogram() argument 250 if (!validRestriction(LOG_TAG, sizeX, sizeY, restriction)) { in histogram() 259 HistogramTask task(in, sizeX, sizeY, vectorSize, processor->getNumberOfThreads(), restriction); in histogram() 264 void RenderScriptToolkit::histogramDot(const uint8_t* in, int32_t* out, size_t sizeX, size_t sizeY, in histogramDot() argument [all …]
|
D | Convolve5x5.cpp | 42 void convolveU4(const uchar* pin, uchar* pout, size_t vectorSize, size_t sizeX, size_t sizeY, 50 Convolve5x5Task(const void* in, void* out, size_t vectorSize, size_t sizeX, size_t sizeY, in Convolve5x5Task() argument 52 : Task{sizeX, sizeY, vectorSize, false, restriction}, mIn{in}, mOut{out} { in Convolve5x5Task() 205 uint32_t y3 = std::min((int32_t)currentY + 1, sizeY); in kernelF4() 206 uint32_t y4 = std::min((int32_t)currentY + 2, sizeY); in kernelF4() 227 uint32_t y3 = std::min((int32_t)currentY + 1, sizeY); in RsdCpuScriptIntrinsicConvolve5x5_kernelF2() 228 uint32_t y4 = std::min((int32_t)currentY + 2, sizeY); in RsdCpuScriptIntrinsicConvolve5x5_kernelF2() 249 uint32_t y3 = std::min((int32_t)currentY + 1, sizeY); in RsdCpuScriptIntrinsicConvolve5x5_kernelF1() 250 uint32_t y4 = std::min((int32_t)currentY + 2, sizeY); in RsdCpuScriptIntrinsicConvolve5x5_kernelF1() 265 static void convolveU(const uchar* pin, uchar* pout, size_t vectorSize, size_t sizeX, size_t sizeY, in convolveU() argument [all …]
|
D | YuvToRgb.cpp | 48 YuvToRgbTask(const uint8_t* input, uint8_t* output, size_t sizeX, size_t sizeY, in YuvToRgbTask() argument 50 : Task{sizeX, sizeY, 4, false, nullptr}, mOut{reinterpret_cast<uchar4*>(output)} { in YuvToRgbTask() 58 mInV = reinterpret_cast<const uchar*>(input + mStrideY * sizeY); 67 mInU = reinterpret_cast<const uchar*>(input + mStrideY * sizeY); 68 mInV = mInU + mStrideV * sizeY / 2; 235 size_t sizeY, YuvFormat format) { in yuvToRgb() argument 236 YuvToRgbTask task(input, output, sizeX, sizeY, format); in yuvToRgb()
|
D | Blur.cpp | 68 BlurTask(const uint8_t* in, uint8_t* out, size_t sizeX, size_t sizeY, size_t vectorSize, in BlurTask() argument 70 : Task{sizeX, sizeY, vectorSize, false, restriction}, in BlurTask() 142 static void OneVU4(uint32_t sizeY, float4* out, int32_t x, int32_t y, const uchar* ptrIn, in OneVU4() argument 149 validY = std::min(validY, (int)(sizeY - 1)); in OneVU4() 171 static void OneVU1(uint32_t sizeY, float *out, int32_t x, int32_t y, in OneVU1() argument 179 validY = std::min(validY, (int)(sizeY - 1)); in OneVU1() 525 void RenderScriptToolkit::blur(const uint8_t* in, uint8_t* out, size_t sizeX, size_t sizeY, in blur() argument 528 if (!validRestriction(LOG_TAG, sizeX, sizeY, restriction)) { in blur() 539 BlurTask task(in, out, sizeX, sizeY, vectorSize, processor->getNumberOfThreads(), radius, in blur()
|
/frameworks/base/tests/TransformTest/src/com/google/android/test/transform/ |
D | TransformTestActivity.java | 96 float sizeY = mDrawable.getIntrinsicHeight()/2; in onScale() local 106 mMatrix.postTranslate(-sizeX, -sizeY); in onScale() 138 float sizeY = mDrawable.getIntrinsicHeight()/2; in setDrawable() local 140 mMatrix.postTranslate(-sizeX, -sizeY); in setDrawable() 166 float sizeY = mDrawable.getIntrinsicHeight()/2; in onTouchEvent() local 169 mMatrix.postTranslate(-sizeX, -sizeY); in onTouchEvent()
|