|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EssenceGroup
Specifies the description of multiple digital representations of the same original content source. The essence type and length of all choices must be the same.
makeEssenceGroup()
Method Summary | |
---|---|
void |
appendChoice(Segment choice)
Append a choice to the collection of segment choices of this essence group, which identify the alternate representations that may be chosen. |
int |
countChoices()
Returns the number of choices in the collection of alternates of this essence group, which identify the alternate representations that may be chosen. |
Segment |
getChoiceAt(int index)
Returns the source clip choice at the given index in the collection of choices of this essence group, which identify the alternate representations that may be chosen. |
SourceReferenceSegment |
getStillFrame()
Gets the still frame property of this essence group, which identifies the essence for a single-frame image representation of the group. |
void |
insertChoiceAt(int index,
Segment choice)
Insert another choice to the collections of choices of this essence group at the given index. |
void |
prependChoice(Segment choice)
Prepend a choice to the collection of segment choices of this essence group, which identify the alternate representations that may be chosen. |
void |
removeChoiceAt(int index)
Removes the choice at the given index in the collection of choices of this essence group, which identify the alternate representations that may be chosen. |
void |
setStillFrame(SourceReferenceSegment stillFrame)
Sets the still frame property of this essence group, which identifies the essence for a single-frame image representation of the group. |
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 |
---|
void setStillFrame(SourceReferenceSegment stillFrame) throws InvalidDataDefinitionException, BadLengthException
Sets the still frame property of this essence group, which identifies the essence
for a single-frame image representation of the group. Call this method with null
to omit this optional property.
stillFrame
- Still frame representation for the essence group.
InvalidDataDefinitionException
- The given source clip does not have a compatible data definition that
can convert to the data definition of this essence group.
BadLengthException
- The given source reference segment does not represent a still frame with a
length of exactly 1.SourceReferenceSegment getStillFrame() throws PropertyNotPresentException
Gets the still frame property of this essence group, which identifies the essence for a single-frame image representation of the group. This is an optional property.
PropertyNotPresentException
- The still frame property is not present within this
essence group.void appendChoice(Segment choice) throws NullPointerException, InvalidDataDefinitionException, BadLengthException
Append a choice to the collection of segment choices of this essence group, which identify the alternate representations that may be chosen. The order of the items in the collection is not meaningful.
choice
- Source clip to add in as a choice to the collection of choices of this essence group.
NullPointerException
- The given segment choice is null
.
InvalidDataDefinitionException
- The data definition of the given segment does not convert to
an acceptable definition for this group.
BadLengthException
- The length of the given segment is different to the length
of other choices of this group.void prependChoice(Segment choice) throws NullPointerException, InvalidDataDefinitionException, BadLengthException
Prepend a choice to the collection of segment choices of this essence group, which identify the alternate representations that may be chosen. The order of the items in the collection is not meaningful.
choice
- Source clip to add as a choice to the collection of choices of this essence group.
NullPointerException
- The given choice segment is null
.
InvalidDataDefinitionException
- The data definition of the given segment does not convert to
an acceptable definition for this group.
BadLengthException
- The length of the given segment is different to the length
of other choices of the group.void insertChoiceAt(@UInt32 int index, Segment choice) throws NullPointerException, IndexOutOfBoundsException, InvalidDataDefinitionException, BadLengthException
Insert another choice to the collections of choices of this essence group at the given index. The choices identify the alternate representations that may be chosen. Choices already existing at the given and higher indices will be moved up by one index to accommodate.
index
- Index at which to insert a new choice into the collection of choices of this essence group.choice
- Segment to add as a choice.
NullPointerException
- The given choice segment is null
.
IndexOutOfBoundsException
- Index is outside the
acceptable range for this group.
InvalidDataDefinitionException
- The data definition of the given segment does not convert to
an acceptable definition for this group.
BadLengthException
- The length of the given segment is different to the length
for other choices of the group.@UInt32 int countChoices()
Returns the number of choices in the collection of alternates of this essence group, which identify the alternate representations that may be chosen. The count does not include the still frame.
Segment getChoiceAt(@UInt32 int index) throws IndexOutOfBoundsException
Returns the source clip choice at the given index in the collection of choices of this essence group, which identify the alternate representations that may be chosen.
index
- The 0-based index into the collection of choices of this essence group.
IndexOutOfBoundsException
- Index is outside the acceptable range for the collection
of this essence group.void removeChoiceAt(@UInt32 int index) throws IndexOutOfBoundsException
Removes the choice at the given index in the collection of choices of this essence group, which identify the alternate representations that may be chosen. Items already existing at higher indices will be moved down by one index to accommodate. The essence group should always contain at least one choice, although the implementation may not check this.
index
- The 0-based index into the collection of choices indicating which
choice to remove.
IndexOutOfBoundsException
- Index is outside the acceptable
range for this group.
|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |