discord-jadx/app/src/main/java/org/webrtc/HardwareVideoDecoderFactory...

62 lines
2.7 KiB
Java

package org.webrtc;
import android.media.MediaCodecInfo;
import androidx.annotation.Nullable;
import org.webrtc.EglBase;
import org.webrtc.Predicate;
public class HardwareVideoDecoderFactory extends MediaCodecVideoDecoderFactory {
private static final Predicate<MediaCodecInfo> defaultAllowedPredicate = new AnonymousClass1();
/* renamed from: org.webrtc.HardwareVideoDecoderFactory$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.isHardwareAccelerated(mediaCodecInfo);
}
}
@Deprecated
public HardwareVideoDecoderFactory() {
this(null);
}
public HardwareVideoDecoderFactory(@Nullable EglBase.Context context) {
this(context, null);
}
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public HardwareVideoDecoderFactory(@Nullable EglBase.Context context, @Nullable Predicate<MediaCodecInfo> predicate) {
super(context, predicate == null ? defaultAllowedPredicate : predicate.and(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();
}
}