|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SourceReferenceSegment
Specifies the representation of essence or other data described by a mob slot in a mob.
To reference a single channel of a multi-channel track from a mono track, the channel ids property is used with a single element in the array. To reference multiple channels of a multi-channel track from a multi-channel track, the channel ids property is used with multiple elements in the array.
To reference multiple mono tracks from a multi-channel track, the mono source slot ids property is used with multiple elements in the array.
See the section on naming conflicts in the package documentation.
SourceReferenceValue
Method Summary | |
---|---|
int[] |
getChannelIDs()
For references to a multi-channel mob slot, returns the channel ids property of this source reference, which specifies the channels within that mob slot that are referenced. |
int |
getChannelIDsSize()
Returns the number of elements of the channel ids array of this source reference. |
int[] |
getMonoSourceSlotIDs()
For references from a multi-channel mob slot to multiple mono mob slots, returns the mono source slot ids property of this source reference, which specifies multiple mono mob slots that are referenced. |
int |
getMonoSourceSlotIDsSize()
Returns the size of the mono source slot ids array. |
MobID |
getSourceID()
Returns the source id of this source reference. |
int |
getSourceMobSlotID()
Returns the mob slot id of this source reference. |
void |
setChannelIDs(int[] channelIDs)
For references to a multi-channel mob slot, sets the channel ids property of this source reference, which specifies the channels within that mob slot that are referenced. |
void |
setMonoSourceSlotIDs(int[] monoSourceSlotIDs)
For references from a multi-channel mob slot to multiple mono mob slots, sets the mono source slot ids property of this source reference, which specifies multiple mono mob slots that are referenced. |
void |
setSourceID(MobID sourceId)
Set the source id of this source reference, which identifies the mob being referenced. |
void |
setSourceMobSlotID(int slotId)
Sets the mob slot id of this source reference. |
Methods inherited from interface tv.amwa.maj.iface.Segment |
---|
segmentOffsetToTC, segmentTCToOffset |
Methods inherited from interface tv.amwa.maj.iface.Component |
---|
appendAttribute, appendAttribute, appendComment, appendComment, appendKLVData, countAttributes, countComments, countKLVData, getAttributes, getComments, getDataDefinition, getKLVData, getLength, removeAttribute, removeComment, removeKLVData, setDataDefinition, setLength |
Methods inherited from interface tv.amwa.maj.iface.InterchangeObject |
---|
countProperties, createOptionalPropertyValue, disableGenerationTracking, enableGenerationTracking, getDefinition, getGeneration, getGenerationAUID, getProperties, getPropertyValue, isGenerationTracked, isPropertyPresent, omitOpionalProperty, setPropertyValue |
Method Detail |
---|
MobID getSourceID() throws PropertyNotPresentException
Returns the source id of this source reference. This is an optional property.
If the source id property is the zero mob id, the mob owning the source reference describes the original source. If this property is omitted, the reference is to another mob slot within the same mob.
PropertyNotPresentException
- The optional source id property is not present
in this source reference, implying that this is a reference to a mob slot within the
same mob.SourceReferenceValue.getSourceID()
void setSourceID(MobID sourceId)
Set the source id of this source reference, which identifies the mob being referenced.
If the property has a value of the zero mob id, it means that the mob owning this source reference describes the original
source. Set this optional property to null
to omit and indicate that this
reference is to another mob slot in the same mob.
For source clips, it is recommended that the
setSourceReference()
method
is used to set the source id property in preference to this method.
sourceId
- Source id of this source reference.SourceReferenceValue.setSourceID(MobID)
,
MobID.getZeroMobID()
,
SourceClip.setSourceReference(SourceReferenceValue)
@SlotID int getSourceMobSlotID()
Returns the mob slot id of this source reference. If the source id property is the the zero mob id, the source mob slot id should be 0.
SourceReferenceValue.getSourceSlotID()
void setSourceMobSlotID(@SlotID int slotId) throws IllegalArgumentException
Sets the mob slot id of this source reference. If the source id property is the the zero mob id, the source mob slot id should be 0.
slotId
- Mob slot id of this source reference.
IllegalArgumentException
- The given source mob slot id is negative.SourceReferenceValue.setSourceSlotID(int)
void setChannelIDs(@UInt32Array int[] channelIDs)
For references to a multi-channel mob slot, sets the
channel ids property of this source reference, which specifies the channels
within that mob slot that are referenced. Set this
optional property to null
to omit it and indicate that all channels in the
referenced mob slot are referenced in the same order.
The number of channel ids shall equal the number of
channels being described the mob slot
containing
the source reference, e.g. 1 element for a mono audio slot,
6 elements for a 5.1 multi-channel audio slot.
channelIDs
- Array of channel IDs to set for the source
reference.@UInt32Array int[] getChannelIDs() throws PropertyNotPresentException
For references to a multi-channel mob slot, returns the channel ids property of this source reference, which specifies the channels within that mob slot that are referenced. This optional property is omitted to indicate that all channels in the referenced mob slot are referenced in the same order.
The number of channel ids shall equal the number of channels being described the mob slot containing the source reference, e.g. 1 element for a mono audio slot, 6 elements for a 5.1 multi-channel audio slot.
PropertyNotPresentException
- The optional channel ids property is
not present in this source reference.@UInt32 int getChannelIDsSize() throws PropertyNotPresentException
Returns the number of elements of the channel ids array of this source reference. For references to a multi-channel mob slot, the channel ids property specifies the channels within that mob slot that are referenced. This is an optional property.
PropertyNotPresentException
- The optional channel ids property is
not present in this source reference.void setMonoSourceSlotIDs(@UInt32 int[] monoSourceSlotIDs)
For references from a multi-channel mob slot to
multiple mono mob slots, sets the mono source
slot ids property of this source reference, which specifies multiple mono
mob slots that are referenced. Set this optional
property to null
to omit it and specify that this is
a single-channel reference.
The number of elements in the mono source slot ids array shall equal the number of channels being described by the mob slot containing this source reference, e.g. 6 elements for a 5.1 multi-channel audio mob slot.
monoSourceSlotIDs
- Array of mono source slot ids for this
source reference.@UInt32 int[] getMonoSourceSlotIDs() throws PropertyNotPresentException
For references from a multi-channel mob slot to multiple mono mob slots, returns the mono source slot ids property of this source reference, which specifies multiple mono mob slots that are referenced. This is an optional property that is omitted to specify that this is a single-channel reference.
The number of elements in the mono source slot ids array shall equal the number of channels being described by the mob slot containing this source reference, e.g. 6 elements for a 5.1 multi-channel audio mob slot.
PropertyNotPresentException
- This optional mono source slot ids property is
not present in this source reference.@UInt32 int getMonoSourceSlotIDsSize() throws PropertyNotPresentException
Returns the size of the mono source slot ids array. For references from a multi-channel mob slot to multiple mono mob slots, the mono source slot ids property specifies multiple mono mob slots that are referenced. This is an optional property.
PropertyNotPresentException
- The optional mono source slot ids property is not
present for this source reference.
|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |