-
-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable hardware acceleration on Samsung
Signed-off-by: Mario Danic <[email protected]>
- Loading branch information
Showing
4 changed files
with
82 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
app/src/main/java/com/nextcloud/talk/webrtc/MagicWebRtcLists.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/* | ||
* Nextcloud Talk application | ||
* | ||
* @author Mario Danic | ||
* Copyright (C) 2017 Mario Danic <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package com.nextcloud.talk.webrtc; | ||
|
||
import java.util.HashSet; | ||
import java.util.Set; | ||
|
||
public class MagicWebRtcLists { | ||
/* | ||
AEC blacklist and SL_ES_WHITELIST are borrowed from Signal | ||
https://github.com/WhisperSystems/Signal-Android/blob/551470123d006b76a68d705d131bb12513a5e683/src/org/thoughtcrime/securesms/ApplicationContext.java | ||
*/ | ||
public static Set<String> HARDWARE_AEC_BLACKLIST = new HashSet<String>() {{ | ||
add("D6503"); // Sony Xperia Z2 D6503 | ||
add("ONE A2005"); // OnePlus 2 | ||
add("MotoG3"); // Moto G (3rd Generation) | ||
add("Nexus 6P"); // Nexus 6p | ||
add("Pixel"); // Pixel | ||
add("Pixel XL"); // Pixel XL | ||
add("MI 4LTE"); // Xiami Mi4 | ||
add("Redmi Note 3"); // Redmi Note 3 | ||
add("Redmi Note 4"); // Redmi Note 4 | ||
add("SM-G900F"); // Samsung Galaxy S5 | ||
add("g3_kt_kr"); // LG G3 | ||
add("SM-G930F"); // Samsung Galaxy S7 | ||
add("Xperia SP"); // Sony Xperia SP | ||
add("Nexus 6"); // Nexus 6 | ||
add("ONE E1003"); // OnePlus X | ||
add("One"); // OnePlus One | ||
add("Moto G5"); | ||
}}; | ||
|
||
public static Set<String> OPEN_SL_ES_WHITELIST = new HashSet<String>() {{ | ||
add("Pixel"); | ||
add("Pixel XL"); | ||
}}; | ||
|
||
public static Set<String> HARDWARE_ACCELERATION_DEVICE_BLACKLIST = new HashSet<String>() {{ | ||
}}; | ||
|
||
public static Set<String> HARDWARE_ACCELERATION_VENDOR_BLACKLIST = new HashSet<String>() {{ | ||
add("samsung"); | ||
}}; | ||
} |