52 lines
2.3 KiB
Java
52 lines
2.3 KiB
Java
package org.webrtc;
|
|
|
|
import android.media.MediaCodecInfo;
|
|
import androidx.annotation.Nullable;
|
|
import org.webrtc.EglBase;
|
|
import org.webrtc.Predicate;
|
|
public class PlatformSoftwareVideoDecoderFactory extends MediaCodecVideoDecoderFactory {
|
|
private static final Predicate<MediaCodecInfo> defaultAllowedPredicate = new AnonymousClass1();
|
|
|
|
/* renamed from: org.webrtc.PlatformSoftwareVideoDecoderFactory$1 reason: invalid class name */
|
|
public class AnonymousClass1 implements Predicate<MediaCodecInfo> {
|
|
/* Return type fixed from 'org.webrtc.Predicate' to match base method */
|
|
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [org.webrtc.Predicate] */
|
|
@Override // org.webrtc.Predicate
|
|
public /* synthetic */ Predicate<MediaCodecInfo> and(Predicate<? super MediaCodecInfo> predicate) {
|
|
return Predicate.CC.a(this, predicate);
|
|
}
|
|
|
|
/* Return type fixed from 'org.webrtc.Predicate' to match base method */
|
|
@Override // org.webrtc.Predicate
|
|
public /* synthetic */ Predicate<MediaCodecInfo> negate() {
|
|
return Predicate.CC.b(this);
|
|
}
|
|
|
|
/* Return type fixed from 'org.webrtc.Predicate' to match base method */
|
|
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [org.webrtc.Predicate] */
|
|
@Override // org.webrtc.Predicate
|
|
public /* synthetic */ Predicate<MediaCodecInfo> or(Predicate<? super MediaCodecInfo> predicate) {
|
|
return Predicate.CC.c(this, predicate);
|
|
}
|
|
|
|
public boolean test(MediaCodecInfo mediaCodecInfo) {
|
|
return MediaCodecUtils.isSoftwareOnly(mediaCodecInfo);
|
|
}
|
|
}
|
|
|
|
public PlatformSoftwareVideoDecoderFactory(@Nullable EglBase.Context context) {
|
|
super(context, defaultAllowedPredicate);
|
|
}
|
|
|
|
@Override // org.webrtc.MediaCodecVideoDecoderFactory, org.webrtc.VideoDecoderFactory
|
|
@Nullable
|
|
public /* bridge */ /* synthetic */ VideoDecoder createDecoder(VideoCodecInfo videoCodecInfo) {
|
|
return super.createDecoder(videoCodecInfo);
|
|
}
|
|
|
|
@Override // org.webrtc.MediaCodecVideoDecoderFactory, org.webrtc.VideoDecoderFactory
|
|
public /* bridge */ /* synthetic */ VideoCodecInfo[] getSupportedCodecs() {
|
|
return super.getSupportedCodecs();
|
|
}
|
|
}
|