|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttv.amwa.maj.argument.MultiXferItem
public class MultiXferItem
Implementation of an element of a transfer array that is used when reading or writing one or more channels from an interleaved data stream.
Interleaved-essence: An essence format that combines two or more channels of audio or video data into a single essence stream.
MultiXferItem
,
EssenceMultiAccess
,
EssenceMultiAccess.readMultiSamples(tv.amwa.maj.record.MultiXferItem[])
,
EssenceMultiAccess.writeMultiSamples(tv.amwa.maj.record.MultiXferItem[])
,
Serialized FormConstructor Summary | |
---|---|
MultiXferItem(AUID mediaKind,
short subTrackNum,
int numSamples,
byte[] buffer)
Create a new multiple-transfer item. |
Method Summary | |
---|---|
MultiXferItem |
clone()
|
boolean |
equals(Object o)
|
byte[] |
getBuffer()
Returns the data buffer of this item. |
int |
getBuflen()
Deprecated. |
AUID |
getMediaKind()
Returns the type of essence of this data item. |
int |
getNumSamples()
Returns the number of samples of this data item to transfer. |
short |
getSubTrackNum()
Returns the physical input-output track number of this data item, also known as "physical". |
int |
hashCode()
|
void |
setBuffer(byte[] buffer)
Sets the data buffer of this item. |
void |
setBuflen(int buflen)
Deprecated. |
void |
setMediaKind(AUID mediaKind)
Sets the essence type definition of this data item. |
void |
setNumSamples(int numSamples)
Sets the number of samples of this data item to transfer. |
void |
setSubTrackNum(short subTrackNum)
Sets the physical input-output track number of this data item, also known as "physical". |
String |
toString()
Creates a pseudo-XML representation of the metadata part of this multi-transfer item. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MultiXferItem(AUID mediaKind, @Int16 short subTrackNum, @UInt32 int numSamples, byte[] buffer) throws NullPointerException, IllegalArgumentException
Create a new multiple-transfer item.
mediaKind
- The essence type definition, also known as "essenceDef".subTrackNum
- The physical input-output channel number, also known as "physical".numSamples
- The number of samples to transfer.buffer
- The buffer of un-interleaved stream data.
NullPointerException
- One or both of the given media kind or data buffer is null
.
IllegalArgumentException
- The given number of samples is negative.Method Detail |
---|
@DataBuffer public byte[] getBuffer()
MultiXferItem
Returns the data buffer of this item.
getBuffer
in interface MultiXferItem
public void setBuffer(@DataBuffer byte[] buffer) throws NullPointerException
MultiXferItem
Sets the data buffer of this item.
setBuffer
in interface MultiXferItem
buffer
- Data buffer of this item.
NullPointerException
- The given data buffer is null
.@Deprecated @UInt32 public int getBuflen()
MultiXferItem
Returns the length of the data buffer of this item.
getBuflen
in interface MultiXferItem
@Deprecated public void setBuflen(@UInt32 int buflen)
MultiXferItem
Provided to set the length of the data buffer of this item but this feature is unnecessary with Java's class-based representation of arrays. This method does nothing.
setBuflen
in interface MultiXferItem
buflen
- Value is ignored.public AUID getMediaKind()
MultiXferItem
Returns the type of essence of this data item.
getMediaKind
in interface MultiXferItem
public void setMediaKind(AUID mediaKind) throws NullPointerException
MultiXferItem
Sets the essence type definition of this data item.
setMediaKind
in interface MultiXferItem
mediaKind
- Type of essence represented by this item.
NullPointerException
- The given media kind is null
.@UInt32 public int getNumSamples()
MultiXferItem
Returns the number of samples of this data item to transfer.
getNumSamples
in interface MultiXferItem
public void setNumSamples(@UInt32 int numSamples) throws IllegalArgumentException
MultiXferItem
Sets the number of samples of this data item to transfer.
setNumSamples
in interface MultiXferItem
numSamples
- Number of samples of this data item to transfer.
IllegalArgumentException
- The given number of samples is negative.@Int16 public short getSubTrackNum()
MultiXferItem
Returns the physical input-output track number of this data item, also known as "physical".
getSubTrackNum
in interface MultiXferItem
public void setSubTrackNum(@Int16 short subTrackNum)
MultiXferItem
Sets the physical input-output track number of this data item, also known as "physical".
setSubTrackNum
in interface MultiXferItem
subTrackNum
- Physical input-output track number of this data item.public boolean equals(Object o)
equals
in class Object
public String toString()
Creates a pseudo-XML representation of the metadata part of this multi-transfer item. No XML schema or DTD defines this element. For example:
<MultiTransferItem bufferLength="65536"> <MediaKind>urn:x-ul:060e2b34.0401.0101.01030202.01000000</MediaKind> <NumSamples>42</NumSamples> <SubTrackNum>7</SubTrackNum> </MultiTransferItem>
toString
in class Object
public MultiXferItem clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public int hashCode()
hashCode
in class Object
|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |