title: Camera.Parameters.setRecordingHint and aspect ratio
body: <p>I've found some odd behavior around <a href="http://developer.android.com/reference/android/hardware/Camera.Parameters.html#setRecordingHint%28boolean%29" rel="noreferrer">Camera.Parameters.setRecordingHint</a> that I'd like to understand better.</p>
  
  <p>If I set it to <code>true</code>, the size of the preview image can come back different from what I pass to <a href="http://developer.android.com/reference/android/hardware/Camera.Parameters.html#setPreviewSize%28int,%20int%29" rel="noreferrer">setPreviewSize</a>.  It depends on what size I set it to-- some aspect ratios work and some don't.</p>
  
  <p>See the screenshots below-- <code>setPreviewSize</code> has been set to 640x480 for both, but one has setRecordingHint to <code>true</code> and the other to <code>false</code>.  I have the code that produces this effect <a href="https://github.com/paleozogt/AndroidCameraExample" rel="noreferrer">on GitHub</a>.</p>
  
  <p>Is this expected behavior?  The docs for <a href="http://developer.android.com/reference/android/hardware/Camera.Parameters.html#setRecordingHint%28boolean%29" rel="noreferrer">setRecordingHint</a> don't indicate anything like this.</p>
  
  <p><img src="https://i.stack.imgur.com/VEmAt.png" alt="comparison of front-facing camera on S4 with setRecordingHint true/false"></p>