00001 // -*- c++ -*- 00002 // Generated by gtkmmproc -- DO NOT MODIFY! 00003 #ifndef _GSTREAMERMM_FORMAT_H 00004 #define _GSTREAMERMM_FORMAT_H 00005 00006 00007 #include <glibmm.h> 00008 00009 // -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*- 00010 00011 /* gstreamermm - a C++ wrapper for gstreamer 00012 * 00013 * Copyright 2008 The gstreamermm Development Team 00014 * 00015 * This library is free software; you can redistribute it and/or 00016 * modify it under the terms of the GNU Library General Public 00017 * License as published by the Free Software Foundation; either 00018 * version 2 of the License, or (at your option) any later version. 00019 * 00020 * This library is distributed in the hope that it will be useful, 00021 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00022 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00023 * Library General Public License for more details. 00024 * 00025 * You should have received a copy of the GNU Library General Public 00026 * License along with this library; if not, write to the Free 00027 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00028 */ 00029 00030 #include <gst/gstformat.h> 00031 00032 00033 namespace Gst 00034 { 00035 00041 enum Format 00042 { 00043 FORMAT_UNDEFINED, 00044 FORMAT_DEFAULT, 00045 FORMAT_BYTES, 00046 FORMAT_TIME, 00047 FORMAT_BUFFERS, 00048 FORMAT_PERCENT 00049 }; 00050 00051 } // namespace Gst 00052 00053 00054 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00055 namespace Glib 00056 { 00057 00058 template <> 00059 class Value<Gst::Format> : public Glib::Value_Enum<Gst::Format> 00060 { 00061 public: 00062 static GType value_type() G_GNUC_CONST; 00063 }; 00064 00065 } // namespace Glib 00066 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00067 00068 00069 namespace Gst 00070 { 00071 00072 00076 struct FormatDefinition 00077 { 00079 Gst::Format value; 00081 Glib::ustring nick; 00083 Glib::ustring description; 00085 Glib::QueryQuark quark; 00086 }; 00087 00093 Glib::ustring get_name(Format f); 00094 00100 Glib::QueryQuark get_quark(Format f); 00101 00110 Format register_format(const Glib::ustring& nick, const Glib::ustring&description); 00111 00118 Format get_format(const Glib::ustring& nick); 00119 00120 //TODO: first arg is an array of Formats 00121 //TODO: bool formats_contain_format(const Format& formats, Format format); 00122 00129 bool get_details(Format format, FormatDefinition& def); 00130 00131 } //namespace Gst 00132 00133 00134 #endif /* _GSTREAMERMM_FORMAT_H */ 00135