public class Ovc1VisualSampleEntryImpl extends AbstractSampleEntry
Modifier and Type | Field and Description |
---|---|
static String |
TYPE |
dataReferenceIndex
largeBox, type
Constructor and Description |
---|
Ovc1VisualSampleEntryImpl() |
Modifier and Type | Method and Description |
---|---|
void |
getBox(WritableByteChannel writableByteChannel)
Writes the complete box - size | 4-cc | content - to the given
writableByteChannel . |
long |
getSize() |
byte[] |
getVc1Content() |
void |
parse(ReadableByteChannel dataSource,
ByteBuffer header,
long contentSize,
BoxParser boxParser)
Parses the box excluding the already parsed header (size, 4cc, [long-size], [user-type]).
|
void |
setVc1Content(byte[] vc1Content) |
getDataReferenceIndex, setDataReferenceIndex
getHeader, getType, setParent
addBox, getBoxes, getBoxes, getBoxes, getContainerSize, initContainer, setBoxes, toString, writeContainer
public static final String TYPE
public byte[] getVc1Content()
public void setVc1Content(byte[] vc1Content)
public void parse(ReadableByteChannel dataSource, ByteBuffer header, long contentSize, BoxParser boxParser) throws IOException
ParsableBox
contentSize
, contentSize
number of bytes should be read from the box source (readableByteChannel
).
If you need the header
buffer at a later stage you have to create a copy.parse
in interface ParsableBox
parse
in class AbstractSampleEntry
dataSource
- the source for this boxheader
- the box' already parsed header (create copy if you need it
later as it will be overwritten)contentSize
- remaining bytes of this boxboxParser
- use it to parse sub-boxes.IOException
- in case of an error during a read operationpublic void getBox(WritableByteChannel writableByteChannel) throws IOException
Box
writableByteChannel
.getBox
in interface Box
getBox
in class AbstractSampleEntry
writableByteChannel
- the box's sinkIOException
- in case of problems with the Channel
public long getSize()
getSize
in interface Box
getSize
in class AbstractContainerBox
Copyright © 2019. All rights reserved.