mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-04-23 16:48:32 +00:00
detect when processor doesn't have ARM NEON instructions and disable video then
This commit is contained in:
parent
857dd1503e
commit
5b9a6d1123
1 changed files with 5 additions and 3 deletions
|
|
@ -25,7 +25,7 @@ import android.os.Build;
|
|||
* @author Guillaume Beraudo
|
||||
*/
|
||||
public class Version {
|
||||
|
||||
private static native boolean nativeHasNeon();
|
||||
private static final int buildVersion =
|
||||
Integer.parseInt(Build.VERSION.SDK);
|
||||
// 8; // 2.2
|
||||
|
|
@ -50,6 +50,8 @@ public class Version {
|
|||
} catch (Throwable e) {}
|
||||
return false;
|
||||
}
|
||||
public static boolean hasNeon(){
|
||||
return nativeHasNeon();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue