public final class VisualSampleEntry extends AbstractSampleEntry implements Container
class VisualSampleEntry(codingname) extends AbstractSampleEntry (codingname){
unsigned int(16) pre_defined = 0;
const unsigned int(16) reserved = 0;
unsigned int(32)[3] pre_defined = 0;
unsigned int(16) width;
unsigned int(16) height;
template unsigned int(32) horizresolution = 0x00480000; // 72 dpi
template unsigned int(32) vertresolution = 0x00480000; // 72 dpi
const unsigned int(32) reserved = 0;
template unsigned int(16) frame_count = 1;
string[32] compressorname;
template unsigned int(16) depth = 0x0018;
int(16) pre_defined = -1;
}
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TYPE_ENCRYPTED
Identifier for an encrypted video track.
|
static java.lang.String |
TYPE1 |
static java.lang.String |
TYPE2 |
static java.lang.String |
TYPE3 |
static java.lang.String |
TYPE4 |
static java.lang.String |
TYPE5 |
static java.lang.String |
TYPE6 |
static java.lang.String |
TYPE7 |
dataReferenceIndexlargeBox, type| Constructor and Description |
|---|
VisualSampleEntry() |
VisualSampleEntry(java.lang.String type) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
void |
getBox(java.nio.channels.WritableByteChannel writableByteChannel)
Writes the complete box - size | 4-cc | content - to the given
writableByteChannel. |
java.lang.String |
getCompressorname() |
int |
getDepth() |
int |
getFrameCount() |
int |
getHeight() |
double |
getHorizresolution() |
long |
getSize() |
double |
getVertresolution() |
int |
getWidth() |
int |
hashCode() |
void |
parse(java.nio.channels.ReadableByteChannel dataSource,
java.nio.ByteBuffer header,
long contentSize,
BoxParser boxParser)
Parses the box excluding the already parsed header (size, 4cc, [long-size], [user-type]).
|
void |
setCompressorname(java.lang.String compressorname) |
void |
setDepth(int depth) |
void |
setFrameCount(int frameCount) |
void |
setHeight(int height) |
void |
setHorizresolution(double horizresolution) |
void |
setType(java.lang.String type) |
void |
setVertresolution(double vertresolution) |
void |
setWidth(int width) |
getDataReferenceIndex, setDataReferenceIndexgetHeader, getType, setParentaddBox, getBoxes, getBoxes, getBoxes, getContainerSize, initContainer, setBoxes, toString, writeContainerclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final java.lang.String TYPE1
public static final java.lang.String TYPE2
public static final java.lang.String TYPE3
public static final java.lang.String TYPE4
public static final java.lang.String TYPE5
public static final java.lang.String TYPE6
public static final java.lang.String TYPE7
public static final java.lang.String TYPE_ENCRYPTED
public VisualSampleEntry()
public VisualSampleEntry(java.lang.String type)
public void setType(java.lang.String type)
public int getWidth()
public void setWidth(int width)
public int getHeight()
public void setHeight(int height)
public double getHorizresolution()
public void setHorizresolution(double horizresolution)
public double getVertresolution()
public void setVertresolution(double vertresolution)
public int getFrameCount()
public void setFrameCount(int frameCount)
public java.lang.String getCompressorname()
public void setCompressorname(java.lang.String compressorname)
public int getDepth()
public void setDepth(int depth)
public void parse(java.nio.channels.ReadableByteChannel dataSource,
java.nio.ByteBuffer header,
long contentSize,
BoxParser boxParser)
throws java.io.IOException
ParsableBoxcontentSize, 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 ParsableBoxparse in class AbstractSampleEntrydataSource - 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.java.io.IOException - in case of an error during a read operationpublic void getBox(java.nio.channels.WritableByteChannel writableByteChannel)
throws java.io.IOException
BoxwritableByteChannel.getBox in interface BoxgetBox in class AbstractSampleEntrywritableByteChannel - the box's sinkjava.io.IOException - in case of problems with the Channelpublic long getSize()
getSize in interface BoxgetSize in class AbstractContainerBoxpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2020. All rights reserved.