/*
* Copyright (c) 2014 Tom Greenwood <tgreenwood@cafex.com>
* Copyright (c) 2009 Levente Farkas
* Copyright (c) 2007, 2008 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 <http://www.gnu.org/licenses/>.
*/
package org.gstreamer.lowlevel;
import org.gstreamer.Buffer;
import org.gstreamer.Caps;
import org.gstreamer.Clock;
import org.gstreamer.Format;
import org.gstreamer.GstObject;
import org.gstreamer.Message;
import org.gstreamer.MessageType;
import org.gstreamer.Sample;
import org.gstreamer.Segment;
import org.gstreamer.State;
import org.gstreamer.Structure;
import org.gstreamer.TagList;
import org.gstreamer.lowlevel.GstAPI.GErrorStruct;
import org.gstreamer.lowlevel.GstMiniObjectAPI.MiniObjectStruct;
import org.gstreamer.lowlevel.annotations.CallerOwnsReturn;
import org.gstreamer.lowlevel.annotations.ConstReturn;
import org.gstreamer.lowlevel.annotations.Invalidate;
import com.sun.jna.Pointer;
import com.sun.jna.ptr.PointerByReference;
import java.util.Arrays;
import java.util.List;
/**
* GstSample functions
*/
public interface GstSampleAPI extends com.sun.jna.Library {
GstSampleAPI GSTMESSAGE_API = GstNative.load(GstSampleAPI.class);
public static final class SampleStruct extends com.sun.jna.Structure {
public volatile MiniObjectStruct mini_object;
public volatile Pointer buffer; // to Buffer
public volatile Pointer caps; // to Caps
public volatile Pointer segment; // to Segment
public volatile Pointer info; // to Strucutre
/**
* Creates a new instance of MessageStruct
*/
public SampleStruct() {
}
public SampleStruct(Pointer ptr) {
useMemory(ptr);
}
@Override
protected List<String> getFieldOrder() {
return Arrays.asList(new String[]{
"mini_object", "buffer", "caps", "segment", "info"
});
}
}
Pointer gst_sample_get_buffer(Sample sample);
}