org.jcodec.common.model.Frame 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.common.model;
import java.util.List;
/**
* This class is part of JCodec ( www.jcodec.org ) This software is distributed
* under FreeBSD License
*
* @author The JCodec project
*
*/
public class Frame {
private Picture pic;
private RationalLarge pts;
private RationalLarge duration;
private Rational pixelAspect;
private TapeTimecode tapeTimecode;
private int frameNo;
private List messages;
public Frame(Picture pic, RationalLarge pts, RationalLarge duration, Rational pixelAspect, int frameNo,
TapeTimecode tapeTimecode, List messages) {
this.pic = pic;
this.pts = pts;
this.duration = duration;
this.pixelAspect = pixelAspect;
this.tapeTimecode = tapeTimecode;
this.frameNo = frameNo;
this.messages = messages;
}
public Picture getPic() {
return pic;
}
public RationalLarge getPts() {
return pts;
}
public RationalLarge getDuration() {
return duration;
}
public Rational getPixelAspect() {
return pixelAspect;
}
public TapeTimecode getTapeTimecode() {
return tapeTimecode;
}
public int getFrameNo() {
return frameNo;
}
public List getMessages() {
return messages;
}
public boolean isAvailable() {
return true;
}
}