Home
last modified time | relevance | path

Searched refs:near (Results 1 – 25 of 60) sorted by relevance

123

/frameworks/rs/java/tests/Refocus/src/com/android/rs/test/image/
DRangeLinearDepthTransform.java15 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()
DRangeInverseDepthTransform.java14 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/rs/
DrsMatrix4x4.cpp276 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 …]
DrsRuntime.h215 float bottom, float top, float near, float far);
217 float bottom, float top, float near, float far);
218 void rsrMatrixLoadPerspective(rs_matrix4x4* m, float fovy, float aspect, float near, float far);
DrsMatrix4x4.h49 void loadPerspective(float fovy, float aspect, float near, float far);
/frameworks/native/include/ui/
Dmat4.h134 static tmat44 ortho(T left, T right, T bottom, T top, T near, T far);
136 static tmat44 frustum(T left, T right, T bottom, T top, T near, T far);
232 tmat44<T> tmat44<T>::ortho(T left, T right, T bottom, T top, T near, T far) { in ortho() argument
236 m[2][2] = -2 / (far - near); in ortho()
239 m[3][2] = -(far + near) / (far - near); in ortho()
244 tmat44<T> tmat44<T>::frustum(T left, T right, T bottom, T top, T near, T far) { in frustum() argument
248 T C = (far + near) / (far - near); in frustum()
249 T D = (2 * far * near) / (far - near); in frustum()
250 m[0][0] = (2 * near) / (right - left); in frustum()
251 m[1][1] = (2 * near) / (top - bottom); in frustum()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DProximityClassifier.java76 private void update(boolean near, long timestampNano) {
87 if (near) {
91 mNear = near;
/frameworks/base/opengl/java/android/opengl/
DMatrix.java271 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 …]
DGLErrorWrapper.java231 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 …]
DGLLogWrapper.java1461 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/api/
Drs_matrix.spec56 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/
Drs_matrix.c322 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/scriptc/
Drs_matrix.rsh64 * 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/
DrsCpuRuntimeMath.cpp83 static void SC_MatrixLoadPerspective(Matrix4x4 *m, float fovy, float aspect, float near, float far)… in SC_MatrixLoadPerspective() argument
84 m->loadPerspective(fovy, aspect, near, far); in SC_MatrixLoadPerspective()
189 float fovy, float aspect, float near, float far) { in rsMatrixLoadPerspective() argument
190 SC_MatrixLoadPerspective((Matrix4x4 *) m, fovy, aspect, near, far); in rsMatrixLoadPerspective()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeLog.java153 public static void traceProximityResult(Context context, boolean near, long millis, in traceProximityResult() argument
156 log("proximityResult reason=" + pulseReasonToString(pulseReason) + " near=" + near in traceProximityResult()
159 sProxStats[pulseReason][near ? 0 : 1].append(); in traceProximityResult()
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
DMatrix4f.java311 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/
DMatrix4f.java310 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/
DMatrix.cpp396 void Matrix4::loadOrtho(float left, float right, float bottom, float top, float near, float far) { in loadOrtho() argument
401 data[kScaleZ] = -2.0f / (far - near); in loadOrtho()
404 data[kTranslateZ] = -(far + near) / (far - near); in loadOrtho()
DMatrix.h128 void loadOrtho(float left, float right, float bottom, float top, float near, float far);
/frameworks/base/docs/html/guide/topics/renderscript/reference/
Drs_matrix.jd210 …</a>* bottom, <a href='rs_value_types.html#android_rs:float4'>float4</a>* near, <a href='rs_value_…
223 <tr><th>near</th><td>Near plane.</td></tr>
242 …</a>* bottom, <a href='rs_value_types.html#android_rs:float4'>float4</a>* near, <a href='rs_value_…
255 <tr><th>near</th><td>Near plane.</td></tr>
447 …4x4'>rs_matrix4x4</a>* m, float left, float right, float bottom, float top, float near, float far);
460 <tr><th>near</th><td></td></tr>
466 the six clipping planes <code>left, right, bottom, top, near, far</code>.
569 …4x4'>rs_matrix4x4</a>* m, float left, float right, float bottom, float top, float near, float far);
582 <tr><th>near</th><td></td></tr>
588 six clipping planes <code>left, right, bottom, top, near, far</code> into a unit cube
[all …]
/frameworks/base/docs/html/training/wearables/ui/
Dlayouts.jd30 and round screens. Any content placed near the corners of the screen may be cropped on round
69 on both screen shapes without having views cropped near the edges of round screens.</p>
184 and lets you easily align views on the center or near the edges of the screen.</p>
/frameworks/base/docs/html/guide/topics/sensors/
Dsensors_position.jd182 representing near and far.</p>
398 proximity sensors return the absolute distance, in cm, but some return only near and
445 "near" or "far." In this case, the sensor usually reports its maximum range value in the far state
446 and a lesser value in the near state. Typically, the far value is a value > 5 cm, but this can vary
/frameworks/base/docs/html/design/wear/
Dcontext.jd45 <p>Displays property details and contact options when you are near a new home.</p>
/frameworks/native/opengl/libagl/
Dmatrix.cpp702 GLfloat near = c->transforms.vpt.zNear; in ogles_viewport() local
704 GLfloat A = div2f(far - near); in ogles_viewport()
705 GLfloat B = div2f(far + near); in ogles_viewport()
/frameworks/base/docs/html/ndk/guides/audio/
Dinput-latency.jd94 conversion is to duplicate or drop samples as needed near a zero-crossing point. More

123