/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/image/ |
D | RangeLinearDepthTransform.java | 15 private final float near; field in RangeLinearDepthTransform 18 public RangeLinearDepthTransform(float near, float far) { in RangeLinearDepthTransform() argument 19 this.near = near; in RangeLinearDepthTransform() 25 return near; in getNear() 41 (int) ((value - near) / (far - near) * 255f))); in quantize() 46 return near + (far - near) * Math.max(0, Math.min(255, value)) / 255f; in reconstruct()
|
D | RangeInverseDepthTransform.java | 14 private final float near; field in RangeInverseDepthTransform 17 public RangeInverseDepthTransform(float near, float far) { in RangeInverseDepthTransform() argument 18 this.near = near; in RangeInverseDepthTransform() 24 return near; in getNear() 40 (int) ((far - near * far / value) / (far - near) * 255f))); in quantize() 45 return (far * near) / (far - (far - near) * in reconstruct()
|
/frameworks/av/services/camera/libcameraservice/common/ |
D | DepthPhotoProcessor.cpp | 239 std::vector<float> *confidence /*out*/, float *near /*out*/, float *far /*out*/) { in unpackDepth16() argument 256 if (*near > point) { in unpackDepth16() 257 *near = point; in unpackDepth16() 266 std::vector<float> *confidence /*out*/, float *near /*out*/, float *far /*out*/) { in rotate0AndUnpack() argument 270 confidence, near, far); in rotate0AndUnpack() 278 std::vector<float> *confidence /*out*/, float *near /*out*/, float *far /*out*/) { in rotate90AndUnpack() argument 282 confidence, near, far); in rotate90AndUnpack() 289 std::vector<float> *confidence /*out*/, float *near /*out*/, float *far /*out*/) { in rotate180AndUnpack() argument 293 confidence, near, far); in rotate180AndUnpack() 301 std::vector<float> *confidence /*out*/, float *near /*out*/, float *far /*out*/) { in rotate270AndUnpack() argument [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/brightline/ |
D | ProximityClassifier.java | 102 boolean near = proximityEvent.getNear(); in onProximityEvent() 104 logDebug("Sensor is: " + near + " at time " + timestampNs); in onProximityEvent() 105 update(near, timestampNs); in onProximityEvent() 127 private void update(boolean near, long timeStampNs) { in update() argument 133 if (near) { in update() 138 mNear = near; in update()
|
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
D | DepthImage.java | 41 public DepthImage(String format, double far, double near, in DepthImage() argument 48 mNear = near; in DepthImage() 79 double near = 12.0; in createFromDepthmap() local 81 DepthTransform transform = new RangeInverseDepthTransform((float)near, (float)far); in createFromDepthmap() 84 near, in createFromDepthmap() 129 final float near = minMax.min; in createFromPFM() local 131 DepthTransform transform = new RangeInverseDepthTransform(near, far); in createFromPFM() 157 near, in createFromPFM()
|
/frameworks/rs/ |
D | rsMatrix4x4.cpp | 276 void Matrix4x4::loadOrtho(float left, float right, float bottom, float top, float near, float far) { in loadOrtho() argument 280 m[10]= -2.f / (far - near); in loadOrtho() 283 m[14]= -(far + near) / (far - near); in loadOrtho() 286 void Matrix4x4::loadFrustum(float left, float right, float bottom, float top, float near, float far… in loadFrustum() argument 288 m[0] = 2.f * near / (right - left); in loadFrustum() 289 m[5] = 2.f * near / (top - bottom); in loadFrustum() 292 m[10]= -(far + near) / (far - near); in loadFrustum() 294 m[14]= -2.f * far * near / (far - near); in loadFrustum() 298 void Matrix4x4::loadPerspective(float fovy, float aspect, float near, float far) { in loadPerspective() argument 299 float top = near * tan((float) (fovy * M_PI / 360.0f)); in loadPerspective() [all …]
|
D | rsRuntime.h | 211 float bottom, float top, float near, float far); 213 float bottom, float top, float near, float far); 214 void rsrMatrixLoadPerspective(rs_matrix4x4* m, float fovy, float aspect, float near, float far);
|
D | rsMatrix4x4.h | 49 void loadPerspective(float fovy, float aspect, float near, float far);
|
/frameworks/native/libs/math/include/math/ |
D | mat4.h | 277 static CONSTEXPR TMat44 ortho(T left, T right, T bottom, T top, T near, T far); 279 static CONSTEXPR TMat44 frustum(T left, T right, T bottom, T top, T near, T far); 285 …static CONSTEXPR TMat44 perspective(T fov, T aspect, T near, T far, Fov direction = Fov::VERTICAL); 447 CONSTEXPR TMat44<T> TMat44<T>::ortho(T left, T right, T bottom, T top, T near, T far) { in ortho() argument 451 m[2][2] = -2 / (far - near); in ortho() 454 m[3][2] = -(far + near) / (far - near); in ortho() 459 CONSTEXPR TMat44<T> TMat44<T>::frustum(T left, T right, T bottom, T top, T near, T far) { in frustum() argument 461 m[0][0] = (2 * near) / (right - left); in frustum() 462 m[1][1] = (2 * near) / (top - bottom); in frustum() 465 m[2][2] = -(far + near) / (far - near); in frustum() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
D | ProximityClassifier.java | 76 private void update(boolean near, long timestampNano) { 87 if (near) { 91 mNear = near;
|
/frameworks/base/opengl/java/android/opengl/ |
D | Matrix.java | 271 float near, float far) { in orthoM() argument 278 if (near == far) { in orthoM() 284 final float r_depth = 1.0f / (far - near); in orthoM() 290 final float tz = -(far + near) * r_depth; in orthoM() 325 float near, float far) { in frustumM() argument 332 if (near == far) { in frustumM() 335 if (near <= 0.0f) { in frustumM() 343 final float r_depth = 1.0f / (near - far); in frustumM() 344 final float x = 2.0f * (near * r_width); in frustumM() 345 final float y = 2.0f * (near * r_height); in frustumM() [all …]
|
D | GLErrorWrapper.java | 231 public void glDepthRangef(float near, float far) { in glDepthRangef() argument 233 mgl.glDepthRangef(near, far); in glDepthRangef() 237 public void glDepthRangex(int near, int far) { in glDepthRangex() argument 239 mgl.glDepthRangex(near, far); in glDepthRangex() 334 float near, float far) { in glFrustumf() argument 336 mgl.glFrustumf(left, right, bottom, top, near, far); in glFrustumf() 340 public void glFrustumx(int left, int right, int bottom, int top, int near, in glFrustumx() argument 343 mgl.glFrustumx(left, right, bottom, top, near, far); in glFrustumx() 608 float near, float far) { in glOrthof() argument 610 mgl.glOrthof(left, right, bottom, top, near, far); in glOrthof() [all …]
|
D | GLLogWrapper.java | 1461 public void glDepthRangef(float near, float far) { in glDepthRangef() argument 1463 arg("near", near); in glDepthRangef() 1467 mgl.glDepthRangef(near, far); in glDepthRangef() 1471 public void glDepthRangex(int near, int far) { in glDepthRangex() argument 1473 arg("near", near); in glDepthRangex() 1477 mgl.glDepthRangex(near, far); in glDepthRangex() 1667 float near, float far) { in glFrustumf() argument 1673 arg("near", near); in glFrustumf() 1677 mgl.glFrustumf(left, right, bottom, top, near, far); in glFrustumf() 1681 public void glFrustumx(int left, int right, int bottom, int top, int near, in glFrustumx() argument [all …]
|
/frameworks/rs/script_api/ |
D | rs_matrix.spec | 56 arg: float4* near, "Near plane." 83 near->x = viewProj->m[3] + viewProj->m[2]; 84 near->y = viewProj->m[7] + viewProj->m[6]; 85 near->z = viewProj->m[11] + viewProj->m[10]; 86 near->w = viewProj->m[15] + viewProj->m[14]; 101 len = length(near->xyz); 102 *near /= len; 117 arg: float4* near 131 arg: float4* near, "Near plane." 153 distToCenter = dot(near->xyz, sphere->xyz) + near->w; [all …]
|
/frameworks/rs/driver/runtime/ |
D | rs_matrix.c | 322 float4* bottom, float4* near, float4* far) { in rsExtractFrustumPlanes() argument 344 near->x = viewProj->m[3] + viewProj->m[2]; in rsExtractFrustumPlanes() 345 near->y = viewProj->m[7] + viewProj->m[6]; in rsExtractFrustumPlanes() 346 near->z = viewProj->m[11] + viewProj->m[10]; in rsExtractFrustumPlanes() 347 near->w = viewProj->m[15] + viewProj->m[14]; in rsExtractFrustumPlanes() 362 len = length(near->xyz); in rsExtractFrustumPlanes() 363 *near /= len; in rsExtractFrustumPlanes() 370 float4* near, float4* far) { in rsIsSphereInFrustum() argument 387 distToCenter = dot(near->xyz, sphere->xyz) + near->w; in rsIsSphereInFrustum()
|
/frameworks/rs/script_api/include/ |
D | rs_matrix.rsh | 64 * near: Near plane. 70 float4* bottom, float4* near, float4* far) { 92 near->x = viewProj->m[3] + viewProj->m[2]; 93 near->y = viewProj->m[7] + viewProj->m[6]; 94 near->z = viewProj->m[11] + viewProj->m[10]; 95 near->w = viewProj->m[15] + viewProj->m[14]; 110 len = length(near->xyz); 111 *near /= len; 120 float4* bottom, float4* near, float4* far); 134 * near: Near plane. [all …]
|
/frameworks/rs/cpu_ref/ |
D | rsCpuRuntimeMath.cpp | 80 static void SC_MatrixLoadPerspective(Matrix4x4 *m, float fovy, float aspect, float near, float far)… in SC_MatrixLoadPerspective() argument 81 m->loadPerspective(fovy, aspect, near, far); in SC_MatrixLoadPerspective() 186 float fovy, float aspect, float near, float far) { in rsMatrixLoadPerspective() argument 187 SC_MatrixLoadPerspective((Matrix4x4 *) m, fovy, aspect, near, far); in rsMatrixLoadPerspective()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
D | ProximitySensor.java | 192 public ProximityEvent(boolean near, long timestampNs) { in ProximityEvent() argument 193 mNear = near; in ProximityEvent()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeLog.java | 191 public static void traceProximityResult(Context context, boolean near, long millis, in traceProximityResult() argument 195 log("proximityResult reason=" + reasonToString(reason) + " near=" + near in traceProximityResult() 197 sProxStats[reason][near ? 0 : 1].append(); in traceProximityResult()
|
D | DozeTriggers.java | 230 final boolean near = !far; 238 boolean ignoreTouch = near; 250 } else if (near && aod) {
|
/frameworks/rs/support/java/src/androidx/renderscript/ |
D | Matrix4f.java | 311 public void loadPerspective(float fovy, float aspect, float near, float far) { in loadPerspective() argument 312 float top = near * (float)Math.tan((float) (fovy * Math.PI / 360.0f)); in loadPerspective() 316 loadFrustum(left, right, bottom, top, near, far); in loadPerspective()
|
/frameworks/base/rs/java/android/renderscript/ |
D | Matrix4f.java | 310 public void loadPerspective(float fovy, float aspect, float near, float far) { in loadPerspective() argument 311 float top = near * (float)Math.tan((float) (fovy * Math.PI / 360.0f)); in loadPerspective() 315 loadFrustum(left, right, bottom, top, near, far); in loadPerspective()
|
/frameworks/base/libs/hwui/ |
D | Matrix.cpp | 401 void Matrix4::loadOrtho(float left, float right, float bottom, float top, float near, float far) { in loadOrtho() argument 406 data[kScaleZ] = -2.0f / (far - near); in loadOrtho() 409 data[kTranslateZ] = -(far + near) / (far - near); in loadOrtho()
|
D | Matrix.h | 120 void loadOrtho(float left, float right, float bottom, float top, float near, float far);
|
/frameworks/native/opengl/libagl/ |
D | matrix.cpp | 691 GLfloat near = c->transforms.vpt.zNear; in ogles_viewport() local 693 GLfloat A = div2f(far - near); in ogles_viewport() 694 GLfloat B = div2f(far + near); in ogles_viewport()
|