|  |  |  | GStreamer 0.10 Core Reference Manual |  | 
|---|---|---|---|---|
#include <gst/gst.h> #define GST_PARAM_CONTROLLABLE #define GST_PARAM_USER_SHIFT GstParamSpecFraction; GParamSpec* gst_param_spec_fraction (const gchar *name, const gchar *nick, const gchar *blurb, gint min_num, gint min_denom, gint max_num, gint max_denom, gint default_num, gint default_denom, GParamFlags flags);
#define GST_PARAM_CONTROLLABLE (1 << (G_PARAM_USER_SHIFT + 1))
Use this flag on GObject properties to signal they can make sense to be. controlled over time. This hint is used by the GstController.
#define GST_PARAM_USER_SHIFT (1 << (G_PARAM_USER_SHIFT + 8))
Bits based on GST_PARAM_USER_SHIFT can be used by 3rd party applications.
typedef struct {
  GParamSpec    parent_instance;
  
  gint          min_num, min_den;
  gint          max_num, max_den;
  gint          def_num, def_den;
} GstParamSpecFraction;
A GParamSpec derived structure that contains the meta data for fractional properties.
| GParamSpec  | super class | 
| gint  | minimal numerator | 
| gint  | minimal denominator | 
| gint  | maximal numerator | 
| gint  | maximal denominator | 
| gint  | default numerator | 
| gint  | default denominator | 
GParamSpec*         gst_param_spec_fraction             (const gchar *name,
                                                         const gchar *nick,
                                                         const gchar *blurb,
                                                         gint min_num,
                                                         gint min_denom,
                                                         gint max_num,
                                                         gint max_denom,
                                                         gint default_num,
                                                         gint default_denom,
                                                         GParamFlags flags);
This function creates a fraction GParamSpec for use by objects/elements
that want to expose properties of fraction type. This function is typically
used in connection with g_object_class_install_property() in a GObjects's
instance_init function.
| 
 | canonical name of the property specified | 
| 
 | nick name for the property specified | 
| 
 | description of the property specified | 
| 
 | minimum value (fraction numerator) | 
| 
 | minimum value (fraction denominator) | 
| 
 | maximum value (fraction numerator) | 
| 
 | maximum value (fraction denominator) | 
| 
 | default value (fraction numerator) | 
| 
 | default value (fraction denominator) | 
| 
 | flags for the property specified | 
| Returns : | a newly created parameter specification | 
Since 0.10.14