#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>
Go to the source code of this file.
|
| 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) |
|
#define SB_GST_TAG_GRACENOTE_EXTENDED_DATA "gracenote-extdata" |
#define SB_GST_TAG_GRACENOTE_TAGID "gracenote-tagid" |
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.
nsresult ApplyPropertyBagToElement |
( |
GstElement * |
element, |
|
|
nsIPropertyBag * |
props |
|
) |
| |
nsresult ConvertTagListToPropertyArray |
( |
GstTagList * |
taglist, |
|
|
sbIPropertyArray ** |
aPropertyArray |
|
) |
| |
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.
const char* FindMatchingElementName |
( |
GstCaps * |
srcCaps, |
|
|
const char * |
typeName |
|
) |
| |
GstCaps* GetCapsForMimeType |
( |
const nsACString & |
aMimeType, |
|
|
enum |
sbGstCapsMapType |
|
) |
| |
nsresult GetMimeTypeForCaps |
( |
GstCaps * |
aCaps, |
|
|
nsACString & |
aMimeType |
|
) |
| |
GstPad* GetRealPad |
( |
GstPad * |
pad | ) |
|
void RegisterCustomTags |
( |
| ) |
|
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 |
|
) |
| |
nsresult SetPropertyFromGValue |
( |
nsIWritablePropertyBag2 * |
aPropertyBag, |
|
|
const nsAString & |
aProperty, |
|
|
const GValue * |
aValue |
|
) |
| |
GstBusSyncReply SyncToAsyncDispatcher |
( |
GstBus * |
bus, |
|
|
GstMessage * |
message, |
|
|
gpointer |
data |
|
) |
| |