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

57 lines
1.5 KiB
Smali

.class public Lorg/webrtc/VideoEncoderFallback;
.super Lorg/webrtc/WrappedNativeVideoEncoder;
.source "VideoEncoderFallback.java"
# instance fields
.field private final fallback:Lorg/webrtc/VideoEncoder;
.field private final primary:Lorg/webrtc/VideoEncoder;
# direct methods
.method public constructor <init>(Lorg/webrtc/VideoEncoder;Lorg/webrtc/VideoEncoder;)V
.locals 0
.line 20
invoke-direct {p0}, Lorg/webrtc/WrappedNativeVideoEncoder;-><init>()V
iput-object p1, p0, Lorg/webrtc/VideoEncoderFallback;->fallback:Lorg/webrtc/VideoEncoder;
iput-object p2, p0, Lorg/webrtc/VideoEncoderFallback;->primary:Lorg/webrtc/VideoEncoder;
return-void
.end method
.method private static native nativeCreateEncoder(Lorg/webrtc/VideoEncoder;Lorg/webrtc/VideoEncoder;)J
.end method
# virtual methods
.method public createNativeVideoEncoder()J
.locals 2
iget-object v0, p0, Lorg/webrtc/VideoEncoderFallback;->fallback:Lorg/webrtc/VideoEncoder;
iget-object p0, p0, Lorg/webrtc/VideoEncoderFallback;->primary:Lorg/webrtc/VideoEncoder;
.line 27
invoke-static {v0, p0}, Lorg/webrtc/VideoEncoderFallback;->nativeCreateEncoder(Lorg/webrtc/VideoEncoder;Lorg/webrtc/VideoEncoder;)J
move-result-wide v0
return-wide v0
.end method
.method public isHardwareEncoder()Z
.locals 0
iget-object p0, p0, Lorg/webrtc/VideoEncoderFallback;->primary:Lorg/webrtc/VideoEncoder;
.line 32
invoke-interface {p0}, Lorg/webrtc/VideoEncoder;->isHardwareEncoder()Z
move-result p0
return p0
.end method