All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mtons.media.attribute.VideoInfo Maven / Gradle / Ivy

The newest version!
package mtons.media.attribute;

/**
 * Instances of this class report informations about a video stream that can be
 * decoded.
 */
public class VideoInfo {

	/**
	 * The video stream decoder name.
	 */
	private String decoder;

	/**
	 * The video size. If null this information is not available.
	 */
	private VideoSize size = null;

	/**
	 * The video stream (average) bit rate. If less than 0, this information is
	 * not available.
	 */
	private int bitRate = -1;

	/**
	 * The video frame rate. If less than 0 this information is not available.
	 */
	private float frameRate = -1;

	public String getDecoder() {
		return decoder;
	}

	public void setDecoder(String decoder) {
		this.decoder = decoder;
	}

	public VideoSize getSize() {
		return size;
	}

	public void setSize(VideoSize size) {
		this.size = size;
	}

	public int getBitRate() {
		return bitRate;
	}

	public void setBitRate(int bitRate) {
		this.bitRate = bitRate;
	}

	public float getFrameRate() {
		return frameRate;
	}

	public void setFrameRate(float frameRate) {
		this.frameRate = frameRate;
	}

	@Override
	public String toString() {
		return getClass().getName() + " (decoder=" + decoder + ", size=" + size
				+ ", bitRate=" + bitRate + ", frameRate=" + frameRate + ")";
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy