mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -08:00
Fill 5/8 of screen dimensions with reticle, a small increase
git-svn-id: https://zxing.googlecode.com/svn/trunk@2816 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
b0ee984ebe
commit
3b6b62b06d
|
@ -41,8 +41,8 @@ public final class CameraManager {
|
|||
|
||||
private static final int MIN_FRAME_WIDTH = 240;
|
||||
private static final int MIN_FRAME_HEIGHT = 240;
|
||||
private static final int MAX_FRAME_WIDTH = 960; // = 1920/2
|
||||
private static final int MAX_FRAME_HEIGHT = 540; // = 1080/2
|
||||
private static final int MAX_FRAME_WIDTH = 1200; // = 5/8 * 1920
|
||||
private static final int MAX_FRAME_HEIGHT = 675; // = 5/8 * 1080
|
||||
|
||||
private final Context context;
|
||||
private final CameraConfigurationManager configManager;
|
||||
|
@ -225,7 +225,7 @@ public final class CameraManager {
|
|||
}
|
||||
|
||||
private static int findDesiredDimensionInRange(int resolution, int hardMin, int hardMax) {
|
||||
int dim = resolution / 2; // Target 50% of each dimension
|
||||
int dim = 5 * resolution / 8; // Target 5/8 of each dimension
|
||||
if (dim < hardMin) {
|
||||
return hardMin;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue