GstMiniObject

GstMiniObject —

Synopsis


#include <gst/gst.h>


            GstMiniObject;
enum        GstMiniObjectFlags;
GstMiniObject* (*GstMiniObjectCopyFunction) (const GstMiniObject*);
void        (*GstMiniObjectFinalizeFunction)
                                            (GstMiniObject*);
#define     GST_MINI_OBJECT_FLAGS           (obj)
#define     GST_MINI_OBJECT_FLAG_IS_SET     (obj,flag)
#define     GST_MINI_OBJECT_FLAG_SET        (obj,flag)
#define     GST_MINI_OBJECT_FLAG_UNSET      (obj,flag)
#define     GST_MINI_OBJECT_REFCOUNT        (obj)
#define     GST_MINI_OBJECT_REFCOUNT_VALUE  (obj)
GstMiniObject* gst_mini_object_new          (GType type);
GstMiniObject* gst_mini_object_copy         (const GstMiniObject *mini_object);
gboolean    gst_mini_object_is_writable     (const GstMiniObject *mini_object);
GstMiniObject* gst_mini_object_make_writable
                                            (GstMiniObject *mini_object);
GstMiniObject* gst_mini_object_ref          (GstMiniObject *mini_object);
void        gst_mini_object_unref           (GstMiniObject *mini_object);
void        gst_mini_object_replace         (GstMiniObject **olddata,
                                             GstMiniObject *newdata);
GParamSpec* gst_param_spec_mini_object      (const char *name,
                                             const char *nick,
                                             const char *blurb,
                                             GType object_type,
                                             GParamFlags flags);
void        gst_value_set_mini_object       (GValue *value,
                                             GstMiniObject *mini_object);
void        gst_value_take_mini_object      (GValue *value,
                                             GstMiniObject *mini_object);
GstMiniObject* gst_value_get_mini_object    (const GValue *value);


Description

Details

GstMiniObject

typedef struct {
  GTypeInstance instance;
  gint refcount;
  guint flags;

  gpointer _gst_reserved[GST_PADDING];
} GstMiniObject;


enum GstMiniObjectFlags

typedef enum
{
  GST_MINI_OBJECT_FLAG_READONLY = (1<<0),
  GST_MINI_OBJECT_FLAG_STATIC = (1<<1),
  GST_MINI_OBJECT_FLAG_LAST = (1<<4)
} GstMiniObjectFlags;


GstMiniObjectCopyFunction ()

GstMiniObject* (*GstMiniObjectCopyFunction) (const GstMiniObject*);

Param1 :
Returns :

GstMiniObjectFinalizeFunction ()

void        (*GstMiniObjectFinalizeFunction)
                                            (GstMiniObject*);

Param1 :

GST_MINI_OBJECT_FLAGS()

#define GST_MINI_OBJECT_FLAGS(obj)  (GST_MINI_OBJECT(obj)->flags)

obj :

GST_MINI_OBJECT_FLAG_IS_SET()

#define GST_MINI_OBJECT_FLAG_IS_SET(obj,flag)        (GST_MINI_OBJECT_FLAGS(obj) & (flag))

obj :
flag :

GST_MINI_OBJECT_FLAG_SET()

#define GST_MINI_OBJECT_FLAG_SET(obj,flag)           (GST_MINI_OBJECT_FLAGS (obj) |= (flag))

obj :
flag :

GST_MINI_OBJECT_FLAG_UNSET()

#define GST_MINI_OBJECT_FLAG_UNSET(obj,flag)         (GST_MINI_OBJECT_FLAGS (obj) &= ~(flag))

obj :
flag :

GST_MINI_OBJECT_REFCOUNT()

#define GST_MINI_OBJECT_REFCOUNT(obj)           ((GST_MINI_OBJECT_CAST(obj))->refcount)

obj :

GST_MINI_OBJECT_REFCOUNT_VALUE()

#define GST_MINI_OBJECT_REFCOUNT_VALUE(obj)     (g_atomic_int_get (&(GST_MINI_OBJECT_CAST(obj))->refcount))

obj :

gst_mini_object_new ()

GstMiniObject* gst_mini_object_new          (GType type);

type :
Returns :

gst_mini_object_copy ()

GstMiniObject* gst_mini_object_copy         (const GstMiniObject *mini_object);

mini_object :
Returns :

gst_mini_object_is_writable ()

gboolean    gst_mini_object_is_writable     (const GstMiniObject *mini_object);

mini_object :
Returns :

gst_mini_object_make_writable ()

GstMiniObject* gst_mini_object_make_writable
                                            (GstMiniObject *mini_object);

mini_object :
Returns :

gst_mini_object_ref ()

GstMiniObject* gst_mini_object_ref          (GstMiniObject *mini_object);

mini_object :
Returns :

gst_mini_object_unref ()

void        gst_mini_object_unref           (GstMiniObject *mini_object);

mini_object :

gst_mini_object_replace ()

void        gst_mini_object_replace         (GstMiniObject **olddata,
                                             GstMiniObject *newdata);

olddata :
newdata :

gst_param_spec_mini_object ()

GParamSpec* gst_param_spec_mini_object      (const char *name,
                                             const char *nick,
                                             const char *blurb,
                                             GType object_type,
                                             GParamFlags flags);

name :
nick :
blurb :
object_type :
flags :
Returns :

gst_value_set_mini_object ()

void        gst_value_set_mini_object       (GValue *value,
                                             GstMiniObject *mini_object);

Set the contents of a GST_TYPE_MINI_OBJECT derived GValue to mini_object. The caller retains ownership of the reference.

value : a valid GValue of GST_TYPE_MINI_OBJECT derived type
mini_object : mini object value to set

gst_value_take_mini_object ()

void        gst_value_take_mini_object      (GValue *value,
                                             GstMiniObject *mini_object);

Set the contents of a GST_TYPE_MINI_OBJECT derived GValue to mini_object. Takes over the ownership of the caller's reference to mini_object; the caller doesn't have to unref it any more.

value : a valid GValue of GST_TYPE_MINI_OBJECT derived type
mini_object : mini object value to take

gst_value_get_mini_object ()

GstMiniObject* gst_value_get_mini_object    (const GValue *value);

Get the contents of a GST_TYPE_MINI_OBJECT derived GValue. Does not increase the refcount of the returned object.

Returns: mini object contents of value

value : a valid GValue of GST_TYPE_MINI_OBJECT derived type
Returns :