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 defaultAllowedPredicate = new AnonymousClass1(); /* renamed from: org.webrtc.HardwareVideoDecoderFactory$1 reason: invalid class name */ public class AnonymousClass1 implements Predicate { /* 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 and(Predicate 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 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 or(Predicate 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 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(); } }