Home
last modified time | relevance | path

Searched refs:cube (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/core/java/com/android/internal/graphics/palette/
DWuQuantizer.java226 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/
DReferenceLut3d.kt30 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 …]
DAllTests.kt862 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>()
DBufferUtils.kt335 val cube = Rgba3dArray(data, cubeSize.sizeX, cubeSize.sizeY, cubeSize.sizeZ) in identityCube() constant
339 cube[x, y, z] = in identityCube()
/frameworks/rs/toolkit/java/
DToolkit.kt876 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/
DLut3d.cpp56 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()
DJniEntryPoints.cpp415 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()
DRenderScriptToolkit.h476 const uint8_t* _Nonnull cube, size_t cubeSizeX, size_t cubeSizeY, size_t cubeSizeZ,
/frameworks/base/tests/AccessoryDisplay/
DREADME38 and shows a silly cube animation.
/frameworks/rs/script_api/
Drs_object_types.spec96 summary: Enum for selecting cube map faces
Drs_matrix.spec315 six clipping planes <code>left, right, bottom, top, near, far</code> into a unit cube
Drs_math.spec454 Returns the cube root.
2110 summary: Approximate cube root
/frameworks/rs/script_api/include/
Drs_object_types.rsh93 * rs_allocation_cubemap_face: Enum for selecting cube map faces
Drs_matrix.rsh332 * six clipping planes left, right, bottom, top, near, far into a unit cube
Drs_math.rsh647 * Returns the cube root.
4220 * native_cbrt: Approximate cube root