package com.otaliastudios.cameraview;

import android.support.annotation.NonNull;

import java.util.List;

/**
 * A size selector receives a list of {@link Size}s and returns another list with
 * sizes that are considered acceptable.
 */
public interface SizeSelector {

    /**
     * Returns a list of acceptable sizes from the given input.
     * The final size will be the first element in the output list.
     *
     * @param source input list
     * @return output list
     */
    @NonNull
    List<Size> select(@NonNull List<Size> source);
}
