/frameworks/base/core/java/com/android/internal/graphics/palette/ |
D | WuQuantizer.java | 226 Box cube = mCubes[i]; in createResult() local 227 int weight = volume(cube, mWeights); in createResult() 229 int r = (volume(cube, mMomentsR) / weight); in createResult() 230 int g = (volume(cube, mMomentsG) / weight); in createResult() 231 int b = (volume(cube, mMomentsB) / weight); in createResult() 241 private double variance(Box cube) { in variance() argument 242 int dr = volume(cube, mMomentsR); in variance() 243 int dg = volume(cube, mMomentsG); in variance() 244 int db = volume(cube, mMomentsB); in variance() 246 mMoments[getIndex(cube.r1, cube.g1, cube.b1)] in variance() [all …]
|
/frameworks/rs/toolkit/test/ |
D | ReferenceLut3d.kt | 30 cube: Rgba3dArray, in <lambda>() 36 output[x, y] = lookup(input[x, y], cube) in <lambda>() 42 private fun lookup(input: UByteArray, cube: Rgba3dArray): UByteArray { in lookup() 45 val maxIndex = Int4(cube.sizeX - 1, cube.sizeY - 1, cube.sizeZ - 1, 0) in lookup() 52 val v000 = cube[point1.x, point1.y, point1.z].toFloat4() in lookup() 53 val v100 = cube[point2.x, point1.y, point1.z].toFloat4() in lookup() 54 val v010 = cube[point1.x, point2.y, point1.z].toFloat4() in lookup() 55 val v110 = cube[point2.x, point2.y, point1.z].toFloat4() in lookup() 56 val v001 = cube[point1.x, point1.y, point2.z].toFloat4() in lookup() 57 val v101 = cube[point2.x, point1.y, point2.z].toFloat4() in lookup() [all …]
|
D | AllTests.kt | 862 val cube = Rgba3dArray(cubeArray, cubeSize.sizeX, cubeSize.sizeY, cubeSize.sizeZ) in <lambda>() constant 863 referenceLut3d(inputArray, sizeX, sizeY, cube, restriction) in <lambda>() 901 val cube = Rgba3dArray(cubeArray, cubeSize.sizeX, cubeSize.sizeY, cubeSize.sizeZ) in <lambda>() constant 902 referenceLut3d(getBitmapBytes(bitmap), bitmap.width, bitmap.height, cube, restriction) in <lambda>()
|
D | BufferUtils.kt | 335 val cube = Rgba3dArray(data, cubeSize.sizeX, cubeSize.sizeY, cubeSize.sizeZ) in identityCube() constant 339 cube[x, y, z] = in identityCube()
|
/frameworks/rs/toolkit/java/ |
D | Toolkit.kt | 876 cube: Rgba3dArray, in lut3d() 884 cube.sizeX >= 2 && cube.sizeY >= 2 && cube.sizeZ >= 2 && in lut3d() 885 cube.sizeX <= 256 && cube.sizeY <= 256 && cube.sizeZ <= 256 in lut3d() 894 nativeHandle, inputArray, outputArray, sizeX, sizeY, cube.values, cube.sizeX, in lut3d() 895 cube.sizeY, cube.sizeZ, restriction in lut3d() 928 cube: Rgba3dArray, in lut3d() 936 nativeHandle, inputBitmap, outputBitmap, cube.values, cube.sizeX, in lut3d() 937 cube.sizeY, cube.sizeZ, restriction in lut3d() 1258 cube: ByteArray, in createNative() 1269 cube: ByteArray, in createNative()
|
/frameworks/rs/toolkit/ |
D | Lut3d.cpp | 56 const uint8_t* cube, int cubeSizeX, int cubeSizeY, int cubeSizeZ, in Lut3dTask() argument 62 mCubeTable{cube} {} 168 const uint8_t* cube, size_t cubeSizeX, size_t cubeSizeY, in lut3d() argument 176 Lut3dTask task(input, output, sizeX, sizeY, cube, cubeSizeX, cubeSizeY, cubeSizeZ, restriction); in lut3d()
|
D | JniEntryPoints.cpp | 415 ByteArrayGuard cube{env, cube_values}; in Java_android_renderscript_toolkit_Toolkit_nativeLut3d() local 417 toolkit->lut3d(input.get(), output.get(), size_x, size_y, cube.get(), cubeSizeX, cubeSizeY, in Java_android_renderscript_toolkit_Toolkit_nativeLut3d() 429 ByteArrayGuard cube{env, cube_values}; in Java_android_renderscript_toolkit_Toolkit_nativeLut3dBitmap() local 431 toolkit->lut3d(input.get(), output.get(), input.width(), input.height(), cube.get(), cubeSizeX, in Java_android_renderscript_toolkit_Toolkit_nativeLut3dBitmap()
|
D | RenderScriptToolkit.h | 476 const uint8_t* _Nonnull cube, size_t cubeSizeX, size_t cubeSizeY, size_t cubeSizeZ,
|
/frameworks/base/tests/AccessoryDisplay/ |
D | README | 38 and shows a silly cube animation.
|
/frameworks/rs/script_api/ |
D | rs_object_types.spec | 96 summary: Enum for selecting cube map faces
|
D | rs_matrix.spec | 315 six clipping planes <code>left, right, bottom, top, near, far</code> into a unit cube
|
D | rs_math.spec | 454 Returns the cube root. 2110 summary: Approximate cube root
|
/frameworks/rs/script_api/include/ |
D | rs_object_types.rsh | 93 * rs_allocation_cubemap_face: Enum for selecting cube map faces
|
D | rs_matrix.rsh | 332 * six clipping planes left, right, bottom, top, near, far into a unit cube
|
D | rs_math.rsh | 647 * Returns the cube root. 4220 * native_cbrt: Approximate cube root
|