Package org.mp4parser.boxes.microsoft
Class PiffSampleEncryptionBox
java.lang.Object
org.mp4parser.support.AbstractBox
org.mp4parser.support.AbstractFullBox
org.mp4parser.boxes.iso23001.part7.AbstractSampleEncryptionBox
org.mp4parser.boxes.microsoft.PiffSampleEncryptionBox
- All Implemented Interfaces:
Box,FullBox,ParsableBox
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 ]
}
-
Field Summary
Fields inherited from class org.mp4parser.boxes.iso23001.part7.AbstractSampleEncryptionBox
algorithmId, ivSize, kidFields inherited from class org.mp4parser.support.AbstractFullBox
flags, versionFields inherited from class org.mp4parser.support.AbstractBox
content, type -
Constructor Summary
ConstructorsConstructorDescriptionCreates a AbstractSampleEncryptionBox for non-h264 tracks. -
Method Summary
Modifier and TypeMethodDescriptionintintbyte[]getKid()byte[]booleanvoidsetAlgorithmId(int algorithmId) voidsetIvSize(int ivSize) voidsetKid(byte[] kid) voidsetOverrideTrackEncryptionBoxParameters(boolean b) Methods inherited from class org.mp4parser.boxes.iso23001.part7.AbstractSampleEncryptionBox
_parseDetails, equals, getBox, getContent, getContentSize, getEntries, getEntrySizes, getOffsetToFirstIV, hashCode, isSubSampleEncryption, setEntries, setSubSampleEncryptionMethods inherited from class org.mp4parser.support.AbstractFullBox
getFlags, getVersion, parseVersionAndFlags, setFlags, setVersion, writeVersionAndFlagsMethods inherited from class org.mp4parser.support.AbstractBox
getSize, getType, isParsed, parse, parseDetailsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.mp4parser.ParsableBox
parse
-
Constructor Details
-
PiffSampleEncryptionBox
public PiffSampleEncryptionBox()Creates a AbstractSampleEncryptionBox for non-h264 tracks.
-
-
Method Details
-
getUserType
public byte[] getUserType()- Overrides:
getUserTypein classAbstractBox
-
getAlgorithmId
public int getAlgorithmId() -
setAlgorithmId
public void setAlgorithmId(int algorithmId) -
getIvSize
public int getIvSize() -
setIvSize
public void setIvSize(int ivSize) -
getKid
public byte[] getKid() -
setKid
public void setKid(byte[] kid) -
isOverrideTrackEncryptionBoxParameters
- Overrides:
isOverrideTrackEncryptionBoxParametersin classAbstractSampleEncryptionBox
-
setOverrideTrackEncryptionBoxParameters
-