/* * sample.hg * * Created on: Jul 30, 2013 * Author: m.kolny */ /* gstreamermm - a C++ wrapper for gstreamer * * Copyright 2008-2016 The gstreamermm Development Team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #include #include #include #include #include _DEFS(gstreamermm,gst) namespace Gst { /** * A Gst::Sample is a small object containing data, a type, timing and * extra arbitrary information. * * Last reviewed on 2016-09-14 (1.8.0). */ class Sample : public MiniObject { _CLASS_OPAQUE_REFCOUNTED(Sample, GstSample, NONE, gst_sample_ref, gst_sample_unref) _IGNORE(gst_sample_ref, gst_sample_unref) public: static Glib::RefPtr create(const Glib::RefPtr& buffer, const Glib::RefPtr& caps, const Gst::Segment& segment, Gst::Structure&& info); _WRAP_METHOD(Glib::RefPtr get_buffer(), gst_sample_get_buffer, refreturn) _WRAP_METHOD(Glib::RefPtr get_buffer() const, gst_sample_get_buffer, constversion) _WRAP_METHOD(Glib::RefPtr get_caps(), gst_sample_get_caps, refreturn) _WRAP_METHOD(Glib::RefPtr get_caps() const, gst_sample_get_caps, constversion) _WRAP_METHOD(Gst::Structure get_info() const, gst_sample_get_info) _WRAP_METHOD(Glib::RefPtr copy() const, gst_sample_copy) #m4 _CONVERSION(`GstSegment*',`Gst::Segment',`Glib::wrap($3, true)') _WRAP_METHOD(Gst::Segment get_segment() const, gst_sample_get_segment) }; }//namespace Gst