public class PiffSampleEncryptionBox extends AbstractSampleEncryptionBox
aligned(8) class SampleEncryptionBox extends FullBox(‘uuid’, extended_type= 0xA2394F52-5A9B-4f14-A244-6C427C648DF4, version=0, flags=0)
{
if (flags & 0x000001)
{
unsigned int(24) AlgorithmID;
unsigned int(8) IV_size;
unsigned int(8)[16] KID;
}
unsigned int (32) sample_count;
{
unsigned int(IV_size) InitializationVector;
if (flags & 0x000002)
{
unsigned int(16) NumberOfEntries;
{
unsigned int(16) BytesOfClearData;
unsigned int(32) BytesOfEncryptedData;
} [ NumberOfEntries]
}
}[ sample_count ]
}
algorithmId, ivSize, kidcontent, type| Constructor and Description |
|---|
PiffSampleEncryptionBox()
Creates a AbstractSampleEncryptionBox for non-h264 tracks.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAlgorithmId() |
int |
getIvSize() |
byte[] |
getKid() |
byte[] |
getUserType() |
boolean |
isOverrideTrackEncryptionBoxParameters() |
void |
setAlgorithmId(int algorithmId) |
void |
setIvSize(int ivSize) |
void |
setKid(byte[] kid) |
void |
setOverrideTrackEncryptionBoxParameters(boolean b) |
_parseDetails, equals, getBox, getContent, getContentSize, getEntries, getEntrySizes, getOffsetToFirstIV, hashCode, isSubSampleEncryption, setEntries, setSubSampleEncryptiongetFlags, getVersion, parseVersionAndFlags, setFlags, setVersion, writeVersionAndFlagsgetSize, getType, isParsed, parse, parseDetailsclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitparsepublic PiffSampleEncryptionBox()
public byte[] getUserType()
getUserType in class AbstractBoxpublic int getAlgorithmId()
public void setAlgorithmId(int algorithmId)
public int getIvSize()
public void setIvSize(int ivSize)
public byte[] getKid()
public void setKid(byte[] kid)
@DoNotParseDetail public boolean isOverrideTrackEncryptionBoxParameters()
isOverrideTrackEncryptionBoxParameters in class AbstractSampleEncryptionBox@DoNotParseDetail public void setOverrideTrackEncryptionBoxParameters(boolean b)
Copyright © 2020. All rights reserved.