/frameworks/rs/java/tests/Refocus/src/com/android/rs/test/image/ |
H A D | RangeInverseDepthTransform.java | 15 private final float far; field in class:RangeInverseDepthTransform 17 public RangeInverseDepthTransform(float near, float far) { argument 19 this.far = far; 29 return far; 40 (int) ((far - near * far / value) / (far - near) * 255f))); 45 return (far * near) / (far [all...] |
H A D | RangeLinearDepthTransform.java | 16 private final float far; field in class:RangeLinearDepthTransform 18 public RangeLinearDepthTransform(float near, float far) { argument 20 this.far = far; 30 return far; 41 (int) ((value - near) / (far - near) * 255f))); 46 return near + (far - near) * Math.max(0, Math.min(255, value)) / 255f;
|
/frameworks/rs/scriptc/ |
H A 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 [all...] |
/frameworks/rs/ |
H A D | rsMatrix4x4.cpp | 276 void Matrix4x4::loadOrtho(float left, float right, float bottom, float top, float near, float far) { argument 280 m[10]= -2.f / (far - near); 283 m[14]= -(far + near) / (far - near); 286 void Matrix4x4::loadFrustum(float left, float right, float bottom, float top, float near, float far) { argument 292 m[10]= -(far + near) / (far - near); 294 m[14]= -2.f * far * near / (far - near); 298 void Matrix4x4::loadPerspective(float fovy, float aspect, float near, float far) { argument [all...] |
H A D | rsMatrix4x4.h | 49 void loadPerspective(float fovy, float aspect, float near, float far);
|
H A D | rsRuntime.h | 215 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);
|
/frameworks/native/include/ui/ |
H A D | mat4.h | 134 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) { argument 236 m[2][2] = -2 / (far - near); 239 m[3][2] = -(far + near) / (far - near); 244 tmat44<T> tmat44<T>::frustum(T left, T right, T bottom, T top, T near, T far) { argument 248 T C = (far + near) / (far - near); 249 T D = (2 * far * nea [all...] |
/frameworks/rs/cpu_ref/ |
H A D | rsCpuRuntimeMath.cpp | 83 static void SC_MatrixLoadPerspective(Matrix4x4 *m, float fovy, float aspect, float near, float far) { argument 84 m->loadPerspective(fovy, aspect, near, far); 189 float fovy, float aspect, float near, float far) { 190 SC_MatrixLoadPerspective((Matrix4x4 *) m, fovy, aspect, near, far); 188 rsMatrixLoadPerspective(rs_matrix4x4 *m, float fovy, float aspect, float near, float far) argument
|
/frameworks/rs/driver/runtime/ |
H A D | rs_matrix.c | 322 float4* bottom, float4* near, float4* far) { 349 far->x = viewProj->m[3] - viewProj->m[2]; 350 far->y = viewProj->m[7] - viewProj->m[6]; 351 far->z = viewProj->m[11] - viewProj->m[10]; 352 far->w = viewProj->m[15] - viewProj->m[14]; 364 len = length(far->xyz); 365 *far /= len; 370 float4* near, float4* far) { 391 distToCenter = dot(far->xyz, sphere->xyz) + far 321 rsExtractFrustumPlanes(const rs_matrix4x4* viewProj, float4* left, float4* right, float4* top, float4* bottom, float4* near, float4* far) argument 369 rsIsSphereInFrustum(float4* sphere, float4* left, float4* right, float4* top, float4* bottom, float4* near, float4* far) argument [all...] |
/frameworks/rs/api/ |
H A 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 [all...] |
/frameworks/base/opengl/java/android/opengl/ |
H A D | Matrix.java | 267 * @param far 271 float near, float far) { 278 if (near == far) { 279 throw new IllegalArgumentException("near == far"); 284 final float r_depth = 1.0f / (far - near); 290 final float tz = -(far + near) * r_depth; 321 * @param far 325 float near, float far) { 332 if (near == far) { 333 throw new IllegalArgumentException("near == far"); 269 orthoM(float[] m, int mOffset, float left, float right, float bottom, float top, float near, float far) argument 323 frustumM(float[] m, int offset, float left, float right, float bottom, float top, float near, float far) argument [all...] |
H A D | GLErrorWrapper.java | 231 public void glDepthRangef(float near, float far) { argument 233 mgl.glDepthRangef(near, far); 237 public void glDepthRangex(int near, int far) { argument 239 mgl.glDepthRangex(near, far); 334 float near, float far) { 336 mgl.glFrustumf(left, right, bottom, top, near, far); 341 int far) { 343 mgl.glFrustumx(left, right, bottom, top, near, far); 608 float near, float far) { 610 mgl.glOrthof(left, right, bottom, top, near, far); 333 glFrustumf(float left, float right, float bottom, float top, float near, float far) argument 340 glFrustumx(int left, int right, int bottom, int top, int near, int far) argument 607 glOrthof(float left, float right, float bottom, float top, float near, float far) argument 614 glOrthox(int left, int right, int bottom, int top, int near, int far) argument [all...] |
H A D | GLLogWrapper.java | 1461 public void glDepthRangef(float near, float far) { argument 1464 arg("far", far); 1467 mgl.glDepthRangef(near, far); 1471 public void glDepthRangex(int near, int far) { argument 1474 arg("far", far); 1477 mgl.glDepthRangex(near, far); 1667 float near, float far) { 1674 arg("far", fa 1666 glFrustumf(float left, float right, float bottom, float top, float near, float far) argument 1681 glFrustumx(int left, int right, int bottom, int top, int near, int far) argument 2158 glOrthof(float left, float right, float bottom, float top, float near, float far) argument 2173 glOrthox(int left, int right, int bottom, int top, int near, int far) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | RoundRectangle.java | 54 private final EnumSet<Zone> far = EnumSet.of(Zone.FAR_OUTSIDE, Zone.FAR_INSIDE); field in class:RoundRectangle 238 if ((close.contains(x0class) && far.contains(x1class)) || (close.contains(y0class) && 239 far.contains(y1class))) {
|
/frameworks/base/libs/hwui/ |
H A D | Matrix.cpp | 396 void Matrix4::loadOrtho(float left, float right, float bottom, float top, float near, float far) { argument 401 data[kScaleZ] = -2.0f / (far - near); 404 data[kTranslateZ] = -(far + near) / (far - near);
|
H A D | Matrix.h | 128 void loadOrtho(float left, float right, float bottom, float top, float near, float far);
|
/frameworks/base/rs/java/android/renderscript/ |
H A D | Matrix4f.java | 253 * @param f location of the far clipping plane 269 * far are set to -1, 1 respectively 287 * @param f location of the far clipping plane, must be positive 308 * @param far far clipping plane, must be positive 310 public void loadPerspective(float fovy, float aspect, float near, float far) { argument 315 loadFrustum(left, right, bottom, top, near, far); 321 * and (near, far), (bottom, top) mapping to (-1, 1) at z = 0
|
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
H A D | Matrix4f.java | 254 * @param f location of the far clipping plane 270 * far are set to -1, 1 respectively 288 * @param f location of the far clipping plane, must be positive 309 * @param far far clipping plane, must be positive 311 public void loadPerspective(float fovy, float aspect, float near, float far) { argument 316 loadFrustum(left, right, bottom, top, near, far); 322 * and (near, far), (bottom, top) mapping to (-1, 1) at z = 0
|
/frameworks/native/opengl/libagl/ |
H A D | matrix.cpp | 703 GLfloat far = c->transforms.vpt.zFar; local 704 GLfloat A = div2f(far - near); 705 GLfloat B = div2f(far + near);
|