Rabbit-R1/switch port/java/sources/org/webrtc/VideoEncoderFallback.java
2024-05-21 17:08:36 -04:00

24 lines
858 B
Java

package org.webrtc;
/* loaded from: classes3.dex */
public class VideoEncoderFallback extends WrappedNativeVideoEncoder {
private final VideoEncoder fallback;
private final VideoEncoder primary;
private static native long nativeCreateEncoder(VideoEncoder videoEncoder, VideoEncoder videoEncoder2);
public VideoEncoderFallback(VideoEncoder videoEncoder, VideoEncoder videoEncoder2) {
this.fallback = videoEncoder;
this.primary = videoEncoder2;
}
@Override // org.webrtc.WrappedNativeVideoEncoder, org.webrtc.VideoEncoder
public long createNativeVideoEncoder() {
return nativeCreateEncoder(this.fallback, this.primary);
}
@Override // org.webrtc.WrappedNativeVideoEncoder, org.webrtc.VideoEncoder
public boolean isHardwareEncoder() {
return this.primary.isHardwareEncoder();
}
}