/frameworks/rs/java/tests/RsCameraDemo/src/com/android/example/rscamera/ |
H A D | FixedAspectSurfaceView.java | 31 * A SurfaceView that maintains its aspect ratio to be a desired target value. 34 * requested aspect ratio. This can happen if both the width and the height are exactly 37 * the dimension that is best adjusted to maintain the aspect ratio.</p> 51 // Get initial aspect ratio from custom attributes 61 * Set the desired aspect ratio for this view. 63 * @param aspect the desired width/height ratio in the current UI orientation. Must be a 66 public void setAspectRatio(float aspect) { argument 67 if (aspect <= 0) { 70 mAspectRatio = aspect; 93 // General goal: Adjust dimensions to maintain the requested aspect rati [all...] |
/frameworks/base/rs/java/android/renderscript/ |
H A D | Matrix4f.java | 306 * @param aspect aspect ratio of the screen 310 public void loadPerspective(float fovy, float aspect, float near, float far) { argument 313 float left = bottom * aspect; 314 float right = top * aspect; 320 * projection matrix with aspect ratio defined by the parameters 332 float aspect = ((float)w) / h; 333 m1.loadFrustum(-aspect,aspect, -1,1, 1,100); 335 float aspect [all...] |
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
H A D | Matrix4f.java | 307 * @param aspect aspect ratio of the screen 311 public void loadPerspective(float fovy, float aspect, float near, float far) { argument 314 float left = bottom * aspect; 315 float right = top * aspect; 321 * projection matrix with aspect ratio defined by the parameters 333 float aspect = ((float)w) / h; 334 m1.loadFrustum(-aspect,aspect, -1,1, 1,100); 336 float aspect [all...] |
/frameworks/base/opengl/java/android/opengl/ |
H A D | GLU.java | 103 * @param aspect specifies the aspect ration that determins the field of 104 * view in the x direction. The aspect ratio is the ratio of x 111 public static void gluPerspective(GL10 gl, float fovy, float aspect, argument 115 float left = bottom * aspect; 116 float right = top * aspect;
|
H A D | Matrix.java | 370 * aspect ratio, and z clip planes. 376 * @param aspect width to height aspect ratio of the viewport 381 float fovy, float aspect, float zNear, float zFar) { 385 m[offset + 0] = f / aspect; 380 perspectiveM(float[] m, int offset, float fovy, float aspect, float zNear, float zFar) argument
|
/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/ |
H A D | rsMatrix4x4.h | 49 void loadPerspective(float fovy, float aspect, float near, float far);
|
H A D | rsMatrix4x4.cpp | 298 void Matrix4x4::loadPerspective(float fovy, float aspect, float near, float far) { argument 301 float left = bottom * aspect; 302 float right = top * aspect;
|
H A D | rsRuntime.h | 218 void rsrMatrixLoadPerspective(rs_matrix4x4* m, float fovy, float aspect, float near, float far);
|
/frameworks/base/core/java/android/content/res/ |
H A D | CompatibilityInfo.java | 49 * This is the maximum aspect ratio we will allow while keeping 489 float aspect = ((float)longSize) / shortSize; 490 if (aspect > MAXIMUM_ASPECT_RATIO) { 491 aspect = MAXIMUM_ASPECT_RATIO; 493 int newLongSize = (int)(newShortSize * aspect + 0.5f);
|
/frameworks/av/include/media/stagefright/foundation/ |
H A D | ColorUtils.h | 120 int32_t range, ColorAspects::Range *aspect); 122 int32_t transfer, ColorAspects::Transfer *aspect); 150 // converts |dataSpace| to a V0 enum, and returns true if dataSpace is an aspect-only value 153 // compares |aspect| to |orig|. Returns |true| if any aspects have changed, except if they 154 // changed to Unspecified value. It also sets the changed values to Unspecified in |aspect|.
|
/frameworks/av/media/libstagefright/foundation/ |
H A D | ColorUtils.cpp | 168 int32_t range, ColorAspects::Range *aspect) { 169 if (sRanges.map((ColorRange)range, aspect)) { 176 *aspect = (ColorAspects::Range)(range - start); 179 *aspect = ColorAspects::RangeOther; 210 int32_t transfer, ColorAspects::Transfer *aspect) { 211 if (sTransfers.map((ColorTransfer)transfer, aspect)) { 222 *aspect = (ColorAspects::Transfer)(transfer - start); 225 *aspect = ColorAspects::TransferOther; 351 // Default to BT2020, BT709 or BT601 based on size. Allow 2.35:1 aspect ratio. Limit BT601 167 unwrapColorAspectsFromColorRange( int32_t range, ColorAspects::Range *aspect) argument 209 unwrapColorAspectsFromColorTransfer( int32_t transfer, ColorAspects::Transfer *aspect) argument
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | LockPatternView.java | 278 final String aspect = a.getString(R.styleable.LockPatternView_aspect); 280 if ("square".equals(aspect)) { 282 } else if ("lock_width".equals(aspect)) { 284 } else if ("lock_height".equals(aspect)) {
|
/frameworks/base/core/java/android/app/ |
H A D | WallpaperManager.java | 1006 * aspect ratios, etc. 1030 * aspect ratios, etc. 1143 * aspect ratios, etc. 1169 * aspect ratios, etc. 1323 float aspect = (float)minimumHeight / (float)minimumWidth; 1326 minimumHeight = (int)((minimumWidth * aspect) + 0.5); 1329 minimumWidth = (int)((minimumHeight / aspect) + 0.5);
|
/frameworks/native/opengl/tests/angeles/ |
H A D | demo.c | 502 static void gluPerspective(GLfloat fovy, GLfloat aspect, argument 509 xmin = ymin * aspect; 510 xmax = ymax * aspect;
|
/frameworks/rs/scriptc/ |
H A D | rs_matrix.rsh | 358 * aspect: Ratio of x / y. 363 rsMatrixLoadPerspective(rs_matrix4x4* m, float fovy, float aspect, float near, float far);
|
/frameworks/rs/api/ |
H A D | rs_matrix.spec | 329 arg: float aspect, "Ratio of x / y."
|