title: Nexus 6 Front Camera Upside Down
body: <p>I know this question has been asked before, however, I'm unable to find any solutions that work. </p>
  
  <p>The <code>Nexus 6</code> front camera always displays upside down in my app. Some of the solutions are to use "<code>setDisplayOrientation</code>", which does flip the camera on the screen. However, we encode the video with <code>frames</code> received from <code>onPreviewFrame</code>. </p>
  
  <p>According to the <code>Android SDK Documentation</code>, <code>setDisplayOrientation</code> doesn't actually change the <code>byte[]</code> in <code>onPreviewFrame</code>.</p>
  
  <blockquote>
    <p>This does not affect the order of byte array passed in onPreviewFrame(byte[], Camera), JPEG pictures, or recorded videos. This method is not allowed to be called during preview.</p>
  </blockquote>
  
  <p>If it is not possible to get the <code>Nexus 6</code> front camera <code>onPreviewFrame</code> frames in the <code>correct orientation</code>, what is the <code>fastest</code> way to flip each frame, without suffering a drop in fps.</p>
  
  <p>Thanks!</p>