@MediaClass(uuid1=218169601, uuid2=257, uuid3=768, uuid4={6,14,43,52,2,6,1,1}, definedName="Segment", description="The Segment class represents a Component that is independent of any surrounding object.", symbol="Segment", isConcrete=false) public class SegmentImpl extends ComponentImpl implements Segment, QSegment, Serializable, Cloneable
Implements 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.
ObjectClassPropertyID| Constructor and Description |
|---|
SegmentImpl() |
| Modifier and Type | Method and Description |
|---|---|
Segment |
clone()
Create a cloned copy of this interchange object.
|
Sequence |
generateSequence()
Create a sequence containing just this segment.
|
int |
getCutPoint() |
long |
getKeyOffset() |
int |
getPackLayerKeyIndicator() |
Stream |
getSegmentBlob() |
Stream |
getTrackBlob() |
Segment |
getTrackKeyRenderSequence() |
String |
getTrackName() |
Segment |
getTrackRenderSequence() |
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.
|
void |
setCutPoint(Integer cutPoint) |
void |
setKeyOffset(Long keyOffset) |
void |
setPackLayerKeyIndicator(Integer packLayerKeyIndicator) |
void |
setSegmentBlob(Stream segmentBlob) |
void |
setTrackBlob(Stream trackBlob) |
void |
setTrackKeyRenderSequence(Segment trackKeyRenderSequence) |
void |
setTrackName(String trackName) |
void |
setTrackRenderSequence(Segment trackRenderSequence) |
appendComponentAttribute, appendComponentAttribute, appendComponentKLVData, appendComponentUserComment, appendComponentUserComment, clearComponentAttributes, clearComponentKLVData, clearComponentUserComments, countComponentAttributes, countComponentKLVData, countComponentUserComments, getComment, getComponentAttributes, getComponentDataDefinition, getComponentKLVData, getComponentLength, getComponentUserComments, getEditName, getJupiterClipOffset, getJupiterID, getLengthPresent, initializeComponentDataDefinition, prependComponentAttribute, prependComponentKLVData, prependComponentUserComment, removeComponentAttribute, removeComponentKLVData, removeComponentUserComment, setComponentDataDefinition, setComponentLength, setComponentLengthFromStream, setEditName, setJupiterClipOffset, setJupiterID, setLengthPresentaddApplicationPlugin, appendXMLChildren, clearApplicationPlugins, containsApplicationPlugin, containsApplicationPlugin, countApplicationPlugins, deepEquals, disableGenerationTracking, enableGenerationTracking, equals, getApplicationPlugins, getGeneration, getLinkedGenerationID, getLinkedGenerationIDString, getObjectClass, getPersistentID, getPersistentIndex, hashCode, isGenerationTracked, removeApplicationPlugin, removeApplicationPlugin, setLinkedGenerationID, setLinkedGenerationIDString, setObjectClass, setPersistentID, setPersistentIndex, toStringappendComponentAttribute, 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, setPersistentIndex@MediaProperty(uuid1=268864273, uuid2=28834, uuid3=19796, uuid4={-81,-47,64,-100,-77,-111,-102,-26}, definedName="Segment blob", symbol="Segment_blob", aliases="Segment_blob", typeName="Stream", optional=true, uniqueIdentifier=false, pid=0, prefix="q", namespace="http://www.quantel.com/genQ/extensions") public Stream getSegmentBlob() throws PropertyNotPresentException
getSegmentBlob in interface QSegmentPropertyNotPresentException@MediaPropertySetter(value="Segment blob") public void setSegmentBlob(Stream segmentBlob)
setSegmentBlob in interface QSegment@MediaProperty(uuid1=654032966, uuid2=17044, uuid3=18848, uuid4={-111,-65,49,-16,45,-27,99,53}, definedName="CutPoint", symbol="CutPoint", aliases="CutPoint", typeName="Int32", optional=true, uniqueIdentifier=false, pid=0, prefix="q", namespace="http://www.quantel.com/genQ/extensions") @Int32 public int getCutPoint() throws PropertyNotPresentException
getCutPoint in interface QSegmentPropertyNotPresentException@MediaPropertySetter(value="CutPoint") public void setCutPoint(@Int32 Integer cutPoint)
setCutPoint in interface QSegment@MediaProperty(uuid1=-559922832, uuid2=-24250, uuid3=18996, uuid4={-128,-127,116,-23,-74,43,-107,60}, definedName="Track render sequence", symbol="Track_render_sequence", aliases="Track_render_sequence", typeName="SegmentStrongReference", optional=true, uniqueIdentifier=false, pid=0, prefix="q", namespace="http://www.quantel.com/genQ/extensions") public Segment getTrackRenderSequence() throws PropertyNotPresentException
getTrackRenderSequence in interface QSegmentPropertyNotPresentException@MediaPropertySetter(value="Track render sequence") public void setTrackRenderSequence(Segment trackRenderSequence)
setTrackRenderSequence in interface QSegment@MediaProperty(uuid1=2112948090, uuid2=20357, uuid3=19644, uuid4={-104,-114,-101,-68,-63,14,20,110}, definedName="Pack layer key indicator", symbol="Pack_layer_key_indicator", aliases="Pack_layer_key_indicator", typeName="Int32", optional=true, uniqueIdentifier=false, pid=0, prefix="q", namespace="http://www.quantel.com/genQ/extensions") @Int32 public int getPackLayerKeyIndicator() throws PropertyNotPresentException
getPackLayerKeyIndicator in interface QSegmentPropertyNotPresentException@MediaPropertySetter(value="Pack layer key indicator") public void setPackLayerKeyIndicator(@Int32 Integer packLayerKeyIndicator)
setPackLayerKeyIndicator in interface QSegment@MediaProperty(uuid1=-286713187, uuid2=5294, uuid3=17408, uuid4={-98,31,72,-123,25,101,81,-40}, definedName="Track key render sequence", symbol="Track_key_render_sequence", aliases="Track_key_render_sequence", typeName="SegmentStrongReference", optional=true, uniqueIdentifier=false, pid=0, prefix="q", namespace="http://www.quantel.com/genQ/extensions") public Segment getTrackKeyRenderSequence() throws PropertyNotPresentException
getTrackKeyRenderSequence in interface QSegmentPropertyNotPresentException@MediaPropertySetter(value="Track key render sequence") public void setTrackKeyRenderSequence(Segment trackKeyRenderSequence)
setTrackKeyRenderSequence in interface QSegment@MediaProperty(uuid1=1061222067, uuid2=15670, uuid3=18894, uuid4={-89,-117,-95,-102,-120,-16,77,-53}, definedName="Track blob", symbol="Track_blob", aliases="Track_blob", typeName="Stream", optional=true, uniqueIdentifier=false, pid=0, prefix="q", namespace="http://www.quantel.com/genQ/extensions") public Stream getTrackBlob() throws PropertyNotPresentException
getTrackBlob in interface QSegmentPropertyNotPresentException@MediaPropertySetter(value="Track blob") public void setTrackBlob(Stream trackBlob)
setTrackBlob in interface QSegment@MediaProperty(uuid1=1285663196, uuid2=-25282, uuid3=18666, uuid4={-91,57,109,-51,-5,100,-16,-19}, definedName="Key offset", symbol="Key_offset", aliases="Key_offset", typeName="Int64", optional=true, uniqueIdentifier=false, pid=0, prefix="q", namespace="http://www.quantel.com/genQ/extensions") @Int64 public long getKeyOffset() throws PropertyNotPresentException
getKeyOffset in interface QSegmentPropertyNotPresentException@MediaPropertySetter(value="Key offset") public void setKeyOffset(@Int64 Long keyOffset)
setKeyOffset in interface QSegment@MediaProperty(uuid1=-773215508, uuid2=18897, uuid3=17711, uuid4={-123,-23,89,-125,-79,-69,71,45}, definedName="TrackName", symbol="TrackName", aliases="TrackName", typeName="UTF16String", optional=true, uniqueIdentifier=false, pid=0, prefix="q", namespace="http://www.quantel.com/genQ/extensions") public String getTrackName() throws PropertyNotPresentException
getTrackName in interface QSegmentPropertyNotPresentException@MediaPropertySetter(value="TrackName") public void setTrackName(String trackName)
setTrackName in interface QSegmentpublic TimecodeValue segmentOffsetToTC(long offset) throws TimecodeNotFoundException
SegmentConverts the given segment offset to a timecode value.
segmentOffsetToTC in interface Segmentoffset - Segment offset to be converted to a timecode.TimecodeNotFoundException - The given offset is not available as
a timecode value in this segment.Segment.segmentTCToOffset(TimecodeValue, Rational)public long segmentTCToOffset(TimecodeValue timecode, Rational editRate) throws NullPointerException, TimecodeNotFoundException, BadSampleOffsetException
SegmentConverts the given timecode and edit rate to a segment offset value.
segmentTCToOffset in interface Segmenttimecode - 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.Segment.segmentOffsetToTC(long)public Segment clone()
InterchangeObjectCreate a cloned copy of this interchange object.
clone in interface MediaEntityclone in interface Componentclone in interface InterchangeObjectclone in interface Segmentclone in class ComponentImplpublic Sequence generateSequence()
SegmentCreate a sequence containing just this segment.
generateSequence in interface Segment(c)2007-2016 Richard Cartwright, all rights reserved. Licensed under Apache 2 license and subject to the AMWA IPR policy.