Rabbit-R1/android (non root)/java/sources/org/webrtc/PlatformSoftwareVideoDecoderFactory.java

29 lines
1.1 KiB
Java
Raw Normal View History

2024-05-21 16:08:36 -05:00
package org.webrtc;
import android.media.MediaCodecInfo;
import org.webrtc.EglBase;
/* loaded from: classes3.dex */
public class PlatformSoftwareVideoDecoderFactory extends MediaCodecVideoDecoderFactory {
private static final Predicate<MediaCodecInfo> defaultAllowedPredicate = new Predicate<MediaCodecInfo>() { // from class: org.webrtc.PlatformSoftwareVideoDecoderFactory.1
@Override // org.webrtc.Predicate
public boolean test(MediaCodecInfo mediaCodecInfo) {
return MediaCodecUtils.isSoftwareOnly(mediaCodecInfo);
}
};
@Override // org.webrtc.MediaCodecVideoDecoderFactory, org.webrtc.VideoDecoderFactory
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();
}
public PlatformSoftwareVideoDecoderFactory(EglBase.Context context) {
super(context, defaultAllowedPredicate);
}
}