Debian Codegraph @

gstreamer/src/encodingprofile.hg

raw
1 /* gstreamermm - a C++ wrapper for gstreamer
2 *
3 * Copyright 2008-2016 The gstreamermm Development Team
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free
17 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19
20 #include <gst/gst.h>
21 #include <gstreamermm/object.h>
22
23 _DEFS(gstreamermm,gst)
24
25 namespace Gst
26 {
27
28 class Caps;
29
30 /** Gst::EncodingProfile can be provided to the 'encodebin' element, which will take
31 * care of selecting and setting up the required elements to produce an output stream
32 * conforming to the specifications of the profile.
33 *
34 * TODO update example
35 *
36 * Last reviewed on 2016-05-21 (1.8.0).
37 *
38 */
39 class EncodingProfile : public Gst::Object
40 {
41 _CLASS_GOBJECT(EncodingProfile, GstEncodingProfile, GST_ENCODING_PROFILE, Gst::Object, GstObject)
42
43 public:
44 _WRAP_METHOD(Glib::ustring get_name() const, gst_encoding_profile_get_name)
45 _WRAP_METHOD(Glib::ustring get_description() const, gst_encoding_profile_get_description)
46 _WRAP_METHOD(Glib::RefPtr<Gst::Caps> get_format(), gst_encoding_profile_get_format)
47 _WRAP_METHOD(Glib::RefPtr<const Gst::Caps> get_format() const, gst_encoding_profile_get_format)
48 _WRAP_METHOD(Glib::ustring get_preset() const, gst_encoding_profile_get_preset)
49 _WRAP_METHOD(Glib::ustring get_preset_name() const, gst_encoding_profile_get_preset_name)
50 _WRAP_METHOD(guint get_presence() const, gst_encoding_profile_get_presence)
51 _WRAP_METHOD(Glib::RefPtr<Gst::Caps> get_restriction(), gst_encoding_profile_get_restriction)
52 _WRAP_METHOD(Glib::RefPtr<const Gst::Caps> get_restriction() const, gst_encoding_profile_get_restriction, constversion)
53 _WRAP_METHOD(Glib::ustring get_file_extension() const, gst_encoding_profile_get_file_extension)
54 _WRAP_METHOD(void set_name(const Glib::ustring& name), gst_encoding_profile_set_name)
55 _WRAP_METHOD(void set_description(const Glib::ustring& name), gst_encoding_profile_set_description)
56 _WRAP_METHOD(void set_enabled(bool enabled), gst_encoding_profile_set_enabled)
57 _WRAP_METHOD(void set_format(const Glib::RefPtr<Gst::Caps>& format), gst_encoding_profile_set_format)
58 _WRAP_METHOD(void set_preset(const Glib::ustring& preset), gst_encoding_profile_set_preset)
59 _WRAP_METHOD(void set_preset_name(const Glib::ustring& preset_name), gst_encoding_profile_set_preset_name)
60 _WRAP_METHOD(void set_restriction(const Glib::RefPtr<Gst::Caps>& restriction), gst_encoding_profile_set_restriction)
61 _WRAP_METHOD(void set_presence(guint presence), gst_encoding_profile_set_presence)
62 _WRAP_METHOD(bool is_equal(const Glib::RefPtr<Gst::EncodingProfile>& profile2) const, gst_encoding_profile_is_equal)
63 _WRAP_METHOD(bool is_enabled() const, gst_encoding_profile_is_enabled)
64 _WRAP_METHOD(Glib::RefPtr<Gst::Caps> get_input_caps() const, gst_encoding_profile_get_input_caps)
65 _WRAP_METHOD(Glib::ustring get_type_nick() const, gst_encoding_profile_get_type_nick)
66
67 _WRAP_METHOD(bool get_allow_dynamic_output() const, gst_encoding_profile_get_allow_dynamic_output)
68 _WRAP_METHOD(void set_allow_dynamic_output(bool allow_dynamic_output), gst_encoding_profile_set_allow_dynamic_output)
69
70 _WRAP_PROPERTY("restriction-caps", Glib::RefPtr<Gst::Caps>)
71 };
72
73 } // namespace Gst