Commit 0b8dff96 authored by Edward Wang's avatar Edward Wang

LibVLC: use bogoMIPS as last resort

It is not accurate but it works as a last resort when real frequency is unavailable.
parent 22e966e9
...@@ -300,9 +300,12 @@ public class LibVLC { ...@@ -300,9 +300,12 @@ public class LibVLC {
LibVlcUtil.MachineSpecs m = LibVlcUtil.getMachineSpecs(); LibVlcUtil.MachineSpecs m = LibVlcUtil.getMachineSpecs();
if( (m.hasArmV6 && !(m.hasArmV7)) || m.hasMips ) if( (m.hasArmV6 && !(m.hasArmV7)) || m.hasMips )
ret = 4; ret = 4;
else if(m.frequency > 1200 && m.processors > 2) else if(m.frequency >= 1200 && m.processors > 2)
ret = 1; ret = 1;
else else if(m.bogoMIPS >= 1200 && m.processors > 2) {
ret = 1;
Log.d(TAG, "Used bogoMIPS due to lack of frequency info");
} else
ret = 3; ret = 3;
} else if(deblocking > 4) { // sanity check } else if(deblocking > 4) { // sanity check
ret = 3; ret = 3;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment