Remove checks for SDK <= 21
WebRTC’s minSdk is 21, so all those checks are dead code. Change-Id: I26497fd92259b66d9e5ac6afbb393adf4d904c77 Bug: webrtc:13780 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/253124 Reviewed-by: Henrik Andreassson <henrika@webrtc.org> Reviewed-by: Linus Nilsson <lnilsson@webrtc.org> Commit-Queue: Xavier Lepaul <xalep@webrtc.org> Cr-Commit-Position: refs/heads/main@{#36140}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
7befe8e5e4
commit
0f50cc2849
@ -56,15 +56,8 @@ class MediaCodecUtils {
|
||||
MediaCodecUtils.COLOR_QCOM_FORMATYUV420PackedSemiPlanar32m};
|
||||
|
||||
// Color formats supported by texture mode encoding - in order of preference.
|
||||
static final int[] TEXTURE_COLOR_FORMATS = getTextureColorFormats();
|
||||
|
||||
private static int[] getTextureColorFormats() {
|
||||
if (Build.VERSION.SDK_INT >= 18) {
|
||||
return new int[] {MediaCodecInfo.CodecCapabilities.COLOR_FormatSurface};
|
||||
} else {
|
||||
return new int[] {};
|
||||
}
|
||||
}
|
||||
static final int[] TEXTURE_COLOR_FORMATS =
|
||||
new int[] {MediaCodecInfo.CodecCapabilities.COLOR_FormatSurface};
|
||||
|
||||
static @Nullable Integer selectColorFormat(
|
||||
int[] supportedColorFormats, CodecCapabilities capabilities) {
|
||||
|
||||
Reference in New Issue
Block a user