org.mp4parser.muxer.TrackMetaData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of muxer Show documentation
Show all versions of muxer Show documentation
This package has a focus on file operation. It can read A/V data from Random Access Datasources
/*
* Copyright 2012 Sebastian Annies, Hamburg
*
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.mp4parser.muxer;
import org.mp4parser.support.Matrix;
import java.util.Date;
/**
*
*/
public class TrackMetaData implements Cloneable {
/**
* specifies the front-to-back ordering of video tracks; tracks with lower
* numbers are closer to the viewer. 0 is the normal value, and -1 would be
* in front of track 0, and so on.
*/
int layer;
private String language = "eng";
private long timescale;
private Date modificationTime = new Date();
private Date creationTime = new Date();
private Matrix matrix = Matrix.ROTATE_0;
private double width;
private double height;
private float volume;
private long trackId = 1; // zero is not allowed
private int group = 0;
public String getLanguage() {
return language;
}
public void setLanguage(String language) {
this.language = language;
}
public long getTimescale() {
return timescale;
}
public void setTimescale(long timescale) {
this.timescale = timescale;
}
public Date getModificationTime() {
return modificationTime;
}
public void setModificationTime(Date modificationTime) {
this.modificationTime = modificationTime;
}
public Date getCreationTime() {
return creationTime;
}
public void setCreationTime(Date creationTime) {
this.creationTime = creationTime;
}
public double getWidth() {
return width;
}
public void setWidth(double width) {
this.width = width;
}
public double getHeight() {
return height;
}
public void setHeight(double height) {
this.height = height;
}
public long getTrackId() {
return trackId;
}
public void setTrackId(long trackId) {
this.trackId = trackId;
}
public int getLayer() {
return layer;
}
public void setLayer(int layer) {
this.layer = layer;
}
public float getVolume() {
return volume;
}
public void setVolume(float volume) {
this.volume = volume;
}
public int getGroup() {
return group;
}
public void setGroup(int group) {
this.group = group;
}
public Matrix getMatrix() {
return matrix;
}
public void setMatrix(Matrix matrix) {
this.matrix = matrix;
}
public Object clone() {
try {
return super.clone();
} catch (CloneNotSupportedException e) {
return null;
}
}
}