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

com.googlecode.mp4parser.authoring.WrappingTrack Maven / Gradle / Ivy

Go to download

A generic parser and writer for all ISO 14496 based files (MP4, Quicktime, DCF, PDCF, ...)

There is a newer version: 1.1.22
Show newest version
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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy