CencSampleEncryptionInformationGroupEntry.smali
.class public Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/CencSampleEncryptionInformationGroupEntry;
.super Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/GroupEntry;
.source "CencSampleEncryptionInformationGroupEntry.java"
# static fields
.field public static final TYPE:Ljava/lang/String; = "seig"
# instance fields
.field private isEncrypted:Z
.field private ivSize:B
.field private kid:Ljava/util/UUID;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>()V
.registers 1
.line 34
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 105
const/4 v0, 0x1
if-ne p0, p1, :cond_4
return v0
.line 106
:cond_4
const/4 v1, 0x0
if-eqz p1, :cond_36
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_36
.line 108
:cond_12
move-object v2, p1
check-cast v2, Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/CencSampleEncryptionInformationGroupEntry;
.line 110
.local v2, "that":Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/CencSampleEncryptionInformationGroupEntry;
iget-boolean v3, p0, Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/CencSampleEncryptionInformationGroupEntry;->isEncrypted:Z
iget-boolean v4, v2, Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/CencSampleEncryptionInformationGroupEntry;->isEncrypted:Z
if-eq v3, v4, :cond_1c
return v1
.line 111
:cond_1c
iget-byte v3, p0, Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/CencSampleEncryptionInformationGroupEntry;->ivSize:B
iget-byte v4, v2, Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/CencSampleEncryptionInformationGroupEntry;->ivSize:B
if-eq v3, v4, :cond_23
return v1
.line 112
:cond_23
iget-object v3, p0, Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/CencSampleEncryptionInformationGroupEntry;->kid:Ljava/util/UUID;
if-eqz v3, :cond_30
iget-object v4, v2, Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/CencSampleEncryptionInformationGroupEntry;->kid:Ljava/util/UUID;
invoke-virtual {v3, v4}, Ljava/util/UUID;->equals(Ljava/lang/Object;)Z
move-result v3
if-nez v3, :cond_35
goto :goto_34
:cond_30
iget-object v3, v2, Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/CencSampleEncryptionInformationGroupEntry;->kid:Ljava/util/UUID;
if-eqz v3, :cond_35
:goto_34
return v1
.line 114
:cond_35
return v0
.line 106
.end local v2 # "that":Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/CencSampleEncryptionInformationGroupEntry;
:cond_36
:goto_36
return v1
.end method
.method public get()Ljava/nio/ByteBuffer;
.registers 3
.line 58
const/16 v0, 0x14
invoke-static {v0}, Ljava/nio/ByteBuffer;->allocate(I)Ljava/nio/ByteBuffer;
move-result-object v0
.line 59
.local v0, "byteBuffer":Ljava/nio/ByteBuffer;
iget-boolean v1, p0, Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/CencSampleEncryptionInformationGroupEntry;->isEncrypted:Z
invoke-static {v0, v1}, Lcom/coremedia/iso/IsoTypeWriter;->writeUInt24(Ljava/nio/ByteBuffer;I)V
.line 60
iget-boolean v1, p0, Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/CencSampleEncryptionInformationGroupEntry;->isEncrypted:Z
if-eqz v1, :cond_1e
.line 61
iget-byte v1, p0, Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/CencSampleEncryptionInformationGroupEntry;->ivSize:B
invoke-static {v0, v1}, Lcom/coremedia/iso/IsoTypeWriter;->writeUInt8(Ljava/nio/ByteBuffer;I)V
.line 62
iget-object v1, p0, Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/CencSampleEncryptionInformationGroupEntry;->kid:Ljava/util/UUID;
invoke-static {v1}, Lcom/googlecode/mp4parser/util/UUIDConverter;->convert(Ljava/util/UUID;)[B
move-result-object v1
invoke-virtual {v0, v1}, Ljava/nio/ByteBuffer;->put([B)Ljava/nio/ByteBuffer;
.line 63
goto :goto_25
.line 64
:cond_1e
const/16 v1, 0x11
new-array v1, v1, [B
invoke-virtual {v0, v1}, Ljava/nio/ByteBuffer;->put([B)Ljava/nio/ByteBuffer;
.line 66
:goto_25
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->rewind()Ljava/nio/Buffer;
.line 67
return-object v0
.end method
.method public getIvSize()B
.registers 2
.line 79
iget-byte v0, p0, Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/CencSampleEncryptionInformationGroupEntry;->ivSize:B
return v0
.end method
.method public getKid()Ljava/util/UUID;
.registers 2
.line 87
iget-object v0, p0, Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/CencSampleEncryptionInformationGroupEntry;->kid:Ljava/util/UUID;
return-object v0
.end method
.method public getType()Ljava/lang/String;
.registers 2
.line 43
const-string/jumbo v0, "seig"
return-object v0
.end method
.method public hashCode()I
.registers 4
.line 119
iget-boolean v0, p0, Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/CencSampleEncryptionInformationGroupEntry;->isEncrypted:Z
if-eqz v0, :cond_6
const/4 v0, 0x7
goto :goto_8
:cond_6
const/16 v0, 0x13
.line 120
.local v0, "result":I
:goto_8
mul-int/lit8 v1, v0, 0x1f
iget-byte v2, p0, Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/CencSampleEncryptionInformationGroupEntry;->ivSize:B
add-int/2addr v1, v2
.line 121
.end local v0 # "result":I
.local v1, "result":I
mul-int/lit8 v0, v1, 0x1f
iget-object v2, p0, Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/CencSampleEncryptionInformationGroupEntry;->kid:Ljava/util/UUID;
if-eqz v2, :cond_18
invoke-virtual {v2}, Ljava/util/UUID;->hashCode()I
move-result v2
goto :goto_19
:cond_18
const/4 v2, 0x0
:goto_19
add-int/2addr v0, v2
.line 122
.end local v1 # "result":I
.restart local v0 # "result":I
return v0
.end method
.method public isEncrypted()Z
.registers 2
.line 71
iget-boolean v0, p0, Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/CencSampleEncryptionInformationGroupEntry;->isEncrypted:Z
return v0
.end method
.method public parse(Ljava/nio/ByteBuffer;)V
.registers 4
.param p1, "byteBuffer" # Ljava/nio/ByteBuffer;
.line 48
invoke-static {p1}, Lcom/coremedia/iso/IsoTypeReader;->readUInt24(Ljava/nio/ByteBuffer;)I
move-result v0
const/4 v1, 0x1
if-ne v0, v1, :cond_8
goto :goto_9
:cond_8
const/4 v1, 0x0
:goto_9
iput-boolean v1, p0, Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/CencSampleEncryptionInformationGroupEntry;->isEncrypted:Z
.line 49
invoke-static {p1}, Lcom/coremedia/iso/IsoTypeReader;->readUInt8(Ljava/nio/ByteBuffer;)I
move-result v0
int-to-byte v0, v0
iput-byte v0, p0, Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/CencSampleEncryptionInformationGroupEntry;->ivSize:B
.line 50
const/16 v0, 0x10
new-array v0, v0, [B
.line 51
.local v0, "kid":[B
invoke-virtual {p1, v0}, Ljava/nio/ByteBuffer;->get([B)Ljava/nio/ByteBuffer;
.line 52
invoke-static {v0}, Lcom/googlecode/mp4parser/util/UUIDConverter;->convert([B)Ljava/util/UUID;
move-result-object v1
iput-object v1, p0, Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/CencSampleEncryptionInformationGroupEntry;->kid:Ljava/util/UUID;
.line 54
return-void
.end method
.method public setEncrypted(Z)V
.registers 2
.param p1, "encrypted" # Z
.line 75
iput-boolean p1, p0, Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/CencSampleEncryptionInformationGroupEntry;->isEncrypted:Z
.line 76
return-void
.end method
.method public setIvSize(I)V
.registers 3
.param p1, "ivSize" # I
.line 83
int-to-byte v0, p1
iput-byte v0, p0, Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/CencSampleEncryptionInformationGroupEntry;->ivSize:B
.line 84
return-void
.end method
.method public setKid(Ljava/util/UUID;)V
.registers 2
.param p1, "kid" # Ljava/util/UUID;
.line 91
iput-object p1, p0, Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/CencSampleEncryptionInformationGroupEntry;->kid:Ljava/util/UUID;
.line 92
return-void
.end method
.method public toString()Ljava/lang/String;
.registers 3
.line 96
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "CencSampleEncryptionInformationGroupEntry{isEncrypted="
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
.line 97
iget-boolean v1, p0, Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/CencSampleEncryptionInformationGroupEntry;->isEncrypted:Z
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
.line 98
const-string v1, ", ivSize="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-byte v1, p0, Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/CencSampleEncryptionInformationGroupEntry;->ivSize:B
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
.line 99
const-string v1, ", kid="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lcom/googlecode/mp4parser/boxes/mp4/samplegrouping/CencSampleEncryptionInformationGroupEntry;->kid:Ljava/util/UUID;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
.line 100
const/16 v1, 0x7d
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
.line 96
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method