sbGStreamerMediacoreUtils.h File Reference
#include <nsCOMPtr.h>
#include <nsCOMArray.h>
#include <nsStringGlue.h>
#include <nsIDOMEventListener.h>
#include <nsIDOMWindow.h>
#include <nsITimer.h>
#include <nsComponentManagerUtils.h>
#include <nsIStringBundle.h>
#include <nsIVariant.h>
#include <nsIPropertyBag.h>
#include <nsIProperty.h>
#include <nsIWritablePropertyBag2.h>
#include <sbIPropertyArray.h>
#include <sbMediacoreError.h>
#include <sbMemoryUtils.h>
#include <gst/gst.h>
Include dependency graph for sbGStreamerMediacoreUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  sbGStreamerMessageHandler
 

Namespaces

 GStreamer
 

Macros

#define SB_GST_TAG_GRACENOTE_TAGID   "gracenote-tagid"
 
#define SB_GST_TAG_GRACENOTE_EXTENDED_DATA   "gracenote-extdata"
 

Enumerations

enum  GStreamer::pipelineOp_t {
  GStreamer::OP_UNKNOWN = 0, GStreamer::OP_INSPECTING, GStreamer::OP_PLAYING, GStreamer::OP_STREAMING,
  GStreamer::OP_TRANSCODING
}
 
enum  sbGstCapsMapType { SB_GST_CAPS_MAP_NONE, SB_GST_CAPS_MAP_CONTAINER, SB_GST_CAPS_MAP_AUDIO, SB_GST_CAPS_MAP_VIDEO }
 

Functions

 SB_AUTO_CLASS (sbGstCaps, GstCaps *,!!mValue, gst_caps_unref(mValue), mValue=NULL)
 
nsresult ApplyPropertyBagToElement (GstElement *element, nsIPropertyBag *props)
 
GstTagList * ConvertPropertyArrayToTagList (sbIPropertyArray *properties)
 
nsresult ConvertTagListToPropertyArray (GstTagList *taglist, sbIPropertyArray **aPropertyArray)
 
GstBusSyncReply SyncToAsyncDispatcher (GstBus *bus, GstMessage *message, gpointer data)
 
nsresult GetMediacoreErrorFromGstError (GError *gerror, nsString aResource, GStreamer::pipelineOp_t aPipelineOp, sbIMediacoreError **_retval)
 
const char * FindMatchingElementName (const char *srcCapsString, const char *typeName)
 
const char * FindMatchingElementName (GstCaps *srcCaps, const char *typeName)
 
void RegisterCustomTags ()
 
nsresult GetMimeTypeForCaps (GstCaps *aCaps, nsACString &aMimeType)
 
GstCaps * GetCapsForMimeType (const nsACString &aMimeType, enum sbGstCapsMapType)
 
nsresult SetPropertiesFromGstStructure (nsIWritablePropertyBag2 *aPropertyBag, const GstStructure *aStructure, const gchar *const aFieldList[]=NULL, PRUint32 aFieldCount=0)
 
nsresult SetPropertyFromGValue (nsIWritablePropertyBag2 *aPropertyBag, const nsAString &aProperty, const GValue *aValue)
 
GstPad * GetRealPad (GstPad *pad)
 

Macro Definition Documentation

#define SB_GST_TAG_GRACENOTE_EXTENDED_DATA   "gracenote-extdata"

Definition at line 55 of file sbGStreamerMediacoreUtils.h.

#define SB_GST_TAG_GRACENOTE_TAGID   "gracenote-tagid"

Definition at line 54 of file sbGStreamerMediacoreUtils.h.

Enumeration Type Documentation

Enumerator
SB_GST_CAPS_MAP_NONE 
SB_GST_CAPS_MAP_CONTAINER 
SB_GST_CAPS_MAP_AUDIO 
SB_GST_CAPS_MAP_VIDEO 

Definition at line 150 of file sbGStreamerMediacoreUtils.h.

Function Documentation

nsresult ApplyPropertyBagToElement ( GstElement *  element,
nsIPropertyBag *  props 
)

Definition at line 629 of file sbGStreamerMediacoreUtils.cpp.

Here is the call graph for this function:

GstTagList* ConvertPropertyArrayToTagList ( sbIPropertyArray properties)

Definition at line 192 of file sbGStreamerMediacoreUtils.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult ConvertTagListToPropertyArray ( GstTagList *  taglist,
sbIPropertyArray **  aPropertyArray 
)

Definition at line 266 of file sbGStreamerMediacoreUtils.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const char* FindMatchingElementName ( const char *  srcCapsString,
const char *  typeName 
)

Find an element name for an element that can produce caps compatible with 'srcCapsString' on its source pad, and has a klass name include 'typeName'. Returns NULL if none is found.

e.g. Call FindMatchingElementName("application/ogg", "Muxer") to get an ogg muxer element name ("oggmux" will be returned).

Definition at line 572 of file sbGStreamerMediacoreUtils.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const char* FindMatchingElementName ( GstCaps *  srcCaps,
const char *  typeName 
)

Overload of the above, but accepting a GstCaps instead of a string

Definition at line 586 of file sbGStreamerMediacoreUtils.cpp.

Here is the call graph for this function:

GstCaps* GetCapsForMimeType ( const nsACString &  aMimeType,
enum  sbGstCapsMapType 
)

Definition at line 813 of file sbGStreamerMediacoreUtils.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult GetMediacoreErrorFromGstError ( GError *  gerror,
nsString  aResource,
GStreamer::pipelineOp_t  aPipelineOp,
sbIMediacoreError **  _retval 
)

Definition at line 410 of file sbGStreamerMediacoreUtils.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult GetMimeTypeForCaps ( GstCaps *  aCaps,
nsACString &  aMimeType 
)

Definition at line 824 of file sbGStreamerMediacoreUtils.cpp.

GstPad* GetRealPad ( GstPad *  pad)

Definition at line 1016 of file sbGStreamerMediacoreUtils.cpp.

void RegisterCustomTags ( )

Definition at line 620 of file sbGStreamerMediacoreUtils.cpp.

Here is the caller graph for this function:

SB_AUTO_CLASS ( sbGstCaps  ,
GstCaps *  ,
!!  mValue,
gst_caps_unref(mValue)  ,
mValue  = NULL 
)
nsresult SetPropertiesFromGstStructure ( nsIWritablePropertyBag2 *  aPropertyBag,
const GstStructure *  aStructure,
const gchar *const  aFieldList[] = NULL,
PRUint32  aFieldCount = 0 
)

Definition at line 897 of file sbGStreamerMediacoreUtils.cpp.

Here is the call graph for this function:

nsresult SetPropertyFromGValue ( nsIWritablePropertyBag2 *  aPropertyBag,
const nsAString &  aProperty,
const GValue *  aValue 
)

Definition at line 933 of file sbGStreamerMediacoreUtils.cpp.

Here is the caller graph for this function:

GstBusSyncReply SyncToAsyncDispatcher ( GstBus *  bus,
GstMessage *  message,
gpointer  data 
)

Here is the caller graph for this function: