Class EditListBox.Entry
- java.lang.Object
-
- org.mp4parser.boxes.iso14496.part12.EditListBox.Entry
-
- Enclosing class:
- EditListBox
public static class EditListBox.Entry extends Object
-
-
Constructor Summary
Constructors Constructor Description Entry(EditListBox editListBox, long segmentDuration, long mediaTime, double mediaRate)Creates a newEntrywith all values set.Entry(EditListBox editListBox, ByteBuffer bb)
-
Method Summary
Modifier and Type Method Description booleanequals(Object o)voidgetContent(ByteBuffer bb)doublegetMediaRate()The media rate specifies the relative rate at which to play the media corresponding to a specific edit segment.longgetMediaTime()The media time is an integer containing the starting time within the media of a specific edit segment(in media time scale units, in composition time)longgetSegmentDuration()The segment duration is an integer that specifies the duration of this edit segment in units of the timescale in the Movie Header BoxinthashCode()voidsetMediaRate(double mediaRate)The media rate specifies the relative rate at which to play the media corresponding to a specific edit segment.voidsetMediaTime(long mediaTime)The media time is an integer containing the starting time within the media of a specific edit segment(in media time scale units, in composition time)voidsetSegmentDuration(long segmentDuration)The segment duration is an integer that specifies the duration of this edit segment in units of the timescale in the Movie Header BoxStringtoString()
-
-
-
Constructor Detail
-
Entry
public Entry(EditListBox editListBox, long segmentDuration, long mediaTime, double mediaRate)
Creates a newEntrywith all values set.- Parameters:
editListBox- parentEditListBoxsegmentDuration- duration in movie timescalemediaTime- starting timemediaRate- relative play rate
-
Entry
public Entry(EditListBox editListBox, ByteBuffer bb)
-
-
Method Detail
-
getSegmentDuration
public long getSegmentDuration()
The segment duration is an integer that specifies the duration of this edit segment in units of the timescale in the Movie Header Box- Returns:
- segment duration in movie timescale
-
setSegmentDuration
public void setSegmentDuration(long segmentDuration)
The segment duration is an integer that specifies the duration of this edit segment in units of the timescale in the Movie Header Box- Parameters:
segmentDuration- new segment duration in movie timescale
-
getMediaTime
public long getMediaTime()
The media time is an integer containing the starting time within the media of a specific edit segment(in media time scale units, in composition time)- Returns:
- starting time
-
setMediaTime
public void setMediaTime(long mediaTime)
The media time is an integer containing the starting time within the media of a specific edit segment(in media time scale units, in composition time)- Parameters:
mediaTime- starting time
-
getMediaRate
public double getMediaRate()
The media rate specifies the relative rate at which to play the media corresponding to a specific edit segment.- Returns:
- relative play rate
-
setMediaRate
public void setMediaRate(double mediaRate)
The media rate specifies the relative rate at which to play the media corresponding to a specific edit segment.- Parameters:
mediaRate- new relative play rate
-
getContent
public void getContent(ByteBuffer bb)
-
-