title: How to get color saturation or brightness from YUV420SP format in Eclipse
body: <p>I have to make a simple app that will messure the saturation, brightness etc. from camera preview on Android. My code is now sending image to data in:</p>
  
  <pre><code>public void onPreviewFrame(byte[] data, Camera camera){
  
  }
  </code></pre>
  
  <p>...and if I'm not wrong it is in YUV420SP format. I have tried to find some information about this but unsuccessful. Can anyone tell me how to manage this format?</p>