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

org.gstreamer.SeekFlags Maven / Gradle / Ivy

There is a newer version: 1.6
Show newest version
/* 
 * Copyright (c) 2007 Wayne Meissner
 * 
 * This file is part of gstreamer-java.
 *
 * This code is free software: you can redistribute it and/or modify it under 
 * the terms of the GNU Lesser General Public License version 3 only, as
 * published by the Free Software Foundation.
 *
 * This code is distributed in the hope that it will be useful, but WITHOUT 
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License 
 * version 3 for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * version 3 along with this work.  If not, see .
 */

package org.gstreamer;

/**
 * Flags to be used with {@link Pipeline#seek seek} or 
 * {@link org.gstreamer.event.SeekEvent#SeekEvent SeekEvent}
 * 

* All flags can be used together. *

* A non flushing seek might take some time to perform as the currently * playing data in the pipeline will not be cleared. *

* An accurate seek might be slower for formats that don't have any indexes * or timestamp markers in the stream. Specifying this flag might require a * complete scan of the file in those cases. *

* When performing a segment seek: after the playback of the segment completes, * no EOS will be emitted by the element that performed the seek, but a * {@link Bus.SEGMENT_DONE} message will be posted on the bus by the element. * When this message is posted, it is possible to send a new seek event to * continue playback. With this seek method it is possible to perform seamless * looping or simple linear editing. */ public final class SeekFlags { /** No flag. */ public final static int NONE = 0; /** Flush pipeline. */ public final static int FLUSH = 1 << 0; /** * Accurate position is requested, this might be considerably slower for some formats. */ public final static int ACCURATE = 1 << 1; /** * Seek to the nearest keyframe. This might be faster but less accurate. */ public final static int KEY_UNIT = 1 << 2; /** Perform a segment seek. */ public final static int SEGMENT = 1 << 3; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy