00001
00002
00003 #ifndef _GSTREAMERMM_FORMAT_H
00004 #define _GSTREAMERMM_FORMAT_H
00005
00006
00007 #include <glibmm.h>
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
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 }
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 }
00066 #endif
00067
00068
00069 namespace Gst
00070 {
00071
00072
00076 struct FormatDefinition
00077 {
00079 Gst::Format value;
00080
00082 Glib::ustring nick;
00083
00085 Glib::ustring description;
00086
00088 Glib::QueryQuark quark;
00089 };
00090
00091 namespace Enums
00092 {
00093
00099 Glib::ustring get_name(Format f);
00100
00106 Glib::QueryQuark get_quark(Format f);
00107
00108 }
00109
00116 Format get_format(const Glib::ustring& nick);
00117
00124 bool get_details(Format format, FormatDefinition& def);
00125
00126 }
00127
00128
00129 #endif
00130