title: Android Camera 2, how to crop preview size
body: <p>I'm working on Camera 2 API recently and my device has a 16:9 screen ratio but my camera sensor is 4:3. So all the preview size I got is 4:3. I' wondering is there any way I get a crop the size and only display the 16:9 part?  I tried a long time and didn't find any help for camera 2.</p>
  
  <p>My current camera code is similar to the <a href="https://github.com/googlesamples/android-Camera2Basic" rel="nofollow noreferrer">camera 2 basic sample</a>.</p>
  
  <p>So how should I crop the preview and only display the 16:9 part on the texture view?</p>
  
  <p>Thanks!!</p>