public interface Segment extends Component
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.
| Modifier and Type | Method and Description |
|---|---|
Segment |
clone()
Create a cloned copy of this segment.
|
Sequence |
generateSequence()
Create a sequence containing just this segment.
|
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.
|
appendComponentAttribute, appendComponentAttribute, appendComponentKLVData, appendComponentUserComment, appendComponentUserComment, clearComponentAttributes, clearComponentKLVData, clearComponentUserComments, countComponentAttributes, countComponentKLVData, countComponentUserComments, getComponentAttributes, getComponentDataDefinition, getComponentKLVData, getComponentLength, getComponentUserComments, getLengthPresent, removeComponentAttribute, removeComponentKLVData, removeComponentUserComment, setComponentDataDefinition, setComponentLength, setLengthPresentaddApplicationPlugin, clearApplicationPlugins, containsApplicationPlugin, containsApplicationPlugin, countApplicationPlugins, deepEquals, disableGenerationTracking, enableGenerationTracking, equals, getApplicationPlugins, getGeneration, getLinkedGenerationID, getObjectClass, isGenerationTracked, removeApplicationPlugin, removeApplicationPlugin, setLinkedGenerationID, setObjectClass, toStringgetPersistentID, setPersistentIndexTimecodeValue 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)Sequence generateSequence()
Create a sequence containing just this segment.
Segment clone()
Create a cloned copy of this segment.
clone in interface Componentclone in interface InterchangeObjectclone in interface MediaEntity(c)2007-2016 Richard Cartwright, all rights reserved. Licensed under Apache 2 license and subject to the AMWA IPR policy.