mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
211 lines
5.1 KiB
Smali
211 lines
5.1 KiB
Smali
.class public Lorg/webrtc/SoftwareVideoEncoderFactory;
|
|
.super Ljava/lang/Object;
|
|
.source "SoftwareVideoEncoderFactory.java"
|
|
|
|
# interfaces
|
|
.implements Lorg/webrtc/VideoEncoderFactory;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 18
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static supportedCodecs()[Lorg/webrtc/VideoCodecInfo;
|
|
.locals 4
|
|
|
|
.line 45
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 47
|
|
new-instance v1, Lorg/webrtc/VideoCodecInfo;
|
|
|
|
sget-object v2, Lorg/webrtc/VideoCodecMimeType;->VP8:Lorg/webrtc/VideoCodecMimeType;
|
|
|
|
invoke-virtual {v2}, Lorg/webrtc/VideoCodecMimeType;->toSdpCodecName()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
new-instance v3, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v3}, Ljava/util/HashMap;-><init>()V
|
|
|
|
invoke-direct {v1, v2, v3}, Lorg/webrtc/VideoCodecInfo;-><init>(Ljava/lang/String;Ljava/util/Map;)V
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 48
|
|
invoke-static {}, Lorg/webrtc/LibvpxVp9Encoder;->nativeIsSupported()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 49
|
|
new-instance v1, Lorg/webrtc/VideoCodecInfo;
|
|
|
|
sget-object v2, Lorg/webrtc/VideoCodecMimeType;->VP9:Lorg/webrtc/VideoCodecMimeType;
|
|
|
|
invoke-virtual {v2}, Lorg/webrtc/VideoCodecMimeType;->toSdpCodecName()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
new-instance v3, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v3}, Ljava/util/HashMap;-><init>()V
|
|
|
|
invoke-direct {v1, v2, v3}, Lorg/webrtc/VideoCodecInfo;-><init>(Ljava/lang/String;Ljava/util/Map;)V
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 51
|
|
:cond_0
|
|
invoke-static {}, Lorg/webrtc/LibaomAv1Encoder;->nativeIsSupported()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 52
|
|
new-instance v1, Lorg/webrtc/VideoCodecInfo;
|
|
|
|
sget-object v2, Lorg/webrtc/VideoCodecMimeType;->AV1:Lorg/webrtc/VideoCodecMimeType;
|
|
|
|
invoke-virtual {v2}, Lorg/webrtc/VideoCodecMimeType;->toSdpCodecName()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
new-instance v3, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v3}, Ljava/util/HashMap;-><init>()V
|
|
|
|
invoke-direct {v1, v2, v3}, Lorg/webrtc/VideoCodecInfo;-><init>(Ljava/lang/String;Ljava/util/Map;)V
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 55
|
|
:cond_1
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
new-array v1, v1, [Lorg/webrtc/VideoCodecInfo;
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, [Lorg/webrtc/VideoCodecInfo;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public createEncoder(Lorg/webrtc/VideoCodecInfo;)Lorg/webrtc/VideoEncoder;
|
|
.locals 0
|
|
|
|
.line 22
|
|
invoke-virtual {p1}, Lorg/webrtc/VideoCodecInfo;->getName()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
.line 24
|
|
sget-object p1, Lorg/webrtc/VideoCodecMimeType;->VP8:Lorg/webrtc/VideoCodecMimeType;
|
|
|
|
invoke-virtual {p1}, Lorg/webrtc/VideoCodecMimeType;->toSdpCodecName()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 25
|
|
new-instance p0, Lorg/webrtc/LibvpxVp8Encoder;
|
|
|
|
invoke-direct {p0}, Lorg/webrtc/LibvpxVp8Encoder;-><init>()V
|
|
|
|
return-object p0
|
|
|
|
.line 27
|
|
:cond_0
|
|
sget-object p1, Lorg/webrtc/VideoCodecMimeType;->VP9:Lorg/webrtc/VideoCodecMimeType;
|
|
|
|
invoke-virtual {p1}, Lorg/webrtc/VideoCodecMimeType;->toSdpCodecName()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 28
|
|
invoke-static {}, Lorg/webrtc/LibvpxVp9Encoder;->nativeIsSupported()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 29
|
|
new-instance p0, Lorg/webrtc/LibvpxVp9Encoder;
|
|
|
|
invoke-direct {p0}, Lorg/webrtc/LibvpxVp9Encoder;-><init>()V
|
|
|
|
return-object p0
|
|
|
|
.line 31
|
|
:cond_1
|
|
sget-object p1, Lorg/webrtc/VideoCodecMimeType;->AV1:Lorg/webrtc/VideoCodecMimeType;
|
|
|
|
invoke-virtual {p1}, Lorg/webrtc/VideoCodecMimeType;->toSdpCodecName()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_2
|
|
|
|
.line 32
|
|
invoke-static {}, Lorg/webrtc/LibaomAv1Encoder;->nativeIsSupported()Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_2
|
|
|
|
.line 33
|
|
new-instance p0, Lorg/webrtc/LibaomAv1Encoder;
|
|
|
|
invoke-direct {p0}, Lorg/webrtc/LibaomAv1Encoder;-><init>()V
|
|
|
|
return-object p0
|
|
|
|
:cond_2
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public getSupportedCodecs()[Lorg/webrtc/VideoCodecInfo;
|
|
.locals 0
|
|
|
|
.line 41
|
|
invoke-static {}, Lorg/webrtc/SoftwareVideoEncoderFactory;->supportedCodecs()[Lorg/webrtc/VideoCodecInfo;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|