Rabbit-R1/android (non root)/smali/smali_classes2/androidx/media3/extractor/BinarySearchSeeker$SeekOperationParams.smali

298 lines
7.9 KiB
Smali
Raw Normal View History

2024-05-21 21:08:36 +00:00
.class public Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;
.super Ljava/lang/Object;
.source "BinarySearchSeeker.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/media3/extractor/BinarySearchSeeker;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0xc
name = "SeekOperationParams"
.end annotation
# instance fields
.field private final approxBytesPerFrame:J
.field private ceilingBytePosition:J
.field private ceilingTimePosition:J
.field private floorBytePosition:J
.field private floorTimePosition:J
.field private nextSearchBytePosition:J
.field private final seekTimeUs:J
.field private final targetTimePosition:J
# direct methods
.method protected constructor <init>(JJJJJJJ)V
.locals 0
.line 321
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-wide p1, p0, Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;->seekTimeUs:J
iput-wide p3, p0, Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;->targetTimePosition:J
iput-wide p5, p0, Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;->floorTimePosition:J
iput-wide p7, p0, Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;->ceilingTimePosition:J
iput-wide p9, p0, Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;->floorBytePosition:J
iput-wide p11, p0, Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;->ceilingBytePosition:J
iput-wide p13, p0, Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;->approxBytesPerFrame:J
.line 330
invoke-static/range {p3 .. p14}, Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;->calculateNextSearchBytePosition(JJJJJJ)J
move-result-wide p1
iput-wide p1, p0, Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;->nextSearchBytePosition:J
return-void
.end method
.method static synthetic access$000(Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;)J
.locals 2
.line 272
invoke-direct {p0}, Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;->getSeekTimeUs()J
move-result-wide v0
return-wide v0
.end method
.method static synthetic access$100(Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;)J
.locals 2
.line 272
invoke-direct {p0}, Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;->getFloorBytePosition()J
move-result-wide v0
return-wide v0
.end method
.method static synthetic access$200(Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;)J
.locals 2
.line 272
invoke-direct {p0}, Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;->getCeilingBytePosition()J
move-result-wide v0
return-wide v0
.end method
.method static synthetic access$300(Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;)J
.locals 2
.line 272
invoke-direct {p0}, Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;->getNextSearchBytePosition()J
move-result-wide v0
return-wide v0
.end method
.method static synthetic access$400(Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;)J
.locals 2
.line 272
invoke-direct {p0}, Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;->getTargetTimePosition()J
move-result-wide v0
return-wide v0
.end method
.method static synthetic access$800(Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;JJ)V
.locals 0
.line 272
invoke-direct {p0, p1, p2, p3, p4}, Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;->updateSeekCeiling(JJ)V
return-void
.end method
.method static synthetic access$900(Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;JJ)V
.locals 0
.line 272
invoke-direct {p0, p1, p2, p3, p4}, Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;->updateSeekFloor(JJ)V
return-void
.end method
.method protected static calculateNextSearchBytePosition(JJJJJJ)J
.locals 7
const-wide/16 v0, 0x1
add-long v2, p6, v0
cmp-long v2, v2, p8
if-gez v2, :cond_1
add-long v2, p2, v0
cmp-long v2, v2, p4
if-ltz v2, :cond_0
goto :goto_0
:cond_0
sub-long v2, p0, p2
sub-long v4, p8, p6
long-to-float v4, v4
sub-long v5, p4, p2
long-to-float v5, v5
div-float/2addr v4, v5
long-to-float v2, v2
mul-float/2addr v2, v4
float-to-long v2, v2
const-wide/16 v4, 0x14
.line 308
div-long v4, v2, v4
add-long/2addr v2, p6
sub-long v2, v2, p10
sub-long/2addr v2, v4
sub-long v0, p8, v0
move-wide p0, v2
move-wide p2, p6
move-wide p4, v0
.line 311
invoke-static/range {p0 .. p5}, Landroidx/media3/common/util/Util;->constrainValue(JJJ)J
move-result-wide v0
return-wide v0
:cond_1
:goto_0
return-wide p6
.end method
.method private getCeilingBytePosition()J
.locals 2
iget-wide v0, p0, Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;->ceilingBytePosition:J
return-wide v0
.end method
.method private getFloorBytePosition()J
.locals 2
iget-wide v0, p0, Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;->floorBytePosition:J
return-wide v0
.end method
.method private getNextSearchBytePosition()J
.locals 2
iget-wide v0, p0, Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;->nextSearchBytePosition:J
return-wide v0
.end method
.method private getSeekTimeUs()J
.locals 2
iget-wide v0, p0, Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;->seekTimeUs:J
return-wide v0
.end method
.method private getTargetTimePosition()J
.locals 2
iget-wide v0, p0, Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;->targetTimePosition:J
return-wide v0
.end method
.method private updateNextSearchBytePosition()V
.locals 12
iget-wide v0, p0, Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;->targetTimePosition:J
iget-wide v2, p0, Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;->floorTimePosition:J
iget-wide v4, p0, Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;->ceilingTimePosition:J
iget-wide v6, p0, Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;->floorBytePosition:J
iget-wide v8, p0, Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;->ceilingBytePosition:J
iget-wide v10, p0, Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;->approxBytesPerFrame:J
.line 386
invoke-static/range {v0 .. v11}, Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;->calculateNextSearchBytePosition(JJJJJJ)J
move-result-wide v0
iput-wide v0, p0, Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;->nextSearchBytePosition:J
return-void
.end method
.method private updateSeekCeiling(JJ)V
.locals 0
iput-wide p1, p0, Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;->ceilingTimePosition:J
iput-wide p3, p0, Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;->ceilingBytePosition:J
.line 376
invoke-direct {p0}, Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;->updateNextSearchBytePosition()V
return-void
.end method
.method private updateSeekFloor(JJ)V
.locals 0
iput-wide p1, p0, Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;->floorTimePosition:J
iput-wide p3, p0, Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;->floorBytePosition:J
.line 369
invoke-direct {p0}, Landroidx/media3/extractor/BinarySearchSeeker$SeekOperationParams;->updateNextSearchBytePosition()V
return-void
.end method