title: Samsung S3 Tab OpenCV camera set picture size ignored
body: <p>I am using OpenCV camera in <strong>Samsung tab S3</strong>. 
  I am trying to set the picture size from it's supported picture size list. </p>
  
  <p>By default it's picture size and preview size are same <code>1920x1080</code>. After setting picture size to <code>4128x2322</code>, when I call <code>mCamera.getPictureSize()</code> method it will return picture size <code>4128x2322</code>, but captured image size remain <code>1920x1080</code>. </p>
  
  <p>I'm only changing picture size and have tried with all supported picture size list for S3: <code>4128x3096</code>, <code>4128x2322</code>, <code>3264x2448</code>, <code>3264x1836</code>, <code>3088x3088</code> etc. The result is always the same <code>mCamera.getPictureSize()</code> return size set but captured image remains <code>1920x1080</code>.</p>
  
  <p>Same project in other device (Samsung J7 NXT, Huawei nova 3e and nove 2i) works as expected.</p>
  
  <pre><code>    int max = 1;
      Camera.Parameters params = mCamera.getParameters();
      Size previewSize = params.getPreviewSize();
      int previewGcd = Utility.GCD(previewSize.width, previewSize.height);
      List&lt;Size&gt; pictureSize = params.getSupportedPictureSizes();
  
      for (Size pSize : pictureSize) {
          int pictureGcd = Utility.GCD(pSize.width, pSize.height);
  
          // Select largest picture size from list 
          // which aspect ratio equal to preview size
  
          if (Utility.isSameRatio(previewSize.width / previewGcd,
                  previewSize.height / previewGcd,
                  pSize.width / pictureGcd, pSize.height / pictureGcd)) {
  
              if (pSize.width * pSize.height &gt; max) {
                  params.setPictureSize(pSize.width, pSize.height);
                  mCamera.setParameters(params);
                  max = pSize.height * pSize.width;
              }
          }
      }
  </code></pre>