FlacBinarySearchSeeker$FlacSeekTimestampConverter.smali
.class final Lcom/google/android/exoplayer2/ext/flac/FlacBinarySearchSeeker$FlacSeekTimestampConverter;
.super Ljava/lang/Object;
.source "FlacBinarySearchSeeker.java"
# interfaces
.implements Lcom/google/android/exoplayer2/extractor/BinarySearchSeeker$SeekTimestampConverter;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/android/exoplayer2/ext/flac/FlacBinarySearchSeeker;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1a
name = "FlacSeekTimestampConverter"
.end annotation
# instance fields
.field private final streamInfo:Lcom/google/android/exoplayer2/util/FlacStreamInfo;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>(Lcom/google/android/exoplayer2/util/FlacStreamInfo;)V
.registers 2
.param p1, "streamInfo" # Lcom/google/android/exoplayer2/util/FlacStreamInfo;
.line 117
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 118
iput-object p1, p0, Lcom/google/android/exoplayer2/ext/flac/FlacBinarySearchSeeker$FlacSeekTimestampConverter;->streamInfo:Lcom/google/android/exoplayer2/util/FlacStreamInfo;
.line 119
return-void
.end method
# virtual methods
.method public timeUsToTargetTime(J)J
.registers 5
.param p1, "timeUs" # J
.line 123
iget-object v0, p0, Lcom/google/android/exoplayer2/ext/flac/FlacBinarySearchSeeker$FlacSeekTimestampConverter;->streamInfo:Lcom/google/android/exoplayer2/util/FlacStreamInfo;
invoke-static {v0}, Lcom/google/android/exoplayer2/util/Assertions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/android/exoplayer2/util/FlacStreamInfo;
invoke-virtual {v0, p1, p2}, Lcom/google/android/exoplayer2/util/FlacStreamInfo;->getSampleIndex(J)J
move-result-wide v0
return-wide v0
.end method