/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/image/ |
D | RangeInverseDepthTransform.java | 15 private final float far; field in RangeInverseDepthTransform 17 public RangeInverseDepthTransform(float near, float far) { in RangeInverseDepthTransform() argument 19 this.far = far; in RangeInverseDepthTransform() 29 return far; in getFar() 40 (int) ((far - near * far / value) / (far - near) * 255f))); in quantize() 45 return (far * near) / (far - (far - near) * in reconstruct()
|
D | RangeLinearDepthTransform.java | 16 private final float far; field in RangeLinearDepthTransform 18 public RangeLinearDepthTransform(float near, float far) { in RangeLinearDepthTransform() argument 20 this.far = far; in RangeLinearDepthTransform() 30 return far; in getFar() 41 (int) ((value - near) / (far - near) * 255f))); in quantize() 46 return near + (far - near) * Math.max(0, Math.min(255, value)) / 255f; 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 259 if (*far < point) { in unpackDepth16() 260 *far = 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/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 47 mFar = far; in DepthImage() 80 double far = 120.0; in createFromDepthmap() local 81 DepthTransform transform = new RangeInverseDepthTransform((float)near, (float)far); in createFromDepthmap() 83 far, in createFromDepthmap() 130 final float far = minMax.max; in createFromPFM() local 131 DepthTransform transform = new RangeInverseDepthTransform(near, far); in createFromPFM() 156 far, 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 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 303 loadFrustum(left, right, bottom, top, near, far); in loadPerspective()
|
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 465 m[2][2] = -(far + near) / (far - near); in frustum() 467 m[3][2] = -(2 * far * near) / (far - near); in frustum() 473 CONSTEXPR TMat44<T> TMat44<T>::perspective(T fov, T aspect, T near, T far, TMat44::Fov direction) { in perspective() argument [all …]
|
/frameworks/rs/script_api/ |
D | rs_matrix.spec | 57 arg: float4* far, "Far plane." 88 far->x = viewProj->m[3] - viewProj->m[2]; 89 far->y = viewProj->m[7] - viewProj->m[6]; 90 far->z = viewProj->m[11] - viewProj->m[10]; 91 far->w = viewProj->m[15] - viewProj->m[14]; 103 len = length(far->xyz); 104 *far /= len; 118 arg: float4* far 132 arg: float4* far, "Far plane." 157 distToCenter = dot(far->xyz, sphere->xyz) + far->w; [all …]
|
/frameworks/rs/driver/runtime/ |
D | rs_matrix.c | 322 float4* bottom, float4* near, float4* far) { in rsExtractFrustumPlanes() argument 349 far->x = viewProj->m[3] - viewProj->m[2]; in rsExtractFrustumPlanes() 350 far->y = viewProj->m[7] - viewProj->m[6]; in rsExtractFrustumPlanes() 351 far->z = viewProj->m[11] - viewProj->m[10]; in rsExtractFrustumPlanes() 352 far->w = viewProj->m[15] - viewProj->m[14]; in rsExtractFrustumPlanes() 364 len = length(far->xyz); in rsExtractFrustumPlanes() 365 *far /= len; in rsExtractFrustumPlanes() 370 float4* near, float4* far) { in rsIsSphereInFrustum() argument 391 distToCenter = dot(far->xyz, sphere->xyz) + far->w; in rsIsSphereInFrustum()
|
/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() 338 if (far <= 0.0f) { in frustumM() 343 final float r_depth = 1.0f / (near - far); in frustumM() 348 final float C = (far + near) * r_depth; in frustumM() 349 final float D = 2.0f * (far * near * r_depth); in frustumM()
|
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() 341 int far) { 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 1464 arg("far", far); in glDepthRangef() 1467 mgl.glDepthRangef(near, far); in glDepthRangef() 1471 public void glDepthRangex(int near, int far) { in glDepthRangex() argument 1474 arg("far", far); in glDepthRangex() 1477 mgl.glDepthRangex(near, far); in glDepthRangex() 1667 float near, float far) { in glFrustumf() argument 1674 arg("far", far); in glFrustumf() 1677 mgl.glFrustumf(left, right, bottom, top, near, far); in glFrustumf() 1682 int far) { in glFrustumx() argument [all …]
|
/frameworks/rs/script_api/include/ |
D | rs_matrix.rsh | 65 * far: Far plane. 70 float4* bottom, float4* near, float4* far) { 97 far->x = viewProj->m[3] - viewProj->m[2]; 98 far->y = viewProj->m[7] - viewProj->m[6]; 99 far->z = viewProj->m[11] - viewProj->m[10]; 100 far->w = viewProj->m[15] - viewProj->m[14]; 112 len = length(far->xyz); 113 *far /= len; 120 float4* bottom, float4* near, float4* far); 135 * far: Far 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/layoutlib/bridge/src/android/graphics/ |
D | RoundRectangle.java | 54 private final EnumSet<Zone> far = EnumSet.of(Zone.FAR_OUTSIDE, Zone.FAR_INSIDE); field in RoundRectangle 236 if ((close.contains(x0class) && far.contains(x1class)) || (close.contains(y0class) && in intersects() 237 far.contains(y1class))) { in intersects()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/hardware/ |
D | FakeSensorManager.java | 240 public void sendProximityResult(boolean far) { in sendProximityResult() argument 241 sendSensorEvent(far ? getSensor().getMaximumRange() : 0); in sendProximityResult()
|
/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/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeTriggers.java | 221 private void onProximityFar(boolean far) { 230 final boolean near = !far; 245 if (far && (paused || pausing)) {
|
/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 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 315 loadFrustum(left, right, bottom, top, near, far); in loadPerspective()
|
/frameworks/native/opengl/libagl/ |
D | matrix.cpp | 692 GLfloat far = c->transforms.vpt.zFar; in ogles_viewport() local 693 GLfloat A = div2f(far - near); in ogles_viewport() 694 GLfloat B = div2f(far + near); in ogles_viewport()
|