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

com.googlecode.mp4parser.authoring.Edit 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;

/**
 * Format agnostic EditListBox.Entry.
 */
public class Edit {
    private long timeScale;
    private double segmentDuration;
    private long mediaTime;
    private double mediaRate;

    /**
     * @param mediaTime           time within the current track that is considered start time of this edit.
     * @param timeScale           time scale of the media time entry
     * @param segmentDurationInMs segment duration in seconds
     * @param mediaRate           when mediaRate is 1.0 the playback will be normal. When 2.0 it will be twice as fast.
     */
    public Edit(long mediaTime, long timeScale, double mediaRate, double segmentDurationInMs) {
        this.timeScale = timeScale;
        this.segmentDuration = segmentDurationInMs;
        this.mediaTime = mediaTime;
        this.mediaRate = mediaRate;
    }

    public long getTimeScale() {
        return timeScale;
    }

    public double getSegmentDuration() {
        return segmentDuration;
    }

    public long getMediaTime() {
        return mediaTime;
    }

    public double getMediaRate() {
        return mediaRate;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy