com.googlecode.mp4parser.authoring.WrappingTrack Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of isoparser Show documentation
Show all versions of isoparser Show documentation
A generic parser and writer for all ISO 14496 based files (MP4, Quicktime, DCF, PDCF, ...)
package com.googlecode.mp4parser.authoring;
import com.coremedia.iso.boxes.CompositionTimeToSample;
import com.coremedia.iso.boxes.SampleDependencyTypeBox;
import com.coremedia.iso.boxes.SampleDescriptionBox;
import com.coremedia.iso.boxes.SubSampleInformationBox;
import com.googlecode.mp4parser.boxes.mp4.samplegrouping.GroupEntry;
import java.io.IOException;
import java.util.List;
import java.util.Map;
/**
* A simple track wrapper that delegates all calls to parent track. Override certain methods inline to change result.
*/
public class WrappingTrack implements Track {
Track parent;
public WrappingTrack(Track parent) {
this.parent = parent;
}
public SampleDescriptionBox getSampleDescriptionBox() {
return parent.getSampleDescriptionBox();
}
public long[] getSampleDurations() {
return parent.getSampleDurations();
}
public long getDuration() {
return parent.getDuration();
}
public List getCompositionTimeEntries() {
return parent.getCompositionTimeEntries();
}
public long[] getSyncSamples() {
return parent.getSyncSamples();
}
public List getSampleDependencies() {
return parent.getSampleDependencies();
}
public TrackMetaData getTrackMetaData() {
return parent.getTrackMetaData();
}
public String getHandler() {
return parent.getHandler();
}
public List getSamples() {
return parent.getSamples();
}
public SubSampleInformationBox getSubsampleInformationBox() {
return parent.getSubsampleInformationBox();
}
public String getName() {
return parent.getName() + "'";
}
public List getEdits() {
return parent.getEdits();
}
public void close() throws IOException {
parent.close();
}
public Map getSampleGroups() {
return parent.getSampleGroups();
}
}