Home
last modified time | relevance | path

Searched refs:lut (Results 1 – 24 of 24) sorted by relevance

/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
Dluts_for_speedup_f32.rsh12 // VisibilityProbability.lut[y][x] = 1.0f/(max(x-y,0)+1).
14 // The value range of VisibilityProbability.lut[y][x] is [0,1].
16 float lut[g_kMaxDepthValue + 1][g_kMaxDepthValue + 1];
36 visibility_probability->lut[y][x] = 0;
39 visibility_probability->lut[y][x] = 1.0f / (max(z - y, 0) + 1);
46 visibility_probability->lut[y][x] =
51 visibility_probability->lut[y][x] = 1;
64 // lut[r][y+g_kMaxKernelRadius] = x;
68 int lut[g_kMaxKernelRadius + 1][2 * g_kMaxKernelRadius + 1];
75 secant_offset->lut[r][y + g_kMaxKernelRadius] =
Dcamera_response.rsh93 static inline float ApplyLUT_Float(float value, float lut[kLUTLength + 1]) {
97 return lut[pos] + delta * (lut[pos + 1] - lut[pos]);
118 static inline int ApplyLUT_Int(int value, int lut[kLUTLength]) {
119 return lut[value];
Dlayered_filter_f32_helper.rsh77 const float *vis_prob = visibility_probability->lut[layer_info->front_depth];
125 secant_offset->lut[kernel_radius_y] + g_kMaxKernelRadius;
Dlayered_filter_d1new_helper.rsh137 const float *vis_prob = visibility_probability->lut[layer_info_i2.s0]; // layer_info.front_depth
188 secant_offset->lut[kernel_radius_y] + g_kMaxKernelRadius;
Dlayered_filter_fast_f32.rscript261 g_visibility_probability.lut[g_target_layer.front_depth];
Dlayered_filter_fast_d1new.rscript345 g_visibility_probability.lut[g_target_layer_i2.s0];
/frameworks/rs/cpu_ref/
DrsCpuIntrinsicLUT.cpp36 ObjectBaseRef<Allocation> lut; member in android::renderscript::RsdCpuScriptIntrinsicLUT
46 lut.set(static_cast<Allocation *>(data)); in setGlobalObj()
60 const uchar *tr = (const uchar *)cp->lut->mHal.drvState.lod[0].mallocPtr; in kernel()
91 lut.clear(); in invokeFreeChildren()
DrsCpuIntrinsic3DLUT.cpp49 void const *lut,
/frameworks/base/rs/java/android/renderscript/
DScriptIntrinsic3DLUT.java67 public void setLUT(Allocation lut) { in setLUT() argument
68 final Type t = lut.getType(); in setLUT()
78 mLUT = lut; in setLUT()
/frameworks/rs/support/java/src/androidx/renderscript/
DScriptIntrinsic3DLUT.java78 public void setLUT(Allocation lut) {
79 final Type t = lut.getType();
89 mLUT = lut;
/frameworks/native/libs/ui/tests/
Dcolorspace_test.cpp169 auto lut = ColorSpace::createLUT(17, ColorSpace::sRGB(), ColorSpace::AdobeRGB()); in TEST_F() local
170 EXPECT_TRUE(lut != nullptr); in TEST_F()
173 auto r = lut.get()[0 * 17 * 17 + 8 * 17 + 16]; in TEST_F()
177 r = lut.get()[8 * 17 * 17 + 0 * 17 + 16]; // y (G) is flipped in TEST_F()
181 r = lut.get()[16 * 17 * 17 + 0 * 17 + 16]; // y (G) is flipped in TEST_F()
/frameworks/base/libs/hwui/jni/
Dandroid_graphics_animation_NativeInterpolatorFactory.cpp82 float* lut = new float[len]; in createLutInterpolator() local
83 env->GetFloatArrayRegion(jlut, 0, len, lut); in createLutInterpolator()
84 return reinterpret_cast<jlong>(new LUTInterpolator(lut, len)); in createLutInterpolator()
/frameworks/base/graphics/java/android/graphics/animation/
DFallbackLUTInterpolator.java72 float[] lut = createLUT(interpolator, duration); in createNativeInterpolator() local
73 return NativeInterpolatorFactory.createLutInterpolator(lut); in createNativeInterpolator()
/frameworks/native/libs/ui/tools/
Dlutgen.cpp144 auto lut = ColorSpace::createLUT(gSize, gColorSpaceSrc, gColorSpaceDst); in main() local
145 auto data = lut.get(); in main()
/frameworks/rs/toolkit/
DLut.cpp68 void RenderScriptToolkit::lut(const uint8_t* input, uint8_t* output, size_t sizeX, size_t sizeY, in lut() function in android::renderscript::RenderScriptToolkit
DRenderScriptToolkit.h442 void lut(const uint8_t* _Nonnull in, uint8_t* _Nonnull out, size_t sizeX, size_t sizeY,
DLut3d.cpp65 extern "C" void rsdIntrinsic3DLUT_K(void* dst, void const* in, size_t count, void const* lut,
DJniEntryPoints.cpp385 toolkit->lut(input.get(), output.get(), size_x, size_y, red.get(), green.get(), blue.get(), in Java_android_renderscript_toolkit_Toolkit_nativeLut()
403 toolkit->lut(input.get(), output.get(), input.width(), input.height(), red.get(), green.get(), in Java_android_renderscript_toolkit_Toolkit_nativeLutBitmap()
/frameworks/native/libs/ui/
DColorSpace.cpp359 std::unique_ptr<float3[]> lut(new float3[size * size * size]); in createLUT() local
360 float3* data = lut.get(); in createLUT()
376 return lut; in createLUT()
/frameworks/base/libs/hwui/utils/
DHostColorSpace.cpp360 std::unique_ptr<float3[]> lut(new float3[size * size * size]); in createLUT() local
361 float3* data = lut.get(); in createLUT()
373 return lut; in createLUT()
/frameworks/rs/cpp/
DScriptIntrinsics.cpp66 void ScriptIntrinsic3DLUT::setLUT(const sp<Allocation>& lut) { in setLUT() argument
67 sp<const Type> t = lut->getType(); in setLUT()
77 Script::setVar(0, lut); in setLUT()
DrsCppStructs.h1809 void setLUT(const sp<Allocation>& lut);
/frameworks/rs/toolkit/java/
DToolkit.kt771 fun lut( in lut() method
822 fun lut( in lut() method
/frameworks/rs/toolkit/test/
DAllTests.kt740 toolkit.lut(inputArray, sizeX, sizeY, table, restriction) in <lambda>()
783 toolkit.lut(bitmap, table, restriction) in <lambda>()