|
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.MultiCreateItem
public class MultiCreateItem
Implementation of an element of an array used to create interleaved audio and video essence.
Interleaved-essence: An essence format that combines two or more channels of audio or video data into a single essence stream.
MasterMob.createMultiEssence(AUID, tv.amwa.maj.record.MultiCreateItem[], tv.amwa.maj.enumeration.CompressEnable, tv.amwa.maj.iface.Locator, AUID),
MasterMob.extendMultiEssence(AUID, tv.amwa.maj.record.MultiCreateItem[], tv.amwa.maj.enumeration.CompressEnable, tv.amwa.maj.iface.Locator, AUID),
EssenceData,
Serialized Form| Constructor Summary | |
|---|---|
MultiCreateItem(AUID mediaKind,
short subTrackNum,
int slotID,
Rational sampleRate)
Create an element of interleaved essence. |
|
| Method Summary | |
|---|---|
MultiCreateItem |
clone()
|
boolean |
equals(Object o)
|
AUID |
getMediaKind()
Returns the kind of media represented by this item. |
Rational |
getSampleRate()
Returns the sample rate of this item. |
int |
getSlotID()
Returns the slot id of this item within its mob. |
short |
getSubTrackNum()
Returns the sub track number associated with this item, which is the physical output channel. |
int |
hashCode()
|
void |
setMediaKind(AUID mediaKind)
Sets the kind of media represented by this item. |
void |
setSampleRate(Rational sampleRate)
Sets the sample rate of this item. |
void |
setSlotID(int slotID)
Sets the slot id of this item within its mob. |
void |
setSubTrackNum(short subTrackNum)
Sets the sub track number associated with this item, which is the physical output channel. |
String |
toString()
Pseudo-XML representation of this multi-create item. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MultiCreateItem(AUID mediaKind,
@Int16
short subTrackNum,
@SlotID
int slotID,
Rational sampleRate)
throws NullPointerException,
IllegalArgumentException
Create an element of interleaved essence.
mediaKind - Kind of media represented by this item.subTrackNum - Sub track number associated with this item - the physical output channel.slotID - Slot id for this item within the essence.sampleRate - Sample rate of this item.
NullPointerException - One or both of the given media kind or sample rates is
null.
IllegalArgumentException - The given sample rate for this multi-create item has
a zero demoninator or is negative.| Method Detail |
|---|
public AUID getMediaKind()
MultiCreateItemReturns the kind of media represented by this item.
getMediaKind in interface MultiCreateItem
public void setMediaKind(AUID mediaKind)
throws NullPointerException
MultiCreateItemSets the kind of media represented by this item.
setMediaKind in interface MultiCreateItemmediaKind - Kind of media represented by this item.
NullPointerException - The given media kind is null.public Rational getSampleRate()
MultiCreateItemReturns the sample rate of this item.
getSampleRate in interface MultiCreateItem
public void setSampleRate(Rational sampleRate)
throws NullPointerException,
IllegalArgumentException
MultiCreateItemSets the sample rate of this item.
setSampleRate in interface MultiCreateItemsampleRate - Sample rate of this item.
NullPointerException - The given sample rate for the item is null.
IllegalArgumentException - The given sample rate for this multi-create item has
a zero denominator or is negative.@SlotID public int getSlotID()
MultiCreateItemReturns the slot id of this item within its mob.
getSlotID in interface MultiCreateItem
public void setSlotID(@SlotID
int slotID)
throws IllegalArgumentException
MultiCreateItemSets the slot id of this item within its mob.
setSlotID in interface MultiCreateItemslotID - Slot id of this item.
IllegalArgumentException - The given slot id for this multi-create item is negative.@Int16 public short getSubTrackNum()
MultiCreateItemReturns the sub track number associated with this item, which is the physical output channel.
getSubTrackNum in interface MultiCreateItem
public void setSubTrackNum(@Int16
short subTrackNum)
MultiCreateItemSets the sub track number associated with this item, which is the physical output channel.
setSubTrackNum in interface MultiCreateItemsubTrackNum - Sub track number associated with this item.public boolean equals(Object o)
equals in class Objectpublic String toString()
Pseudo-XML representation of this multi-create item. No associated XML schema or DTD exists. For example:
<MultiCreateItem> <MediaKind>urn:x-ul:060e2b34.0401.0101.01030202.0100.0000</MediaKind> <SlotID>3</SlotID> <SubTrackNum>7</SubTrackNum> <SampleRate>24/60</SampleRate> </MultiCreateItem>
toString in class Object
public MultiCreateItem clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic 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 | |||||||