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...
Here is the code
public void onPreviewFrame(byte[] data, Camera camera)
{
if (Debug_fps) Log.d("Fps","....");
// processing 30 ms
camera.addCallbackBuffer(data);
}
Some relevant Data
AverageTime between frames S2: 5 - 10 ms
AverageTime between frames S4: 30- 35 ms
AverageTime processing S2: 32 ms
AverageTime processing S4: 30 ms
I really do not understand why the big differences, why does it take so long to receive the frame.
I would really appreciate if some could provide an answer,
Thank you in advance