choosePreviewSize

open fun choosePreviewSize(parms: Camera.Parameters, width: Int, height: Int)

Attempts to find a preview size that matches the provided width and height (which specify the dimensions of the encoded video). If it fails to find a match it just uses the default preview size for video.

TODO: should do a best-fit match, e.g. https://github.com/commonsguy/cwac-camera/blob/master/camera/src/com/commonsware/cwac/camera/CameraUtils.java