Home | History | Annotate | Download | only in camera

Lines Matching refs:ratio

460         // Try to find an size match aspect ratio and size
462 double ratio = (double) size.width / size.height;
463 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue;
469 // Cannot find the one match the aspect ratio. This should not happen.
472 Log.w(TAG, "No preview size match the aspect ratio");
484 // Returns the largest picture size which matches the given aspect ratio.
493 // Try to find a size matches aspect ratio and has the largest width
495 double ratio = (double) size.width / size.height;
496 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue;
502 // Cannot find one that matches the aspect ratio. This should not happen.
505 Log.w(TAG, "No picture size match the aspect ratio");