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

org.jcodec.api.PictureWithMetadata Maven / Gradle / Ivy

There is a newer version: 0.2.5
Show newest version
package org.jcodec.api;

import org.jcodec.common.DemuxerTrackMeta;
import org.jcodec.common.model.Picture;

/**
 * This class is part of JCodec ( www.jcodec.org ) This software is distributed
 * under FreeBSD License
 * 
 * @author The JCodec project
 * 
 */
public class PictureWithMetadata {
    private Picture picture;
    private double timestamp;
    private double duration;
    private DemuxerTrackMeta.Orientation orientation;

    public PictureWithMetadata(Picture picture, double timestamp, double duration) {
        this.picture = picture;
        this.timestamp = timestamp;
        this.duration = duration;
        this.orientation = DemuxerTrackMeta.Orientation.D_0;
    }

    public PictureWithMetadata(Picture picture, double timestamp, double duration, DemuxerTrackMeta.Orientation orientation) {
        this.picture = picture;
        this.timestamp = timestamp;
        this.duration = duration;
        this.orientation = orientation;
    }

    public Picture getPicture() {
        return picture;
    }

    public double getTimestamp() {
        return timestamp;
    }

    public double getDuration() {
        return duration;
    }

    public DemuxerTrackMeta.Orientation getOrientation() {
        return orientation;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy