![JAR search and dependency download from the Maven repository](/logo.png)
org.jcodec.common.model.Packet 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;
/**
* This class is part of JCodec ( www.jcodec.org ) This software is distributed
* under FreeBSD License
*
* Encoded stream packet
*
* @author Stanislav Vitvitskiy
*
*/
public class Packet {
private byte[] data;
private long pts;
private int duration;
private int frameNo;
private boolean iframe;
public Packet(byte[] data, long pts, int duration, int frameNo, boolean iframe) {
this.data = data;
this.pts = pts;
this.duration = duration;
this.frameNo = frameNo;
this.iframe = iframe;
}
public byte[] getData() {
return data;
}
public long getPts() {
return pts;
}
public int getDuration() {
return duration;
}
public int getFrameNo() {
return frameNo;
}
public boolean isIframe() {
return iframe;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy