|
Media Authoring with Java API |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface Segment
Specifies a component that is independent of any surrounding object. Contrast this to a transition which is a component that depends on other components to establish its value.
MobSlot.getSegment()| Method Summary | |
|---|---|
TimecodeValue |
segmentOffsetToTC(long offset)
Converts the given segment offset to a timecode value. |
long |
segmentTCToOffset(TimecodeValue timecode,
Rational editRate)
Converts the given timecode and edit rate to a segment offset value. |
| 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 |
|---|
TimecodeValue segmentOffsetToTC(@PositionType
long offset)
throws TimecodeNotFoundException
Converts the given segment offset to a timecode value.
offset - Segment offset to be converted to a timecode.
TimecodeNotFoundException - The given offset is not available as
a timecode value in this segment.segmentTCToOffset(TimecodeValue, Rational)
@FrameOffset
long segmentTCToOffset(TimecodeValue timecode,
Rational editRate)
throws NullPointerException,
TimecodeNotFoundException,
BadSampleOffsetException
Converts the given timecode and edit rate to a segment offset value.
timecode - Timecode to be converted to an offset.editRate - Edit rate of the given timecode.
NullPointerException - One or both of the given timecode and/or edit rate is/are
null.
TimecodeNotFoundException - The given timecode is not available
in this segment.
BadSampleOffsetException - The given timecode is outside the bounds
of the timecode values represented by this segment.segmentOffsetToTC(long)
|
Media Authoring with Java API |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||