title: setPreviewSize doesn't work propertly only in some devices
body: <p>I'm developing a application using OpenCV native, and opening the camera in Java. My app works propertly in a MotoG, but when I use other devices, it fails.</p>
  
  <p>My preview callback send the image and I got this Error:</p>
  
  <pre><code>E/Camera-JNI(22013): Callback buffer was too small! Expected 3110400 bytes, but got 460800 bytes!
  </code></pre>
  
  <p>My camera is propertly opened using:</p>
  
  <pre><code>_camera.startPreview();
  ...
  for (Size s : parameters.getSupportedPreviewSizes()) 
  ...
  parameters.setPreviewSize(desiredSize.width, desiredSize.height); // 640x480 in runtime
  </code></pre>
  
  <p>But, the error means something went wrong with the buffer.</p>
  
  <pre><code>460800 = 640x480x1.5 // width x height x YUV format, as I configured in setpreviewsize
  3110400 = 1920x1080x1.5 // other size x YUV format, I didn't do this!
  </code></pre>
  
  <p>I found in the device where doesn't work some disturbing logs:</p>
  
  <pre><code>E/mm-camera-sensor(319): port_sensor_caps_reserve:155 ide 30002 stream type 1 w*h 1920*1080
  ...
  I/QCameraParameters(303): initDefaultParameters: supported preview sizes: 1920x1080,1440x1080,1280x720,1056x864,960x720,720x480,640x480,352x288,320x240,176x144
  I/QCameraParameters(303): set Default prview sizes : 1920x1080
  I/ShotCommon(303): Preview width(1920), height(1080)
  I/ShotCommon(303): Preview color format [yuv420sp]
  </code></pre>
  
  <p>So, It seems that in some devices, preview is not opened with provided resolution. What is going on?</p>