public class MultiCreateItemImpl extends Object implements MultiCreateItem, Serializable, Cloneable
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.
tv.amwa.maj.model.MaterialPackage#createMultiEssence(AUIDImpl, tv.amwa.maj.union.MultiCreateItem[], tv.amwa.maj.enumeration.CompressEnable, tv.amwa.maj.model.Locator, AUIDImpl),
tv.amwa.maj.model.MaterialPackage#extendMultiEssence(AUIDImpl, tv.amwa.maj.union.MultiCreateItem[], tv.amwa.maj.enumeration.CompressEnable, tv.amwa.maj.model.Locator, AUIDImpl),
EssenceData,
Serialized Form| Constructor and Description |
|---|
MultiCreateItemImpl(AUID mediaKind,
short subTrackNum,
int trackID,
Rational sampleRate)
Create an element of interleaved essence.
|
| Modifier and Type | Method and Description |
|---|---|
MultiCreateItemImpl |
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.
|
short |
getSubTrackNum()
Returns the sub track number associated with this item, which is the physical output channel.
|
int |
getTrackID()
|
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 |
setSubTrackNum(short subTrackNum)
Sets the sub track number associated with this item, which is the physical output channel.
|
void |
setTrackID(int trackID)
|
String |
toString()
Pseudo-XML representation of this multi-create item.
|
public MultiCreateItemImpl(AUID mediaKind, @Int16 short subTrackNum, @TrackID int trackID, 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.trackID - Track 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 denominator or is negative.public AUID getMediaKind()
MultiCreateItemReturns the kind of media represented by this item.
getMediaKind in interface MultiCreateItempublic 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 MultiCreateItempublic 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.@TrackID public int getTrackID()
MultiCreateItemgetTrackID in interface MultiCreateItempublic void setTrackID(@TrackID int trackID) throws IllegalArgumentException
MultiCreateItemsetTrackID in interface MultiCreateItemtrackID - Track id of this item.IllegalArgumentException - The given track 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 MultiCreateItempublic 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 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> <TrackID>3</TrackID> <SubTrackNum>7</SubTrackNum> <SampleRate>24/60</SampleRate> </MultiCreateItem>
public MultiCreateItemImpl clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException(c)2007-2016 Richard Cartwright, all rights reserved. Licensed under Apache 2 license and subject to the AMWA IPR policy.