• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • Examples
  • File List
  • File Members

GstUtil.h

Go to the documentation of this file.
00001 // GstUtil.h: Generalized Gstreamer utilities for pipeline configuration.
00002 // 
00003 //   Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
00004 // 
00005 // This program is free software; you can redistribute it and/or modify
00006 // it under the terms of the GNU General Public License as published by
00007 // the Free Software Foundation; either version 3 of the License, or
00008 // (at your option) any later version.
00009 // 
00010 // This program is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 // GNU General Public License for more details.
00014 //
00015 // You should have received a copy of the GNU General Public License
00016 // along with this program; if not, write to the Free Software
00017 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00018 
00019 #ifndef _GSTUTIL_H
00020 #define _GSTUTIL_H
00021 
00022 #include <gst/gst.h>
00023 #include "dsodefs.h" // DSOEXPORT
00024 
00025 // GST_TIME_AS_MSECONDS not defined as of gst 0.10.9
00026 // is defined as of gst 0.10.19
00027 #ifndef GST_TIME_AS_MSECONDS
00028 # define GST_TIME_AS_MSECONDS(time) ((time) / G_GINT64_CONSTANT (1000000))
00029 #endif
00030 
00031 namespace gnash {
00032 namespace media {
00033 namespace gst {
00034 
00036 //
00039 class DSOEXPORT GstUtil {
00040         
00041 public: 
00042         
00064     static GstElement* get_audiosink_element();
00065 
00066 
00068     //
00075     static bool check_missing_plugins(GstCaps* caps);
00076         
00077 private:
00078 
00079   GstUtil();
00080   ~GstUtil();
00081 };
00082 
00083 } // gnash.media.gst namespace
00084 } // media namespace
00085 } // gnash namespace
00086 
00087 
00088 #endif  /* _GSTUTIL_H */
00089 

Generated on Thu Sep 30 2010 14:34:58 for Gnash by  doxygen 1.7.1