org.jcodec.containers.mp4.boxes.Edit Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jcodec Show documentation
Show all versions of jcodec Show documentation
Pure Java implementation of video/audio codecs and formats
package org.jcodec.containers.mp4.boxes;
/**
* This class is part of JCodec ( www.jcodec.org ) This software is distributed
* under FreeBSD License
*
* @author The JCodec project
*
*/
public class Edit {
private long duration;
private long mediaTime;
private float rate;
public Edit(long duration, long mediaTime, float rate) {
this.duration = duration;
this.mediaTime = mediaTime;
this.rate = rate;
}
public Edit(Edit edit) {
this.duration = edit.duration;
this.mediaTime = edit.mediaTime;
this.rate = edit.rate;
}
public long getDuration() {
return duration;
}
public long getMediaTime() {
return mediaTime;
}
public float getRate() {
return rate;
}
public void shift(long shift) {
mediaTime += shift;
}
public void setMediaTime(long l) {
mediaTime = l;
}
public void setDuration(long duration) {
this.duration = duration;
}
}