title: Android YUV Image format
body: <p>In our application, we need to transfer video, we are using Camera class to capture the buffer and send to destination, </p>
  
  <p>I have set format is YV12 as a Camera parameter to receive the buffer, </p>
  
  <p>for the 500X300 buffer, we receive buffer of 230400 bytes, </p>
  
  <p>i want to know , is this expected buffer size ?<br>
  I believe the size would be </p>
  
  <p>Y Plane = width * height = 500X300 = 150000  </p>
  
  <p>U Plane = width/2 * height/2 =     =  37500  </p>
  
  <p>V Plane = width/2 * height/2 =     =  37500</p>
  
  <pre><code>                               ========
                                   225000                                     
                                 ======== 
  </code></pre>
  
  <p>Can anyone explain me, if i need to get stride values of each component, how can i get that </p>
  
  <p>Is there any way to get it ? </p>