mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
149 lines
3.1 KiB
Smali
149 lines
3.1 KiB
Smali
.class public final Landroidx/media3/extractor/DolbyVisionConfig;
|
|
.super Ljava/lang/Object;
|
|
.source "DolbyVisionConfig.java"
|
|
|
|
|
|
# instance fields
|
|
.field public final codecs:Ljava/lang/String;
|
|
|
|
.field public final level:I
|
|
|
|
.field public final profile:I
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>(IILjava/lang/String;)V
|
|
.locals 0
|
|
|
|
.line 61
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput p1, p0, Landroidx/media3/extractor/DolbyVisionConfig;->profile:I
|
|
|
|
iput p2, p0, Landroidx/media3/extractor/DolbyVisionConfig;->level:I
|
|
|
|
iput-object p3, p0, Landroidx/media3/extractor/DolbyVisionConfig;->codecs:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static parse(Landroidx/media3/common/util/ParsableByteArray;)Landroidx/media3/extractor/DolbyVisionConfig;
|
|
.locals 4
|
|
|
|
const/4 v0, 0x2
|
|
|
|
.line 36
|
|
invoke-virtual {p0, v0}, Landroidx/media3/common/util/ParsableByteArray;->skipBytes(I)V
|
|
|
|
.line 37
|
|
invoke-virtual {p0}, Landroidx/media3/common/util/ParsableByteArray;->readUnsignedByte()I
|
|
|
|
move-result v0
|
|
|
|
shr-int/lit8 v1, v0, 0x1
|
|
|
|
and-int/lit8 v0, v0, 0x1
|
|
|
|
const/4 v2, 0x5
|
|
|
|
shl-int/2addr v0, v2
|
|
|
|
.line 39
|
|
invoke-virtual {p0}, Landroidx/media3/common/util/ParsableByteArray;->readUnsignedByte()I
|
|
|
|
move-result p0
|
|
|
|
shr-int/lit8 p0, p0, 0x3
|
|
|
|
and-int/lit8 p0, p0, 0x1f
|
|
|
|
or-int/2addr p0, v0
|
|
|
|
const/4 v0, 0x4
|
|
|
|
if-eq v1, v0, :cond_3
|
|
|
|
if-eq v1, v2, :cond_3
|
|
|
|
const/4 v0, 0x7
|
|
|
|
if-ne v1, v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/16 v0, 0x8
|
|
|
|
if-ne v1, v0, :cond_1
|
|
|
|
const-string v0, "hev1"
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/16 v0, 0x9
|
|
|
|
if-ne v1, v0, :cond_2
|
|
|
|
const-string v0, "avc3"
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
:cond_3
|
|
:goto_0
|
|
const-string v0, "dvhe"
|
|
|
|
.line 50
|
|
:goto_1
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v2, ".0"
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
const/16 v3, 0xa
|
|
|
|
if-ge p0, v3, :cond_4
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
const-string v2, "."
|
|
|
|
:goto_2
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
.line 51
|
|
new-instance v2, Landroidx/media3/extractor/DolbyVisionConfig;
|
|
|
|
invoke-direct {v2, v1, p0, v0}, Landroidx/media3/extractor/DolbyVisionConfig;-><init>(IILjava/lang/String;)V
|
|
|
|
return-object v2
|
|
.end method
|