mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
141 lines
4 KiB
Smali
141 lines
4 KiB
Smali
.class public final Landroidx/media3/extractor/Id3Peeker;
|
|
.super Ljava/lang/Object;
|
|
.source "Id3Peeker.java"
|
|
|
|
|
|
# instance fields
|
|
.field private final scratch:Landroidx/media3/common/util/ParsableByteArray;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 2
|
|
|
|
.line 35
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 36
|
|
new-instance v0, Landroidx/media3/common/util/ParsableByteArray;
|
|
|
|
const/16 v1, 0xa
|
|
|
|
invoke-direct {v0, v1}, Landroidx/media3/common/util/ParsableByteArray;-><init>(I)V
|
|
|
|
iput-object v0, p0, Landroidx/media3/extractor/Id3Peeker;->scratch:Landroidx/media3/common/util/ParsableByteArray;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public peekId3Data(Landroidx/media3/extractor/ExtractorInput;Landroidx/media3/extractor/metadata/id3/Id3Decoder$FramePredicate;)Landroidx/media3/common/Metadata;
|
|
.locals 7
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
move v2, v0
|
|
|
|
:goto_0
|
|
:try_start_0
|
|
iget-object v3, p0, Landroidx/media3/extractor/Id3Peeker;->scratch:Landroidx/media3/common/util/ParsableByteArray;
|
|
|
|
.line 57
|
|
invoke-virtual {v3}, Landroidx/media3/common/util/ParsableByteArray;->getData()[B
|
|
|
|
move-result-object v3
|
|
|
|
const/16 v4, 0xa
|
|
|
|
invoke-interface {p1, v3, v0, v4}, Landroidx/media3/extractor/ExtractorInput;->peekFully([BII)V
|
|
:try_end_0
|
|
.catch Ljava/io/EOFException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
iget-object v3, p0, Landroidx/media3/extractor/Id3Peeker;->scratch:Landroidx/media3/common/util/ParsableByteArray;
|
|
|
|
.line 62
|
|
invoke-virtual {v3, v0}, Landroidx/media3/common/util/ParsableByteArray;->setPosition(I)V
|
|
|
|
iget-object v3, p0, Landroidx/media3/extractor/Id3Peeker;->scratch:Landroidx/media3/common/util/ParsableByteArray;
|
|
|
|
.line 63
|
|
invoke-virtual {v3}, Landroidx/media3/common/util/ParsableByteArray;->readUnsignedInt24()I
|
|
|
|
move-result v3
|
|
|
|
const v5, 0x494433
|
|
|
|
if-eq v3, v5, :cond_0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_0
|
|
iget-object v3, p0, Landroidx/media3/extractor/Id3Peeker;->scratch:Landroidx/media3/common/util/ParsableByteArray;
|
|
|
|
const/4 v5, 0x3
|
|
|
|
.line 67
|
|
invoke-virtual {v3, v5}, Landroidx/media3/common/util/ParsableByteArray;->skipBytes(I)V
|
|
|
|
iget-object v3, p0, Landroidx/media3/extractor/Id3Peeker;->scratch:Landroidx/media3/common/util/ParsableByteArray;
|
|
|
|
.line 68
|
|
invoke-virtual {v3}, Landroidx/media3/common/util/ParsableByteArray;->readSynchSafeInt()I
|
|
|
|
move-result v3
|
|
|
|
add-int/lit8 v5, v3, 0xa
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
.line 72
|
|
new-array v1, v5, [B
|
|
|
|
iget-object v6, p0, Landroidx/media3/extractor/Id3Peeker;->scratch:Landroidx/media3/common/util/ParsableByteArray;
|
|
|
|
.line 73
|
|
invoke-virtual {v6}, Landroidx/media3/common/util/ParsableByteArray;->getData()[B
|
|
|
|
move-result-object v6
|
|
|
|
invoke-static {v6, v0, v1, v0, v4}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
.line 74
|
|
invoke-interface {p1, v1, v4, v3}, Landroidx/media3/extractor/ExtractorInput;->peekFully([BII)V
|
|
|
|
.line 76
|
|
new-instance v3, Landroidx/media3/extractor/metadata/id3/Id3Decoder;
|
|
|
|
invoke-direct {v3, p2}, Landroidx/media3/extractor/metadata/id3/Id3Decoder;-><init>(Landroidx/media3/extractor/metadata/id3/Id3Decoder$FramePredicate;)V
|
|
|
|
invoke-virtual {v3, v1, v5}, Landroidx/media3/extractor/metadata/id3/Id3Decoder;->decode([BI)Landroidx/media3/common/Metadata;
|
|
|
|
move-result-object v1
|
|
|
|
goto :goto_1
|
|
|
|
.line 78
|
|
:cond_1
|
|
invoke-interface {p1, v3}, Landroidx/media3/extractor/ExtractorInput;->advancePeekPosition(I)V
|
|
|
|
:goto_1
|
|
add-int/2addr v2, v5
|
|
|
|
goto :goto_0
|
|
|
|
.line 84
|
|
:catch_0
|
|
:goto_2
|
|
invoke-interface {p1}, Landroidx/media3/extractor/ExtractorInput;->resetPeekPosition()V
|
|
|
|
.line 85
|
|
invoke-interface {p1, v2}, Landroidx/media3/extractor/ExtractorInput;->advancePeekPosition(I)V
|
|
|
|
return-object v1
|
|
.end method
|