// Path: src/com/zhongyun/zxing/journeyapps/barcodescanner/Size.java
// public class Size implements Comparable<Size> {
//     public final int width;
//     public final int height;
// 
//     public Size(int width, int height) {
//         this.width = width;
//         this.height = height;
//     }
// 
//     /**
//      * Swap width and height.
//      *
//      * @return a new Size with swapped width and height
//      */
//     public Size rotate() {
//         //noinspection SuspiciousNameCombination
//         return new Size(height, width);
//     }
// 
//     /**
//      * Scale by n / d.
//      *
//      * @param n numerator
//      * @param d denominator
//      * @return the scaled size
//      */
//     public Size scale(int n, int d) {
//         return new Size(width * n / d, height * n / d);
//     }
// 
//     /**
//      * Checks if both dimensions of the other size are at least as large as this size.
//      *
//      * @param other the size to compare with
//      * @return true if this size fits into the other size
//      */
//     public boolean fitsIn(Size other) {
//         return width <= other.width && height <= other.height;
//     }
// 
//     /**
//      * Default sort order is ascending by size.
//      */
//     @Override
//     public int compareTo(Size other) {
//         int aPixels = this.height * this.width;
//         int bPixels = other.height * other.width;
//         if (bPixels < aPixels) {
//             return 1;
//         }
//         if (bPixels > aPixels) {
//             return -1;
//         }
//         return 0;
//     }
// 
//     public String toString() {
//         return width + "x" + height;
//     }
// 
//     @Override
//     public boolean equals(Object o) {
//         if (this == o) return true;
//         if (o == null || getClass() != o.getClass()) return false;
// 
//         Size size = (Size) o;
// 
//         if (width != size.width) return false;
//         return height == size.height;
// 
//     }
// 
//     @Override
//     public int hashCode() {
//         int result = width;
//         result = 31 * result + height;
//         return result;
//     }
// }


import android.graphics.Rect;
import android.util.Log;
import android.view.Surface;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import com.zhongyun.zxing.journeyapps.barcodescanner.Size;
package com.zhongyun.zxing.journeyapps.barcodescanner.camera;






/**
 *
 */
public class DisplayConfiguration {
    private static final String TAG = DisplayConfiguration.class.getSimpleName();

// Path: src/com/zhongyun/zxing/journeyapps/barcodescanner/Size.java
// public class Size implements Comparable<Size> {
//     public final int width;
//     public final int height;
// 
//     public Size(int width, int height) {
//         this.width = width;
//         this.height = height;
//     }
// 
//     /**
//      * Swap width and height.
//      *
//      * @return a new Size with swapped width and height
//      */
//     public Size rotate() {
//         //noinspection SuspiciousNameCombination
//         return new Size(height, width);
//     }
// 
//     /**
//      * Scale by n / d.
//      *
//      * @param n numerator
//      * @param d denominator
//      * @return the scaled size
//      */
//     public Size scale(int n, int d) {
//         return new Size(width * n / d, height * n / d);
//     }
// 
//     /**
//      * Checks if both dimensions of the other size are at least as large as this size.
//      *
//      * @param other the size to compare with
//      * @return true if this size fits into the other size
//      */
//     public boolean fitsIn(Size other) {
//         return width <= other.width && height <= other.height;
//     }
// 
//     /**
//      * Default sort order is ascending by size.
//      */
//     @Override
//     public int compareTo(Size other) {
//         int aPixels = this.height * this.width;
//         int bPixels = other.height * other.width;
//         if (bPixels < aPixels) {
//             return 1;
//         }
//         if (bPixels > aPixels) {
//             return -1;
//         }
//         return 0;
//     }
// 
//     public String toString() {
//         return width + "x" + height;
//     }
// 
//     @Override
//     public boolean equals(Object o) {
//         if (this == o) return true;
//         if (o == null || getClass() != o.getClass()) return false;
// 
//         Size size = (Size) o;
// 
//         if (width != size.width) return false;
//         return height == size.height;
// 
//     }
// 
//     @Override
//     public int hashCode() {
//         int result = width;
//         result = 31 * result + height;
//         return result;
//     }
// }


// Path: src/com/zhongyun/zxing/journeyapps/barcodescanner/camera/DisplayConfiguration.java
import android.graphics.Rect;
import android.util.Log;
import android.view.Surface;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import com.zhongyun.zxing.journeyapps.barcodescanner.Size;

package com.zhongyun.zxing.journeyapps.barcodescanner.camera;






/**
 *
 */
public class DisplayConfiguration {
    private static final String TAG = DisplayConfiguration.class.getSimpleName();

    private Size viewfinderSize;