Home
last modified time | relevance | path

Searched refs:lut (Results 1 – 17 of 17) 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.java63 public void setLUT(Allocation lut) { in setLUT() argument
64 final Type t = lut.getType(); in setLUT()
74 mLUT = lut; in setLUT()
/frameworks/native/libs/ui/tests/
Dcolorspace_test.cpp166 auto lut = ColorSpace::createLUT(17, ColorSpace::sRGB(), ColorSpace::AdobeRGB()); in TEST_F() local
167 EXPECT_TRUE(lut != nullptr); in TEST_F()
170 auto r = lut.get()[0 * 17 * 17 + 8 * 17 + 16]; in TEST_F()
174 r = lut.get()[8 * 17 * 17 + 0 * 17 + 16]; // y (G) is flipped in TEST_F()
178 r = lut.get()[16 * 17 * 17 + 0 * 17 + 16]; // y (G) is flipped in TEST_F()
/frameworks/rs/support/java/src/androidx/renderscript/
DScriptIntrinsic3DLUT.java74 public void setLUT(Allocation lut) {
75 final Type t = lut.getType();
85 mLUT = lut;
/frameworks/base/core/jni/
Dcom_android_internal_view_animation_NativeInterpolatorFactoryHelper.cpp84 float* lut = new float[len]; in createLutInterpolator() local
85 env->GetFloatArrayRegion(jlut, 0, len, lut); in createLutInterpolator()
86 return reinterpret_cast<jlong>(new LUTInterpolator(lut, len)); in createLutInterpolator()
/frameworks/base/core/java/com/android/internal/view/animation/
DFallbackLUTInterpolator.java71 float[] lut = createLUT(interpolator, duration); in createNativeInterpolator() local
72 return NativeInterpolatorFactoryHelper.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/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/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);