@MediaClass(uuid1=218169601, uuid2=257, uuid3=5120, uuid4={6,14,43,52,2,6,1,1}, definedName="Timecode", description="The Timecode class stores videotape or audio tape timecode information.", symbol="Timecode") public class TimecodeSegmentImpl extends SegmentImpl implements TimecodeSegment, QTimecode, Serializable, Cloneable
Implements the storage of video tape or audio tape timecode information.
ObjectClassPropertyID| Constructor and Description |
|---|
TimecodeSegmentImpl() |
TimecodeSegmentImpl(long length,
TimecodeValue timecode)
Creates and initializes a new timecode segment class, which stores videotape or
audio tape timecode information.
|
| Modifier and Type | Method and Description |
|---|---|
TimecodeSegment |
clone()
Create a cloned copy of this interchange object.
|
boolean |
getDropFrame()
Determines whether the timecode is drop (
true value) or
nondrop (false value). |
short |
getFramesPerSecond()
Returns the frames per second of the videotape or audio tape of the timecode.
|
long |
getStartTimecode()
Returns the timecode value by the number of frames offset from
the start of the video or audio.
|
TimecodeValue |
getTimecode()
Returns the timecode value for this timecode segment, which specifies the start timecode
for the segment, the frames per second of the tape and whether the timecode is drop
or non-drop.
|
int |
getTimecodeModifiedFlag() |
static boolean |
initializeDropFrame() |
static short |
initializeFramesPerSecond() |
static long |
initializeStartTimecode() |
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 |
setDropFrame(boolean dropFrame) |
void |
setFPS(short fps) |
void |
setStartTimecode(long startFrame) |
void |
setTimecode(TimecodeValue timecode)
Set the timecode value for this timecode segment, which specifies the start timecode
for the segment, the frames per second of the tape and whether the timecode is drop
or non-drop.
|
void |
setTimecodeModifiedFlag(Integer timecodeModifiedFlag) |
generateSequence, getCutPoint, getKeyOffset, getPackLayerKeyIndicator, getSegmentBlob, getTrackBlob, getTrackKeyRenderSequence, getTrackName, getTrackRenderSequence, setCutPoint, setKeyOffset, setPackLayerKeyIndicator, setSegmentBlob, setTrackBlob, setTrackKeyRenderSequence, setTrackName, setTrackRenderSequenceappendComponentAttribute, 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, toStringgenerateSequenceappendComponentAttribute, 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, setPersistentIndexpublic TimecodeSegmentImpl()
public TimecodeSegmentImpl(long length,
TimecodeValue timecode)
throws NullPointerException,
BadLengthException
Creates and initializes a new timecode segment class, which stores videotape or audio tape timecode information.
length - The length of this component.timecode - Timecode value of the new timecode segment.NullPointerException - The timecode value is null.BadLengthException - Cannot set the length of a component to a negative value.public TimecodeValue getTimecode()
TimecodeSegmentReturns the timecode value for this timecode segment, which specifies the start timecode for the segment, the frames per second of the tape and whether the timecode is drop or non-drop.
getTimecode in interface TimecodeSegmentTimecodeSegment.getStartTimecode(),
TimecodeSegment.getFramesPerSecond(),
TimecodeSegment.getDropFrame()public void setTimecode(TimecodeValue timecode) throws NullPointerException
TimecodeSegmentSet the timecode value for this timecode segment, which specifies the start timecode for the segment, the frames per second of the tape and whether the timecode is drop or non-drop.
setTimecode in interface TimecodeSegmenttimecode - Timecode value for this timecode segment.NullPointerException - The given value for the timecode is null.Forge.makeTimecode(long, short, boolean)@MediaProperty(uuid1=117571843, uuid2=261, uuid3=0, uuid4={6,14,43,52,1,1,1,2}, definedName="StartTimecode", aliases={"Start","TimecodeStart"}, typeName="PositionType", optional=false, uniqueIdentifier=false, pid=5377, symbol="StartTimecode") public long getStartTimecode()
TimecodeSegmentReturns the timecode value by the number of frames offset from the start of the video or audio.
getStartTimecode in interface TimecodeSegmentTimecodeSegment.getTimecode()@MediaPropertySetter(value="StartTimecode") public void setStartTimecode(long startFrame)
public static final long initializeStartTimecode()
@MediaProperty(uuid1=67371265, uuid2=518, uuid3=0, uuid4={6,14,43,52,1,1,1,2}, definedName="FramesPerSecond", aliases="FPS", typeName="UInt16", optional=false, uniqueIdentifier=false, pid=5378, symbol="FramesPerSecond") public short getFramesPerSecond()
TimecodeSegmentReturns the frames per second of the videotape or audio tape of the timecode.
getFramesPerSecond in interface TimecodeSegmentTimecodeSegment.getTimecode()@MediaPropertySetter(value="FramesPerSecond") public void setFPS(short fps) throws IllegalArgumentException
IllegalArgumentExceptionpublic static final short initializeFramesPerSecond()
@MediaProperty(uuid1=67371265, uuid2=1280, uuid3=0, uuid4={6,14,43,52,1,1,1,1}, definedName="DropFrame", aliases="Drop", typeName="Boolean", optional=false, uniqueIdentifier=false, pid=5379, symbol="DropFrame") public boolean getDropFrame()
TimecodeSegmentDetermines whether the timecode is drop (true value) or
nondrop (false value).
If drop is set to true, the real frames-per-second rate represented
by the timecode is 29.97. Calculations of the real time represented by a timecode
or to create a textual representation of the time code drop 108 selected frames
per hour.
getDropFrame in interface TimecodeSegmentTimecodeSegment.getTimecode()@MediaPropertySetter(value="DropFrame") public void setDropFrame(boolean dropFrame)
@MediaProperty(uuid1=1830128499, uuid2=3398, uuid3=17769, uuid4={-99,88,8,95,69,-8,50,117}, definedName="Timecode modified flag", symbol="Timecode_modified_flag", aliases="Timecode_modified_flag", typeName="Int32", optional=true, uniqueIdentifier=false, pid=0, prefix="q", namespace="http://www.quantel.com/genQ/extensions") @Int32 public int getTimecodeModifiedFlag() throws PropertyNotPresentException
getTimecodeModifiedFlag in interface QTimecodePropertyNotPresentException@MediaPropertySetter(value="Timecode modified flag") public void setTimecodeModifiedFlag(@Int32 Integer timecodeModifiedFlag)
setTimecodeModifiedFlag in interface QTimecodepublic static final boolean initializeDropFrame()
public TimecodeValue segmentOffsetToTC(long offset)
SegmentConverts the given segment offset to a timecode value.
segmentOffsetToTC in interface SegmentsegmentOffsetToTC in class SegmentImploffset - Segment offset to be converted to a timecode.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 SegmentsegmentTCToOffset in class SegmentImpltimecode - 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 TimecodeSegment clone()
InterchangeObjectCreate a cloned copy of this interchange object.
clone in interface MediaEntityclone in interface Componentclone in interface InterchangeObjectclone in interface Segmentclone in interface TimecodeSegmentclone in class SegmentImpl(c)2007-2016 Richard Cartwright, all rights reserved. Licensed under Apache 2 license and subject to the AMWA IPR policy.