RollRecoveryEntry.smali
.class public Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/RollRecoveryEntry;
.super Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/GroupEntry;
.source "RollRecoveryEntry.java"
# static fields
.field public static final TYPE:Ljava/lang/String; = "roll"
# instance fields
.field private rollDistance:S
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>()V
.registers 1
.line 31
invoke-direct {p0}, Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/GroupEntry;-><init>()V
return-void
.end method
# virtual methods
.method public equals(Ljava/lang/Object;)Z
.registers 7
.param p1, "o" # Ljava/lang/Object;
.line 63
const/4 v0, 0x1
if-ne p0, p1, :cond_4
.line 64
return v0
.line 66
:cond_4
const/4 v1, 0x0
if-eqz p1, :cond_1d
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v2
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v3
if-eq v2, v3, :cond_12
goto :goto_1d
.line 70
:cond_12
move-object v2, p1
check-cast v2, Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/RollRecoveryEntry;
.line 72
.local v2, "entry":Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/RollRecoveryEntry;
iget-short v3, p0, Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/RollRecoveryEntry;->rollDistance:S
iget-short v4, v2, Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/RollRecoveryEntry;->rollDistance:S
if-eq v3, v4, :cond_1c
.line 73
return v1
.line 76
:cond_1c
return v0
.line 67
.end local v2 # "entry":Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/RollRecoveryEntry;
:cond_1d
:goto_1d
return v1
.end method
.method public get()Ljava/nio/ByteBuffer;
.registers 3
.line 55
const/4 v0, 0x2
invoke-static {v0}, Ljava/nio/ByteBuffer;->allocate(I)Ljava/nio/ByteBuffer;
move-result-object v0
.line 56
.local v0, "content":Ljava/nio/ByteBuffer;
iget-short v1, p0, Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/RollRecoveryEntry;->rollDistance:S
invoke-virtual {v0, v1}, Ljava/nio/ByteBuffer;->putShort(S)Ljava/nio/ByteBuffer;
.line 57
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->rewind()Ljava/nio/Buffer;
.line 58
return-object v0
.end method
.method public getRollDistance()S
.registers 2
.line 41
iget-short v0, p0, Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/RollRecoveryEntry;->rollDistance:S
return v0
.end method
.method public getType()Ljava/lang/String;
.registers 2
.line 37
const-string/jumbo v0, "roll"
return-object v0
.end method
.method public hashCode()I
.registers 2
.line 81
iget-short v0, p0, Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/RollRecoveryEntry;->rollDistance:S
return v0
.end method
.method public parse(Ljava/nio/ByteBuffer;)V
.registers 3
.param p1, "byteBuffer" # Ljava/nio/ByteBuffer;
.line 50
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->getShort()S
move-result v0
iput-short v0, p0, Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/RollRecoveryEntry;->rollDistance:S
.line 51
return-void
.end method
.method public setRollDistance(S)V
.registers 2
.param p1, "rollDistance" # S
.line 45
iput-short p1, p0, Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/RollRecoveryEntry;->rollDistance:S
.line 46
return-void
.end method