title: Frame rate to slow Android Camera
body: <p>Recently I upgraded my phone from a S2(samsung) to a S4. I have developed an application which does some processing on frames. Without changing anything in the code the fps rate in the S4 has decreased . I really have no answer , since I have only change the minSDk version and TargetSdk version...</p>
  
  <p>Here is the code</p>
  
  <pre><code>public void onPreviewFrame(byte[] data, Camera camera)
  { 
      if (Debug_fps) Log.d("Fps","....");
      // processing 30 ms
      camera.addCallbackBuffer(data);
  }
  </code></pre>
  
  <p>Some relevant Data</p>
  
  <pre><code>AverageTime between frames  S2:    5 - 10 ms
  AverageTime between frames  S4:    30- 35 ms
  
  AverageTime processing  S2:    32 ms
  AverageTime processing  S4:    30 ms
  </code></pre>
  
  <p>I really do not understand why the big differences, why does it take so long to receive the frame.</p>
  
  <p>I would really appreciate if some could provide an answer,</p>
  
  <p>Thank you in advance</p>