mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
24 lines
858 B
Java
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();
|
|
}
|
|
}
|