Home | History | Annotate | Download | only in camera

Lines Matching full:ratio

453         // Try to find an size match aspect ratio and size
455 double ratio = (double) size.width / size.height;
456 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue;
462 // Cannot find the one match the aspect ratio. This should not happen.
465 Log.w(TAG, "No preview size match the aspect ratio");
477 // Returns the largest picture size which matches the given aspect ratio.
486 // Try to find a size matches aspect ratio and has the largest width
488 double ratio = (double) size.width / size.height;
489 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue;
495 // Cannot find one that matches the aspect ratio. This should not happen.
498 Log.w(TAG, "No picture size match the aspect ratio");