public abstract class AbstractSampleEncryptionBox extends AbstractFullBox
Modifier and Type | Field and Description |
---|---|
protected int |
algorithmId |
protected int |
ivSize |
protected byte[] |
kid |
type
Modifier | Constructor and Description |
---|---|
protected |
AbstractSampleEncryptionBox(String type) |
Modifier and Type | Method and Description |
---|---|
void |
_parseDetails(ByteBuffer content)
Parse the box's fields and child boxes if any.
|
boolean |
equals(Object o) |
void |
getBox(WritableByteChannel os)
Writes the complete box - size | 4-cc | content - to the given
writableByteChannel . |
protected void |
getContent(ByteBuffer byteBuffer)
Write the box's content into the given
ByteBuffer . |
protected long |
getContentSize()
Get the box's content size without its header.
|
List<CencSampleAuxiliaryDataFormat> |
getEntries() |
List<Short> |
getEntrySizes() |
int |
getOffsetToFirstIV() |
int |
hashCode() |
protected boolean |
isOverrideTrackEncryptionBoxParameters() |
boolean |
isSubSampleEncryption() |
void |
setEntries(List<CencSampleAuxiliaryDataFormat> entries) |
void |
setSubSampleEncryption(boolean b) |
getFlags, getVersion, parseVersionAndFlags, setFlags, setVersion, writeVersionAndFlags
getOffset, getParent, getPath, getSize, getType, getUserType, isParsed, parse, parseDetails, setDeadBytes, setParent
protected int algorithmId
protected int ivSize
protected byte[] kid
protected AbstractSampleEncryptionBox(String type)
public int getOffsetToFirstIV()
public void _parseDetails(ByteBuffer content)
AbstractBox
_parseDetails
in class AbstractBox
content
- the box's raw content beginning after the 4-cc field.public List<CencSampleAuxiliaryDataFormat> getEntries()
public void setEntries(List<CencSampleAuxiliaryDataFormat> entries)
@DoNotParseDetail public boolean isSubSampleEncryption()
@DoNotParseDetail protected boolean isOverrideTrackEncryptionBoxParameters()
@DoNotParseDetail public void setSubSampleEncryption(boolean b)
protected void getContent(ByteBuffer byteBuffer)
AbstractBox
ByteBuffer
. This must include flags
and version in case of a full box. byteBuffer
has been initialized with
getSize()
bytes.getContent
in class AbstractBox
byteBuffer
- the sink for the box's contentprotected long getContentSize()
AbstractBox
getContent(ByteBuffer)
writes.getContentSize
in class AbstractBox
AbstractBox.getContent(java.nio.ByteBuffer)
public void getBox(WritableByteChannel os) throws IOException
Box
writableByteChannel
.getBox
in interface Box
getBox
in class AbstractBox
os
- the box's sinkIOException
- in case of problems with the Channel
Copyright © 2014. All rights reserved.