Home | History | Annotate | Download | only in hdrviewfinder

Lines Matching refs:aspect

30  * A SurfaceView that maintains its aspect ratio to be a desired target value.
33 * requested aspect ratio. This can happen if both the width and the height are exactly
36 * the dimension that is best adjusted to maintain the aspect ratio.</p>
50 // Get initial aspect ratio from custom attributes
60 * Set the desired aspect ratio for this view.
62 * @param aspect the desired width/height ratio in the current UI orientation. Must be a
65 public void setAspectRatio(float aspect) {
66 if (aspect <= 0) {
67 throw new IllegalArgumentException("Aspect ratio must be positive");
69 mAspectRatio = aspect;
92 // General goal: Adjust dimensions to maintain the requested aspect ratio as much
111 // Maximize the View's area while maintaining aspect ratio
115 // Box is wider than requested aspect; pillarbox
118 // Box is narrower than requested aspect; letterbox