org.jcodec.api.PictureWithMetadata 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.api;
import org.jcodec.common.DemuxerTrackMeta;
import org.jcodec.common.model.Picture;
/**
* This class is part of JCodec ( www.jcodec.org ) This software is distributed
* under FreeBSD License
*
* @author The JCodec project
*
*/
public class PictureWithMetadata {
private Picture picture;
private double timestamp;
private double duration;
private DemuxerTrackMeta.Orientation orientation;
public PictureWithMetadata(Picture picture, double timestamp, double duration) {
this.picture = picture;
this.timestamp = timestamp;
this.duration = duration;
this.orientation = DemuxerTrackMeta.Orientation.D_0;
}
public PictureWithMetadata(Picture picture, double timestamp, double duration, DemuxerTrackMeta.Orientation orientation) {
this.picture = picture;
this.timestamp = timestamp;
this.duration = duration;
this.orientation = orientation;
}
public Picture getPicture() {
return picture;
}
public double getTimestamp() {
return timestamp;
}
public double getDuration() {
return duration;
}
public DemuxerTrackMeta.Orientation getOrientation() {
return orientation;
}
}