title: Android preview camera returning incomplete data array
body: <p>I'm attempting to do some image processing on images returned by the Android preview camera via onPreviewFrame.  This was working fine at sizes up to 1080 by 720, but I attempted to increase resolution to 1920 by 1080.  The result is that I end up with incomplete data, and attempting to process every pixel gives an ArrayIndexOutOfBounds exception.</p>
  
  <p>The data of a 1920 by 1080 image has 2073600 pixels, but it appears that the data[] returned by onPreviewFrame is always of size 1382400, regardless of image resolution.</p>
  
  <pre><code>params.setPreviewSize(1920, 1080);
  
  mCamera.setPreviewCallback(new Camera.PreviewCallback() {
          public synchronized void onPreviewFrame(byte[] data, Camera camera) {
              changeMag = 0;
              thisDiff = 0;
              diffPixels = 0;
              try {
                  if (currentImage != null) {
                      lastImage = currentImage;
                  }
                  Log.e("CameraTest", "Incoming data array size is only " + data.length);
  }
  </code></pre>
  
  <p>This logs "Incoming data array size is only 1382400" no matter what preview size I select.</p>
  
  <p>Given that 1920 by 1080 is supposedly a supported size, is there any way to get back that data via onPreviewFrame?</p>