org.gstreamer.elements.BaseSrc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gstreamer-java Show documentation
Show all versions of gstreamer-java Show documentation
Java binding for the Gstreamer framework (0.10 compatible)
/*
* Copyright (c) 2009 Levente Farkas
* 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.elements;
import org.gstreamer.ClockTime;
import org.gstreamer.Element;
import org.gstreamer.FlowReturn;
import org.gstreamer.Format;
import org.gstreamer.lowlevel.BaseAPI;
import org.gstreamer.lowlevel.GstNative;
public class BaseSrc extends Element {
private static interface BaseSrcAPI extends BaseAPI {
FlowReturn gst_base_src_wait_playing(BaseSrc src);
void gst_base_src_set_live(BaseSrc src, boolean live);
boolean gst_base_src_is_live(BaseSrc src);
void gst_base_src_set_format(BaseSrc src, Format format);
boolean gst_base_src_query_latency(BaseSrc src, boolean[] live,
ClockTime[] min_latency,
ClockTime[] max_latency);
void gst_base_src_set_do_timestamp(BaseSrc src, boolean live);
boolean gst_base_src_get_do_timestamp(BaseSrc src);
}
private static final BaseSrcAPI gst = GstNative.load("gstbase", BaseSrcAPI.class);
public BaseSrc(Initializer init) {
super(init);
}
public void setFormat(Format format) {
gst.gst_base_src_set_format(this, format);
}
public void setLive(boolean live) {
gst.gst_base_src_set_live(this, live);
}
public boolean isLive() {
return gst.gst_base_src_is_live(this);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy